author | Takashi Iwai <tiwai@suse.de> | |
Thu, 11 Jun 2015 08:51:28 +0000 (10:51 +0200) | ||
committer | Takashi Iwai <tiwai@suse.de> | |
Thu, 11 Jun 2015 09:55:48 +0000 (11:55 +0200) | ||
commit | a686ec4c5f28eb1b384e4b87b08543155c970072 | |
tree | d35a87067360948ffad9e2dae8cfeb9d97d5925e | tree | snapshot (tar.xz tar.gz zip) |
parent | bf06848bdbe549175d25d2327ab9f37d4bd556b7 | commit | diff |
ALSA: hda - Re-add the lost fake mute support
Yet another regression by the transition to regmap cache; for better
usability, we had the fake mute control using the zero amp value for
Conexant codecs, and this was forgotten in the new hda core code.
Since the bits 4-7 are unused for the amp registers (as we follow the
syntax of AMP_GET verb), the bit 4 is now used to indicate the fake
mute. For setting this flag, snd_hda_codec_amp_update() becomes a
function from a simple macro. The bonus is that it gained a proper
function description.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Yet another regression by the transition to regmap cache; for better
usability, we had the fake mute control using the zero amp value for
Conexant codecs, and this was forgotten in the new hda core code.
Since the bits 4-7 are unused for the amp registers (as we follow the
syntax of AMP_GET verb), the bit 4 is now used to indicate the fake
mute. For setting this flag, snd_hda_codec_amp_update() becomes a
function from a simple macro. The bonus is that it gained a proper
function description.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hda_regmap.h | diff | blob | history | |
sound/hda/hdac_regmap.c | diff | blob | history | |
sound/pci/hda/hda_codec.c | diff | blob | history | |
sound/pci/hda/hda_local.h | diff | blob | history |