Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b51424a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "asoc: codecs: wcd9360: add stub functions for codec APIs" into audio-drivers.lnx.3.0

parents f0ec686d f0e329cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
};
+39 −0
Original line number Diff line number Diff line
@@ -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);
@@ -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