]> Pileus Git - ~andy/linux/commit
ALSA: hda - Fix missing mute controls for CX5051
authorTakashi Iwai <tiwai@suse.de>
Thu, 8 Aug 2013 07:32:37 +0000 (09:32 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Aug 2013 09:42:39 +0000 (11:42 +0200)
commitf69910ddbd8c29391958cf82b598dd78fe5c8640
tree5c0e08e89822dd90151ebf7878065c9cc147038a
parentaa773bfe8f860173752258c9ba4bf51060fb0d07
ALSA: hda - Fix missing mute controls for CX5051

We've added a fake mute control (setting the amp volume to zero) for
CX5051 at commit [3868137e: ALSA: hda - Add a fake mute feature], but
this feature was overlooked in the generic parser implementation.  Now
the driver lacks of mute controls on these codecs.

The fix is just to check both AC_AMPCAP_MUTE and AC_AMPCAP_MIN_MUTE
bits in each place checking the amp capabilities.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=59001
Cc: <stable@vger.kernel.org> [v3.9+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c