ASoC: add config check for QGKI
Add CONFIG_AUDIO_QGKI check for variables and functions in audio drivers, so they are used only during a QGKI build. Change-Id: Ia04232566367f196f298a49cf3962bb7927bec6a Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
This commit is contained in:

committed by
Sudheer Papothi

parent
bde9a11153
commit
823f0f01fe
@@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/init.h>
|
||||
@@ -526,6 +526,7 @@ static const struct snd_pcm_ops msm_pcm_ops = {
|
||||
.trigger = msm_pcm_trigger,
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_AUDIO_QGKI)
|
||||
static int msm_pcm_volume_ctl_put(struct snd_kcontrol *kcontrol,
|
||||
struct snd_ctl_elem_value *ucontrol)
|
||||
{
|
||||
@@ -754,6 +755,16 @@ static int msm_pcm_add_app_type_controls(struct snd_soc_pcm_runtime *rtd)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
static int msm_pcm_add_volume_controls(struct snd_soc_pcm_runtime *rtd)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static int msm_pcm_add_app_type_controls(struct snd_soc_pcm_runtime *rtd)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_AUDIO_QGKI */
|
||||
|
||||
static struct msm_pcm_channel_mixer *msm_pcm_get_chmixer(
|
||||
struct msm_pcm_pdata *pdata,
|
||||
|
Reference in New Issue
Block a user