Loading asoc/codecs/wcd9360/wcd9360.c +1 −1 Original line number Diff line number Diff line Loading @@ -7122,7 +7122,7 @@ static void pahu_cdc_vote_svs(struct snd_soc_codec *codec, bool vote) return pahu_vote_svs(pahu, vote); } struct wcd_dsp_cdc_cb cdc_cb = { static struct wcd_dsp_cdc_cb cdc_cb = { .cdc_clk_en = pahu_codec_internal_rco_ctrl, .cdc_vote_svs = pahu_cdc_vote_svs, }; Loading asoc/codecs/wcd9360/wcd9360.h +39 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ struct pahu_reg_mask_val { u8 val; }; #if IS_ENABLED(CONFIG_SND_SOC_WCD9360) extern void *pahu_get_afe_config(struct snd_soc_codec *codec, enum afe_config_type config_type); extern int pahu_cdc_mclk_enable(struct snd_soc_codec *codec, bool enable); Loading @@ -138,4 +139,42 @@ extern int wcd9360_get_micb_vout_ctl_val(u32 micb_mv); extern int pahu_codec_info_create_codec_entry( struct snd_info_entry *codec_root, struct snd_soc_codec *codec); #else extern void *pahu_get_afe_config(struct snd_soc_codec *codec, enum afe_config_type config_type) { return NULL; } extern int pahu_cdc_mclk_enable(struct snd_soc_codec *codec, bool enable) { return 0; } extern int pahu_cdc_mclk_tx_enable(struct snd_soc_codec *codec, bool enable) { return 0; } extern int pahu_set_spkr_mode(struct snd_soc_codec *codec, int mode) { return 0; } extern int pahu_set_spkr_gain_offset(struct snd_soc_codec *codec, int offset) { return 0; } extern void *pahu_get_wcd_dsp_cntl(struct device *dev) { return NULL; } extern int wcd9360_get_micb_vout_ctl_val(u32 micb_mv) { return 0; } extern int pahu_codec_info_create_codec_entry( struct snd_info_entry *codec_root, struct snd_soc_codec *codec) { return 0; } #endif #endif Loading
asoc/codecs/wcd9360/wcd9360.c +1 −1 Original line number Diff line number Diff line Loading @@ -7122,7 +7122,7 @@ static void pahu_cdc_vote_svs(struct snd_soc_codec *codec, bool vote) return pahu_vote_svs(pahu, vote); } struct wcd_dsp_cdc_cb cdc_cb = { static struct wcd_dsp_cdc_cb cdc_cb = { .cdc_clk_en = pahu_codec_internal_rco_ctrl, .cdc_vote_svs = pahu_cdc_vote_svs, }; Loading
asoc/codecs/wcd9360/wcd9360.h +39 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ struct pahu_reg_mask_val { u8 val; }; #if IS_ENABLED(CONFIG_SND_SOC_WCD9360) extern void *pahu_get_afe_config(struct snd_soc_codec *codec, enum afe_config_type config_type); extern int pahu_cdc_mclk_enable(struct snd_soc_codec *codec, bool enable); Loading @@ -138,4 +139,42 @@ extern int wcd9360_get_micb_vout_ctl_val(u32 micb_mv); extern int pahu_codec_info_create_codec_entry( struct snd_info_entry *codec_root, struct snd_soc_codec *codec); #else extern void *pahu_get_afe_config(struct snd_soc_codec *codec, enum afe_config_type config_type) { return NULL; } extern int pahu_cdc_mclk_enable(struct snd_soc_codec *codec, bool enable) { return 0; } extern int pahu_cdc_mclk_tx_enable(struct snd_soc_codec *codec, bool enable) { return 0; } extern int pahu_set_spkr_mode(struct snd_soc_codec *codec, int mode) { return 0; } extern int pahu_set_spkr_gain_offset(struct snd_soc_codec *codec, int offset) { return 0; } extern void *pahu_get_wcd_dsp_cntl(struct device *dev) { return NULL; } extern int wcd9360_get_micb_vout_ctl_val(u32 micb_mv) { return 0; } extern int pahu_codec_info_create_codec_entry( struct snd_info_entry *codec_root, struct snd_soc_codec *codec) { return 0; } #endif #endif