Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49a132aa authored by Meng Wang's avatar Meng Wang
Browse files

ALSA: pcm: add macro SND_PCM_ADD_VOLUME_CTL and SND_PCM_ADD_USR_CTL



Add macro SND_PCM_ADD_CTL to identify if snd_pcm_add_usr_ctls
and snd_pcm_add_volume_ctls are called from ASoC.

Change-Id: I7542b180fcf3861b9adbf1d36780613703fcdcad
Signed-off-by: default avatarMeng Wang <mengw@codeaurora.org>
parent 4fbfcf83
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1432,6 +1432,8 @@ static inline u64 pcm_format_to_bits(snd_pcm_format_t pcm_format)
}

#ifdef CONFIG_AUDIO_QGKI
#define SND_PCM_ADD_VOLUME_CTL 1
#define SND_PCM_ADD_USR_CTL 1
/*
 * PCM Volume control API
 */