]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Add a fake mute feature
authorTakashi Iwai <tiwai@suse.de>
Mon, 27 Feb 2012 14:00:58 +0000 (15:00 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Feb 2012 16:32:38 +0000 (17:32 +0100)
commitfa5e96ef488023ad3de57a0ad97fc9ef0373a4b0
treed3586c2ae070c98c46bd897194f96e0994ac1f15
parenta8ea4335ada3b4e244920c8a0d58cce48063f7da
ALSA: hda - Add a fake mute feature

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

Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/patch_conexant.c