Commit 56bb0cab authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela

[ALSA] hda-codec - Add asus-laptop model for ALC861 (ALC660)

Added a new model 'asus-laptop' for ASUS F2*/F3* laptops
with ALC861 (equivalent with ALC660) codec chip.
Also fixed the model for PCI SSID 1043:1338.
Corresponding to ALSA bug#2480.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent 9fb62c9f
...@@ -839,6 +839,7 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed. ...@@ -839,6 +839,7 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
uniwill-m31 Uniwill M31 laptop uniwill-m31 Uniwill M31 laptop
toshiba Toshiba laptop support toshiba Toshiba laptop support
asus Asus laptop support asus Asus laptop support
asus-laptop ASUS F2/F3 laptops
auto auto-config reading BIOS (default) auto auto-config reading BIOS (default)
CMI9880 CMI9880
......
...@@ -101,6 +101,7 @@ enum { ...@@ -101,6 +101,7 @@ enum {
ALC861_UNIWILL_M31, ALC861_UNIWILL_M31,
ALC861_TOSHIBA, ALC861_TOSHIBA,
ALC861_ASUS, ALC861_ASUS,
ALC861_ASUS_LAPTOP,
ALC861_AUTO, ALC861_AUTO,
ALC861_MODEL_LAST, ALC861_MODEL_LAST,
}; };
...@@ -6903,6 +6904,14 @@ static struct snd_kcontrol_new alc861_asus_mixer[] = { ...@@ -6903,6 +6904,14 @@ static struct snd_kcontrol_new alc861_asus_mixer[] = {
{ } { }
}; };
/* additional mixer */
static snd_kcontrol_new_t alc861_asus_laptop_mixer[] = {
HDA_CODEC_VOLUME("CD Playback Volume", 0x15, 0x0, HDA_INPUT),
HDA_CODEC_MUTE("CD Playback Switch", 0x15, 0x0, HDA_INPUT),
HDA_CODEC_VOLUME("PC Beep Playback Volume", 0x23, 0x0, HDA_OUTPUT),
HDA_CODEC_MUTE("PC Beep Playback Switch", 0x23, 0x0, HDA_OUTPUT),
{ }
};
/* /*
* generic initialization of ADC, input mixers and output mixers * generic initialization of ADC, input mixers and output mixers
...@@ -7153,6 +7162,12 @@ static struct hda_verb alc861_asus_init_verbs[] = { ...@@ -7153,6 +7162,12 @@ static struct hda_verb alc861_asus_init_verbs[] = {
{ } { }
}; };
/* additional init verbs for ASUS laptops */
static struct hda_verb alc861_asus_laptop_init_verbs[] = {
{ 0x0f, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x45 }, /* HP-out */
{ 0x15, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(2) }, /* mute line-in */
{ }
};
/* /*
* generic initialization of ADC, input mixers and output mixers * generic initialization of ADC, input mixers and output mixers
...@@ -7530,8 +7545,11 @@ static struct hda_board_config alc861_cfg_tbl[] = { ...@@ -7530,8 +7545,11 @@ static struct hda_board_config alc861_cfg_tbl[] = {
{ .modelname = "asus", .config = ALC861_ASUS}, { .modelname = "asus", .config = ALC861_ASUS},
{ .pci_subvendor = 0x1043, .pci_subdevice = 0x1393, { .pci_subvendor = 0x1043, .pci_subdevice = 0x1393,
.config = ALC861_ASUS }, .config = ALC861_ASUS },
{ .modelname = "asus-laptop", .config = ALC861_ASUS_LAPTOP },
{ .pci_subvendor = 0x1043, .pci_subdevice = 0x1335,
.config = ALC861_ASUS_LAPTOP }, /* ASUS F2/F3 */
{ .pci_subvendor = 0x1043, .pci_subdevice = 0x1338, { .pci_subvendor = 0x1043, .pci_subdevice = 0x1338,
.config = ALC861_ASUS }, .config = ALC861_ASUS_LAPTOP }, /* ASUS F2/F3 */
{ .modelname = "auto", .config = ALC861_AUTO }, { .modelname = "auto", .config = ALC861_AUTO },
{} {}
}; };
...@@ -7626,6 +7644,20 @@ static struct alc_config_preset alc861_presets[] = { ...@@ -7626,6 +7644,20 @@ static struct alc_config_preset alc861_presets[] = {
.adc_nids = alc861_adc_nids, .adc_nids = alc861_adc_nids,
.input_mux = &alc861_capture_source, .input_mux = &alc861_capture_source,
}, },
[ALC861_ASUS_LAPTOP] = {
.mixers = { alc861_toshiba_mixer, alc861_asus_laptop_mixer },
.init_verbs = { alc861_asus_init_verbs,
alc861_asus_laptop_init_verbs },
.num_dacs = ARRAY_SIZE(alc861_dac_nids),
.dac_nids = alc861_dac_nids,
.dig_out_nid = ALC861_DIGOUT_NID,
.num_channel_mode = ARRAY_SIZE(alc883_3ST_2ch_modes),
.channel_mode = alc883_3ST_2ch_modes,
.need_dac_fix = 1,
.num_adc_nids = ARRAY_SIZE(alc861_adc_nids),
.adc_nids = alc861_adc_nids,
.input_mux = &alc861_capture_source,
},
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment