]> 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)
commit2ed07d62e9a0891e8818fe85bc668b1a1a1d6ff6
treed3586c2ae070c98c46bd897194f96e0994ac1f15
parentdf6d7254be6c696fd7b3281215110b0a99db5803
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