RFC: massive snd_hda driver update to better conform UAA
Andriy Gapon
avg at icyb.net.ua
Wed Aug 13 13:59:57 UTC 2008
Alexander,
I've tried a slightly tweaked version of your releng_7 patch on 6.3.
It seems that with your patch recording stopped working for me, but
everything else is OK.
>From (non-verbose) dmesg:
hdac0: <NVidia MCP51 High Definition Audio Controller> mem
0xfe024000-0xfe027fff irq 22 at device 16.1 on pci0
hdac0: <HDA Driver Revision: 20080812_0000>
hdac0: <HDA Codec #0: Analog Devices AD1986A>
hdac0: hdac_widget_connection_parse: nid=18 WARNING: zero cnid entnum=4
j=2 index=0 entries=8 found=2 res=0x21002211
hdac0: hdac_audio_as_parse: Pin 28 has wrong direction for association
1! Disabling association.
hdac0: hdac_audio_as_parse: Pin 29 has wrong direction for association
1! Disabling association.
pcm0: <HDA codec Analog Devices AD1986A PCM #0> on hdac0
pcm1: <HDA codec Analog Devices AD1986A PCM #1> on hdac0
I can see that current (non-patched) code has the following quirks for
the above two pins with my codec and my subvendor (ASUS M2NPV-MX
motherboard):
} else if (id == HDA_CODEC_AD1986A &&
(sc->pci_subvendor == ASUS_M2NPVMX_SUBVENDOR ||
sc->pci_subvendor == ASUS_A8NVMCSM_SUBVENDOR)) {
switch (nid) {
case 28: /* LINE */
config &= ~HDA_CONFIG_DEFAULTCONF_DEVICE_MASK;
config |= HDA_CONFIG_DEFAULTCONF_DEVICE_LINE_IN;
break;
case 29: /* MIC */
config &= ~HDA_CONFIG_DEFAULTCONF_DEVICE_MASK;
config |= HDA_CONFIG_DEFAULTCONF_DEVICE_MIC_IN;
break;
default:
break;
}
}
BTW, I am also curios about two pcm devices that I got now. Which is
what? How can I use them? (Sorry if I missed this info in your original
message).
--
Andriy Gapon
More information about the freebsd-multimedia
mailing list