add support for ALC880 8196
PATCH 1/1 add support for ALC880 8196
I have an ASUS P5GD1-HVM (== P5GD1-VM ?). It has a ALC800 with pci_subdevice = 8196. It is almost equal to a ALC880_6ST. In the attached patch I have changed the definition of alc880_six_stack_mixer a little bit to match the card pins. I don't know if this change is valid. If it isn't I can submit a new patch that puts the 8196 in a category of its own.
I have tested the patch by plugging a headphone to each output pin and tested both the mute and the volume controls of the left and right channel individually.
Rafael Ávila de Espíndola
Index: alsa-kernel/pci/hda/patch_realtek.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/hda/patch_realtek.c,v retrieving revision 1.37
pci/hda/patch_realtek.c +5 -6
@@ -513,12 +513,10 @@ static struct hda_channel_mode alc880_sistatic struct snd_kcontrol_new alc880_six_stack_mixer[] = {HDA_CODEC_VOLUME ("Front Playback Volume" ,0x0c ,0x0 ,HDA_OUTPUT ),HDA_BIND_MUTE ("Front Playback Switch" ,0x0c ,2 ,HDA_INPUT ), -HDA_CODEC_VOLUME ("Surround Playback Volume" ,0x0d ,0x0 ,HDA_OUTPUT ), -HDA_BIND_MUTE ("Surround Playback Switch" ,0x0d ,2 ,HDA_INPUT ), -HDA_CODEC_VOLUME_MONO ("Center Playback Volume" ,0x0e ,1 ,0x0 ,HDA_OUTPUT ), -HDA_CODEC_VOLUME_MONO ("LFE Playback Volume" ,0x0e ,2 ,0x0 ,HDA_OUTPUT ), -HDA_BIND_MUTE_MONO ("Center Playback Switch" ,0x0e ,1 ,2 ,HDA_INPUT ), -HDA_BIND_MUTE_MONO ("LFE Playback Switch" ,0x0e ,2 ,2 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("Rear Playback Volume" ,0x0d ,0x0 ,HDA_OUTPUT ), +HDA_BIND_MUTE ("Rear Playback Switch" ,0x0d ,2 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("Center Playback Volume" ,0x0e ,0x0 ,HDA_OUTPUT ), +HDA_BIND_MUTE ("Center Playback Switch" ,0x0e ,2 ,HDA_INPUT ),HDA_CODEC_VOLUME ("Side Playback Volume" ,0x0f ,0x0 ,HDA_OUTPUT ),HDA_BIND_MUTE ("Side Playback Switch" ,0x0f ,2 ,HDA_INPUT ),HDA_CODEC_VOLUME ("CD Playback Volume" ,0x0b ,0x04 ,HDA_INPUT ),
@@ -1657,6 +1655,7 @@ static struct hda_board_config alc880_cf { .modelname = "6stack", .config = ALC880_6ST }, { .pci_subvendor = 0x1043, .pci_subdevice = 0x81b4, .config = ALC880_6ST }, { .pci_subvendor = 0x1019, .pci_subdevice = 0xa884, .config = ALC880_6ST }, /* Acer APFV */ + { .pci_subvendor = 0x1043, .pci_subdevice = 0x8196, .config = ALC880_6ST }, { .modelname = "6stack-digout", .config = ALC880_6ST_DIG }, { .pci_subvendor = 0x2668, .pci_subdevice = 0x8086, .config = ALC880_6ST_DIG },
Quoted 3 lines · Rafael Espíndola
I have tested the patch by plugging a headphone to each output pin and tested both the mute and the volume controls of the left and right channel individually.
And that is why I didn't realized that LFE and Center are mono. When I plugged the headphone one channel was in the left and the other in the right. Duh!
My first 7.1 :)
A fixed patch is attached.
Ps.: IMHO "rear" is more descriptive (and is what is printed on the plug) then "surround" in a 7.1 system.
Rafael
Index: alsa-kernel/pci/hda/patch_realtek.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/hda/patch_realtek.c,v retrieving revision 1.37
pci/hda/patch_realtek.c +3 -2
@@ -513,8 +513,8 @@ static struct hda_channel_mode alc880_sistatic struct snd_kcontrol_new alc880_six_stack_mixer[] = {HDA_CODEC_VOLUME ("Front Playback Volume" ,0x0c ,0x0 ,HDA_OUTPUT ),HDA_BIND_MUTE ("Front Playback Switch" ,0x0c ,2 ,HDA_INPUT ), -HDA_CODEC_VOLUME ("Surround Playback Volume" ,0x0d ,0x0 ,HDA_OUTPUT ), -HDA_BIND_MUTE ("Surround Playback Switch" ,0x0d ,2 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("Rear Playback Volume" ,0x0d ,0x0 ,HDA_OUTPUT ), +HDA_BIND_MUTE ("Rear Playback Switch" ,0x0d ,2 ,HDA_INPUT ),HDA_CODEC_VOLUME_MONO ("Center Playback Volume" ,0x0e ,1 ,0x0 ,HDA_OUTPUT ),HDA_CODEC_VOLUME_MONO ("LFE Playback Volume" ,0x0e ,2 ,0x0 ,HDA_OUTPUT ),HDA_BIND_MUTE_MONO ("Center Playback Switch" ,0x0e ,1 ,2 ,HDA_INPUT ),
@@ -1657,6 +1657,7 @@ static struct hda_board_config alc880_cf { .modelname = "6stack", .config = ALC880_6ST }, { .pci_subvendor = 0x1043, .pci_subdevice = 0x81b4, .config = ALC880_6ST }, { .pci_subvendor = 0x1019, .pci_subdevice = 0xa884, .config = ALC880_6ST }, /* Acer APFV */ + { .pci_subvendor = 0x1043, .pci_subdevice = 0x8196, .config = ALC880_6ST }, { .modelname = "6stack-digout", .config = ALC880_6ST_DIG }, { .pci_subvendor = 0x2668, .pci_subdevice = 0x8086, .config = ALC880_6ST_DIG },
At Wed, 7 Dec 2005 11:39:33 -0200,
Quoted 10 lines · Rafael Espíndola
Quoted 3 lines · Rafael Espíndola
I have tested the patch by plugging a headphone to each output pin and tested both the mute and the volume controls of the left and right channel individually.
And that is why I didn't realized that LFE and Center are mono. When I plugged the headphone one channel was in the left and the other in the right. Duh!
My first 7.1 :)
Quoted 4 lines
A fixed patch is attached.
Ps.: IMHO "rear" is more descriptive (and is what is printed on the plug) then "surround" in a 7.1 system.
Well, we've used "Surround" for the meaning of surround rear, and renaming this may break others like OSS emulation. Let's keep it.
I'll apply only the PCI id entry to CVS. Thanks for the patch.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click