Ignore:
Timestamp:
2014-08-14T14:21:28Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
65b09c1
Parents:
8d070710
Message:

Discover function groups and widgets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/hdaudio/spec/codec.h

    r8d070710 rd2d5329  
    105105        hda_sub_nc = 0x04,
    106106        /** Function Group Type */
    107         hba_fgrp_type = 0x05,
     107        hda_fgrp_type = 0x05,
    108108        /** Audio Function Group Capabilities */
    109109        hda_afg_caps = 0x08,
     
    132132} hda_param_id_t;
    133133
     134/** Subordinate Node Count Response bits */
     135typedef enum {
     136        /** Starting Node Number (H) */
     137        subnc_startnode_h = 23,
     138        /** Starting Node Number (L) */
     139        subnc_startnode_l = 16,
     140        /** Total Node Count (H) */
     141        subnc_nodecount_h = 7,
     142        /** Total Node Count (L) */
     143        subnc_nodecount_l = 0
     144} hda_sub_nc_bits_t;
     145
     146/** Function Group Type Response bits */
     147typedef enum {
     148        /** UnSol Capable */
     149        fgrpt_unsol = 8,
     150        /** Group Type (H) */
     151        fgrpt_type_h = 7,
     152        /** Group Type (L) */
     153        fgrpt_type_l = 0
     154} hda_fgrp_type_bits_t;
     155
     156/** Function Group Type */
     157typedef enum {
     158        /** Audio Function Group */
     159        fgrp_afg = 0x01,
     160        /** Vendor Defined Modem Function Group */
     161        fgrp_vdmfg = 0x02
     162} hda_fgrp_type_t;
     163
     164/** Audio Widget Capabilities Bits */
     165typedef enum {
     166        /** Type (H) */
     167        awc_type_h = 23,
     168        /** Type (L) */
     169        awc_type_l = 20,
     170        /** Chan Count Ext (H) */
     171        awc_chan_count_ext_h = 15,
     172        /** Chan Count Ext (L) */
     173        awc_chan_count_ext_l = 13,
     174        /** CP Caps */
     175        awc_cp_caps = 12,
     176        /** L-R Swap */
     177        awc_lr_swap = 11,
     178        /** Power Control */
     179        awc_power_cntrl = 10,
     180        /** Digital */
     181        awc_digital = 9,
     182        /** Conn List */
     183        awc_conn_list = 8,
     184        /** Unsol Capable */
     185        awc_unsol_capable = 7,
     186        /** Proc Widget */
     187        awc_proc_widget = 6,
     188        /** Stripe */
     189        awc_stripe = 5,
     190        /** Format Override */
     191        awc_fmt_override = 4,
     192        /** Amp Param Override */
     193        awc_amp_param_override = 3,
     194        /** Out Amp Present */
     195        awc_out_amp_present = 2,
     196        /** In Amp Present */
     197        awc_in_amp_present = 1,
     198        /** Chan Count LSB (Stereo) */
     199        awc_chan_count_lsb = 0
     200} hda_awidget_caps_bits_t;
     201
     202/** Audio Widget Type */
     203typedef enum {
     204        /** Audio Output */
     205        awt_audio_output = 0x0,
     206        /** Audio Input */
     207        awt_audio_input = 0x1,
     208        /** Audio Mixer */
     209        awt_audio_mixer = 0x2,
     210        /** Audio Selector */
     211        awt_audio_selector = 0x3,
     212        /** Pin Complex */
     213        awt_pin_complex = 0x4,
     214        /** Power Widget */
     215        awt_power_widget = 0x5,
     216        /** Volume Knob Widget */
     217        awt_volume_knob = 0x6,
     218        /** Beep Generator Widget */
     219        awt_beep_generator = 0x7,
     220        /** Vendor-defined audio widget */
     221        awt_vendor_defined = 0xf
     222} hda_awidget_type_t;
     223
    134224#endif
    135225
Note: See TracChangeset for help on using the changeset viewer.