PATCH - /pci/hda/patch_conexant.c 1/1] patch_conexant.c: cd pin added to mixer for benq r55 laptop,
From: edoiks <[email protected]>
pci/hda/patch_conexant.c +10 -0
@@ -687,6 +687,8 @@ static struct hda_input_mux cxt5045_capture_source_benq = { { "IntMic", 0x1 }, { "ExtMic", 0x2 }, { "LineIn", 0x3 }, + { "CD Pin", 0x4 }, + { "Mixer ", 0x0 }, } };
@@ -816,6 +818,14 @@ static struct snd_kcontrol_new cxt5045_benq_mixers[] = {HDA_CODEC_VOLUME ("Line In Playback Volume" ,0x17 ,0x3 ,HDA_INPUT ),HDA_CODEC_MUTE ("Line In Playback Switch" ,0x17 ,0x3 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("Line In Capture Volume" ,0x1a ,0x03 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Line In Capture Switch" ,0x1a ,0x03 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("Line In Playback Volume" ,0x17 ,0x3 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Line In Playback Switch" ,0x17 ,0x3 ,HDA_INPUT ), + +HDA_CODEC_VOLUME ("Mixer Capture Volume" ,0x1a ,0x0 ,HDA_INPUT ), + HDA_CODEC_MUTE("Mixer Capture Switch", 0x1a, 0x0, HDA_INPUT), + {} };
Signature · 1 line
1.6.0.4
At Sun, 20 Sep 2009 01:08:58 +0200,
Quoted 5 lines · [email protected] wrote:
From: edoiks <[email protected]>
Signed-off-by edoiks <[email protected]>
Thanks for the patch.
But, are you sure that your patch works?
For example...
pci/hda/patch_conexant.c static struct hda_input_mux cxt5045_capture_source_benq = { · line 693
Quoted 12 lines
pci/hda/patch_conexant.c +2
-0@@ -687,6 +687,8 @@ static struct hda_input_mux cxt5045_capture_source_benq = { { "IntMic", 0x1 }, { "ExtMic", 0x2 }, { "LineIn", 0x3 }, + { "CD Pin", 0x4 }, + { "Mixer ", 0x0 }, } };
This doesn't work unless you change the num_items field.
pci/hda/patch_conexant.c static struct snd_kcontrol_new cxt5045_benq_mixers[] = { · line 824
Quoted 8 lines
pci/hda/patch_conexant.c +4
-0@@ -816,6 +818,14 @@ static struct snd_kcontrol_new cxt5045_benq_mixers[] = {HDA_CODEC_VOLUME ("Line In Playback Volume" ,0x17 ,0x3 ,HDA_INPUT ),HDA_CODEC_MUTE ("Line In Playback Switch" ,0x17 ,0x3 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("Line In Capture Volume" ,0x1a ,0x03 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Line In Capture Switch" ,0x1a ,0x03 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("Line In Playback Volume" ,0x17 ,0x3 ,HDA_INPUT ), + HDA_CODEC_MUTE("Line In Playback Switch", 0x17, 0x3, HDA_INPUT),
This conflicts; the same item already exists.
pci/hda/patch_conexant.c static struct snd_kcontrol_new cxt5045_benq_mixers[] = { · line 827
Quoted 2 lines
pci/hda/patch_conexant.c +2
-0+HDA_CODEC_VOLUME ("Mixer Capture Volume" ,0x1a ,0x0 ,HDA_INPUT ), + HDA_CODEC_MUTE("Mixer Capture Switch", 0x1a, 0x0, HDA_INPUT),
Does this really work, too?
Also, no corresponding CD volume?
Last but not least, please give a bit more detailed description of your change. What it really does, and why it's needed. Also, please give your full name with your sign-off.
thanks,
Takashi