[alsa-devel] [PATCH 7/8] ALSA: hda - Add generic parser support to Analog Device codec driver

Raymond Yau superquad.vortex2 at gmail.com
Thu Jan 10 07:48:06 CET 2013


>
> This patch adds the support for the generic auto-parser to AD codec
> driver.  For AD1988, the old code is replaced simply with the new
> generic parser.  For other codecs, new model "auto" is added and
> directed to use the generic parser.
>
> No fixup codes have been implemented yet as of now.  Eventually we'd
> replace each static quirk with the generic parser + fixup

Do the dac allocation of generic of parser really fit for adi codec  since
DAC0 of most ad198x codecs is for port-A headphone while the first DAC of
realtek is for front line out ?

> -static inline hda_nid_t ad1988_idx_to_dac(struct hda_codec *codec, int
idx)
> -{
> -       static const hda_nid_t idx_to_dac[8] = {
> -               /* A     B     C     D     E     F     G     H */
> -               0x03, 0x06, 0x05, 0x04, 0x0a, 0x06, 0x05, 0x0a
> -       };


More information about the Alsa-devel mailing list