ALSA: hda - Fix invalid bit values passed to snd_hda_codec_amp_stereo()
authorTakashi Iwai <tiwai@suse.de>
Mon, 29 Mar 2010 07:16:24 +0000 (09:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 29 Mar 2010 07:18:49 +0000 (09:18 +0200)
commit5dbd5ec6e1cf2e49128025d80813a275744a7ac5
tree6b9e37293030480c891cf78433767e2f63af532e
parent9ec8ddad59fadd8021adfea4cb716a49b0e232e9
ALSA: hda - Fix invalid bit values passed to snd_hda_codec_amp_stereo()

The mask and value parameters passed to snd_hda_codec_amp_stereo()
should be 8-bit values for mute and volume.  Passing AMP_IN_MUTE() is
wrong, which is found in many places in patch_realtek.c as a left-over
from the conversion to snd_hda_codec_amp_stereo().

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c