Commit 0d8cb303 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Remove ALC260 HP model quirks

ALC260 HP models work with the BIOS auto-parser.  Let's cut them off.
Also move alc260_hp_master_*() to alc262_quirks.c as these are still
referred from there.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 3823328d
...@@ -29,9 +29,6 @@ ALC880 ...@@ -29,9 +29,6 @@ ALC880
ALC260 ALC260
====== ======
hp HP machines
hp-3013 HP machines (3013-variant)
hp-dc7600 HP DC7600
fujitsu Fujitsu S7020 fujitsu Fujitsu S7020
acer Acer TravelMate acer Acer TravelMate
will Will laptops (PB V7900) will Will laptops (PB V7900)
......
This diff is collapsed.
...@@ -60,30 +60,34 @@ static const struct snd_kcontrol_new alc262_base_mixer[] = { ...@@ -60,30 +60,34 @@ static const struct snd_kcontrol_new alc262_base_mixer[] = {
{ } /* end */ { } /* end */
}; };
/* update HP, line and mono-out pins according to the master switch */ /* bind hp and internal speaker mute (with plug check) as master switch */
#define alc262_hp_master_update alc260_hp_master_update static void alc262_hippo_master_update(struct hda_codec *codec)
{
update_speakers(codec);
}
#define alc262_hp_master_sw_get alc260_hp_master_sw_get static int alc262_hippo_master_sw_get(struct snd_kcontrol *kcontrol,
#define alc262_hp_master_sw_put alc260_hp_master_sw_put struct snd_ctl_elem_value *ucontrol)
{
struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
struct alc_spec *spec = codec->spec;
*ucontrol->value.integer.value = !spec->master_mute;
return 0;
}
#define ALC262_HP_MASTER_SWITCH \ static int alc262_hippo_master_sw_put(struct snd_kcontrol *kcontrol,
{ \ struct snd_ctl_elem_value *ucontrol)
.iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ {
.name = "Master Playback Switch", \ struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
.info = snd_ctl_boolean_mono_info, \ struct alc_spec *spec = codec->spec;
.get = alc262_hp_master_sw_get, \ int val = !*ucontrol->value.integer.value;
.put = alc262_hp_master_sw_put, \
}, \
{ \
.iface = NID_MAPPING, \
.name = "Master Playback Switch", \
.private_value = 0x15 | (0x16 << 8) | (0x1b << 16), \
}
/* bind hp and internal speaker mute (with plug check) as master switch */ if (val == spec->master_mute)
#define alc262_hippo_master_update alc262_hp_master_update return 0;
#define alc262_hippo_master_sw_get alc262_hp_master_sw_get spec->master_mute = val;
#define alc262_hippo_master_sw_put alc262_hp_master_sw_put alc262_hippo_master_update(codec);
return 1;
}
#define ALC262_HIPPO_MASTER_SWITCH \ #define ALC262_HIPPO_MASTER_SWITCH \
{ \ { \
...@@ -100,6 +104,9 @@ static const struct snd_kcontrol_new alc262_base_mixer[] = { ...@@ -100,6 +104,9 @@ static const struct snd_kcontrol_new alc262_base_mixer[] = {
(SUBDEV_SPEAKER(0) << 16), \ (SUBDEV_SPEAKER(0) << 16), \
} }
#define alc262_hp_master_sw_get alc262_hippo_master_sw_get
#define alc262_hp_master_sw_put alc262_hippo_master_sw_put
static const struct snd_kcontrol_new alc262_hippo_mixer[] = { static const struct snd_kcontrol_new alc262_hippo_mixer[] = {
ALC262_HIPPO_MASTER_SWITCH, ALC262_HIPPO_MASTER_SWITCH,
HDA_CODEC_VOLUME("Speaker Playback Volume", 0x0c, 0x0, HDA_OUTPUT), HDA_CODEC_VOLUME("Speaker Playback Volume", 0x0c, 0x0, HDA_OUTPUT),
......
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