aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_analog.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-12-13 11:03:30 -0500
committerTakashi Iwai <tiwai@suse.de>2013-01-10 04:34:30 -0500
commit8092e6065435d75a68873fa66cd003a1b829e0fe (patch)
tree02e2606a16437ea86bd192c270b21dc6d3daed1e /sound/pci/hda/patch_analog.c
parent9366ede7fd2c3ac7ed3a79c5d7c5ee4ad97043b8 (diff)
ALSA: hda - Remove snd_hda_codec_amp_update() call from patch_*.c
It's used only in one place in patch_analog.c, and it can be replaced with others better. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_analog.c')
-rw-r--r--sound/pci/hda/patch_analog.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c
index 89fc5030ec79..308a5b9e6b9d 100644
--- a/sound/pci/hda/patch_analog.c
+++ b/sound/pci/hda/patch_analog.c
@@ -995,15 +995,7 @@ static int ad1986a_hp_master_sw_put(struct snd_kcontrol *kcontrol,
995 struct snd_ctl_elem_value *ucontrol) 995 struct snd_ctl_elem_value *ucontrol)
996{ 996{
997 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 997 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
998 long *valp = ucontrol->value.integer.value; 998 int change = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol);
999 int change;
1000
1001 change = snd_hda_codec_amp_update(codec, 0x1a, 0, HDA_OUTPUT, 0,
1002 HDA_AMP_MUTE,
1003 valp[0] ? 0 : HDA_AMP_MUTE);
1004 change |= snd_hda_codec_amp_update(codec, 0x1a, 1, HDA_OUTPUT, 0,
1005 HDA_AMP_MUTE,
1006 valp[1] ? 0 : HDA_AMP_MUTE);
1007 if (change) 999 if (change)
1008 ad1986a_update_hp(codec); 1000 ad1986a_update_hp(codec);
1009 return change; 1001 return change;