At Tue, 11 Dec 2007 18:46:08 +0100, Johannes Stezenbach wrote:
Hi,
the internal CD connector on my Asus M2N-SLI Deluxe board doesn't work without the patch below, /proc/asound/card0/codec#0 shows that the pin is disabled (Pin-ctls: 0x00).
I used kernel linux-2.6.24-rc4-190-g94545ba from Linus' git tree.
During my experiments I found that loading the snd-hda-intel driver with model=auto also enables the CD connector. It seems that for my board (BIOS version 1102) the BIOS configuration is correct and the "Asus M2N-SLI" quirk shouldn't be necessary? I get the following debug output:
ALSA sound/pci/hda/hda_intel.c:727: codec_mask = 0x1 ALSA sound/pci/hda/hda_codec.c:2140: hda_codec: model 'auto' is selected ALSA sound/pci/hda/hda_codec.c:2760: autoconfig: line_outs=4 (0x12/0x16/0x24/0x25/0x0) ALSA sound/pci/hda/hda_codec.c:2764: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:2768: hp_outs=1 (0x11/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:2776: inputs: mic=0x17, fmic=0x14, line=0x15, fline=0x0, cd=0x18, aux=0x0
(which matches the board's actual connections)
Anyway, if you think the patch below is correct the please apply. It works fine for me.
Thanks, applied the patch to ALSA HG tree now.
There is one thing that I don't get however: If I run aplay it creates an additional "PCM" mixer control, which however doesn't have any effect. I guess this is intended for softvol, but I don't need it. How do I stop aplay from creating this control? (If it matters, I use Debian unstable, alsa-lib 1.0.15.)
The PCM volume has effects when the apps use "default" PCM properly.
Takashi