mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]>
This commit is contained in:
parent
bf06848bdb
commit
a686ec4c5f
4 changed files with 34 additions and 2 deletions
|
|
@ -9,6 +9,8 @@
|
|||
#include <sound/core.h>
|
||||
#include <sound/hdaudio.h>
|
||||
|
||||
#define AC_AMP_FAKE_MUTE 0x10 /* fake mute bit set to amp verbs */
|
||||
|
||||
int snd_hdac_regmap_init(struct hdac_device *codec);
|
||||
void snd_hdac_regmap_exit(struct hdac_device *codec);
|
||||
int snd_hdac_regmap_add_vendor_verb(struct hdac_device *codec,
|
||||
|
|
|
|||
Loading…
Reference in a new issue