提交 17e7aec6 编写于 作者: J Jonathan Woithe 提交者: Jaroslav Kysela

[ALSA] HDA/ALC260: 1/7 - Fix test model input mux label

Modules: HDA Codec driver

This patch fixes input mux labels used for the ALC260 'test' model.  This is
needed to avoid confusion which comes about because the two ADCs in the
ALC260 have slightly different mappings for their input selectors. Since
this is just the test model it's sufficient to simply report both options
where they exist.  If a model comes along for which this becomes an issue,
the ALC260 input mux code will have to be extended to allow different mux
layouts for different ADCs.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 2a578f3b
...@@ -2414,8 +2414,8 @@ static struct hda_input_mux alc260_capture_source = { ...@@ -2414,8 +2414,8 @@ static struct hda_input_mux alc260_capture_source = {
}, },
}; };
/* On Fujitsu S702x laptops capture only makes sense from Mic/LineIn jack /* On Fujitsu S702x laptops capture only makes sense from Mic/LineIn jack,
* and the internal CD lines. * headphone jack and the internal CD lines.
*/ */
static struct hda_input_mux alc260_fujitsu_capture_source = { static struct hda_input_mux alc260_fujitsu_capture_source = {
.num_items = 3, .num_items = 3,
...@@ -2790,16 +2790,26 @@ static hda_nid_t alc260_test_dac_nids[1] = { ...@@ -2790,16 +2790,26 @@ static hda_nid_t alc260_test_dac_nids[1] = {
static hda_nid_t alc260_test_adc_nids[2] = { static hda_nid_t alc260_test_adc_nids[2] = {
0x04, 0x05, 0x04, 0x05,
}; };
/* This is a bit messy since the two input muxes in the ALC260 have slight
* variations in their signal assignments. The ideal way to deal with this
* is to extend alc_spec.input_mux to allow a different input MUX for each
* ADC. For the purposes of the test model it's sufficient to just list
* both options for affected signal indices. The separate input mux
* functionality only needs to be considered if a model comes along which
* actually uses signals 0x5, 0x6 and 0x7 for something which makes sense to
* record.
*/
static struct hda_input_mux alc260_test_capture_source = { static struct hda_input_mux alc260_test_capture_source = {
.num_items = 7, .num_items = 8,
.items = { .items = {
{ "MIC1 pin", 0x0 }, { "MIC1 pin", 0x0 },
{ "MIC2 pin", 0x1 }, { "MIC2 pin", 0x1 },
{ "LINE1 pin", 0x2 }, { "LINE1 pin", 0x2 },
{ "LINE2 pin", 0x3 }, { "LINE2 pin", 0x3 },
{ "CD pin", 0x4 }, { "CD pin", 0x4 },
{ "LINE-OUT pin", 0x5 }, { "LINE-OUT pin (cap1), Mixer (cap2)", 0x5 },
{ "HP-OUT pin", 0x6 }, { "HP-OUT pin (cap1), LINE-OUT pin (cap2)", 0x6 },
{ "HP-OUT pin (cap2 only)", 0x7 },
}, },
}; };
static struct snd_kcontrol_new alc260_test_mixer[] = { static struct snd_kcontrol_new alc260_test_mixer[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册