Audio: DLKM support for all audio modules
Switch to DLKM for all audio kernel modules. Change-Id: I6a96023a21f655f873531af9ace81f2b01eb0f58 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Этот коммит содержится в:
@@ -137,6 +137,7 @@ enum {
|
||||
RX_GAIN_OFFSET_0_DB,
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_WCD9335)
|
||||
extern void *tasha_get_afe_config(struct snd_soc_codec *codec,
|
||||
enum afe_config_type config_type);
|
||||
extern int tasha_cdc_mclk_enable(struct snd_soc_codec *codec, int enable,
|
||||
@@ -163,4 +164,75 @@ extern int tasha_codec_enable_standalone_micbias(struct snd_soc_codec *codec,
|
||||
extern int tasha_set_spkr_mode(struct snd_soc_codec *codec, int mode);
|
||||
extern int tasha_set_spkr_gain_offset(struct snd_soc_codec *codec, int offset);
|
||||
extern enum codec_variant tasha_codec_ver(void);
|
||||
#else /* CONFIG_SND_SOC_WCD9335 */
|
||||
static inline void *tasha_get_afe_config(struct snd_soc_codec *codec,
|
||||
enum afe_config_type config_type)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
static inline int tasha_cdc_mclk_enable(struct snd_soc_codec *codec,
|
||||
int enable,
|
||||
bool dapm)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline int tasha_cdc_mclk_tx_enable(struct snd_soc_codec *codec,
|
||||
int enable,
|
||||
bool dapm)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline int tasha_enable_efuse_sensing(struct snd_soc_codec *codec)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline int tasha_mbhc_hs_detect(struct snd_soc_codec *codec,
|
||||
struct wcd_mbhc_config *mbhc_cfg)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline void tasha_mbhc_hs_detect_exit(struct snd_soc_codec *codec)
|
||||
{
|
||||
|
||||
}
|
||||
static inline void tasha_mbhc_zdet_gpio_ctrl(
|
||||
int (*zdet_gpio_cb)(struct snd_soc_codec *codec, bool high),
|
||||
struct snd_soc_codec *codec)
|
||||
{
|
||||
|
||||
}
|
||||
static inline int tasha_codec_info_create_codec_entry(
|
||||
struct snd_info_entry *codec_root,
|
||||
struct snd_soc_codec *codec)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline void tasha_event_register(
|
||||
int (*machine_event_cb)(struct snd_soc_codec *codec,
|
||||
enum wcd9335_codec_event),
|
||||
struct snd_soc_codec *codec)
|
||||
{
|
||||
|
||||
}
|
||||
static inline int tasha_codec_enable_standalone_micbias(
|
||||
struct snd_soc_codec *codec,
|
||||
int micb_num,
|
||||
bool enable)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline int tasha_set_spkr_mode(struct snd_soc_codec *codec, int mode)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline int tasha_set_spkr_gain_offset(struct snd_soc_codec *codec,
|
||||
int offset)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline enum codec_variant tasha_codec_ver(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_SND_SOC_WCD9335 */
|
||||
#endif
|
||||
|
Ссылка в новой задаче
Block a user