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: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
Meng Wang 2020-05-20 08:20:25 +08:00
commit 49a132aa9c

View file

@ -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
*/