]> git.itanic.dy.fi Git - linux-stable/commit
ALSA: hda - Add a fake mute feature
authorTakashi Iwai <tiwai@suse.de>
Mon, 27 Feb 2012 14:00:58 +0000 (15:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 19:31:23 +0000 (12:31 -0700)
commita4b6027fffedb34d07b671b6aebf85fc1fc2caf7
treed6bfb81600a74b2cf12b63c30d462257107faf79
parent2f5b7338fbdb695d66424d19e0bb193b4d5f6591
ALSA: hda - Add a fake mute feature

commit 3868137ea41866773e75d9ac4b9988dcc361ff1d upstream.

Some codecs don't supply the mute amp-capabilities although the lowest
volume gives the mute.  It'd be handy if the parser provides the mute
mixers in such a case.

This patch adds an extension amp-cap bit (which is used only in the
driver) to represent the min volume = mute state.  Also modified the
amp cache code to support the fake mute feature when this bit is set
but the real mute bit is unset.

In addition, conexant cx5051 parser uses this new feature to implement
the missing mute controls.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=42825

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/patch_conexant.c