diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-06-11 04:51:28 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-06-11 05:55:48 -0400 |
commit | a686ec4c5f28eb1b384e4b87b08543155c970072 (patch) | |
tree | d35a87067360948ffad9e2dae8cfeb9d97d5925e /include/sound | |
parent | bf06848bdbe549175d25d2327ab9f37d4bd556b7 (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>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/hda_regmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/hda_regmap.h b/include/sound/hda_regmap.h index 53a18b3635e2..df705908480a 100644 --- a/include/sound/hda_regmap.h +++ b/include/sound/hda_regmap.h | |||
@@ -9,6 +9,8 @@ | |||
9 | #include <sound/core.h> | 9 | #include <sound/core.h> |
10 | #include <sound/hdaudio.h> | 10 | #include <sound/hdaudio.h> |
11 | 11 | ||
12 | #define AC_AMP_FAKE_MUTE 0x10 /* fake mute bit set to amp verbs */ | ||
13 | |||
12 | int snd_hdac_regmap_init(struct hdac_device *codec); | 14 | int snd_hdac_regmap_init(struct hdac_device *codec); |
13 | void snd_hdac_regmap_exit(struct hdac_device *codec); | 15 | void snd_hdac_regmap_exit(struct hdac_device *codec); |
14 | int snd_hdac_regmap_add_vendor_verb(struct hdac_device *codec, | 16 | int snd_hdac_regmap_add_vendor_verb(struct hdac_device *codec, |