asoc: lpass-cdc: Add new driver for lpass-cdc wsa2 macro

Add driver support for wsa2 macro.

Change-Id: Ieca032b538cb2a8ac1345df1f1972e3c5689a5d8
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam
2020-12-10 19:12:23 +05:30
parent f067509538
commit f5ea229fb5
4 changed files with 3190 additions and 352 deletions

View File

@@ -19,23 +19,4 @@ enum {
LPASS_CDC_WSA_MACRO_GAIN_OFFSET_0_DB,
};
#if IS_ENABLED(CONFIG_WSA_MACRO)
extern int lpass_cdc_wsa_macro_set_spkr_mode(struct snd_soc_component *component,
int mode);
extern int lpass_cdc_wsa_macro_set_spkr_gain_offset(struct snd_soc_component *component,
int offset);
#else /* CONFIG_WSA_MACRO */
static inline int lpass_cdc_wsa_macro_set_spkr_mode(struct snd_soc_component *component,
int mode)
{
return 0;
}
static inline int lpass_cdc_wsa_macro_set_spkr_gain_offset(
struct snd_soc_component *component,
int offset)
{
return 0;
}
#endif /* CONFIG_WSA_MACRO */
#endif