ASoC: codec: Update codec driver to component driver
Some alsa API are removed in kernel-4.19 which would cause codec driver compile failure. Update codec driver to fix it. Change-Id: Ie358ec1863082166958059c179300b453d2a03ad Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
ee084a068e
commit
15c825d077
@@ -127,47 +127,54 @@ struct tavil_reg_mask_val {
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_WCD934X)
|
||||
extern void *tavil_get_afe_config(struct snd_soc_codec *codec,
|
||||
extern void *tavil_get_afe_config(struct snd_soc_component *component,
|
||||
enum afe_config_type config_type);
|
||||
extern int tavil_cdc_mclk_enable(struct snd_soc_codec *codec, bool enable);
|
||||
extern int tavil_cdc_mclk_tx_enable(struct snd_soc_codec *codec, bool enable);
|
||||
extern int tavil_set_spkr_mode(struct snd_soc_codec *codec, int mode);
|
||||
extern int tavil_set_spkr_gain_offset(struct snd_soc_codec *codec, int offset);
|
||||
extern int tavil_cdc_mclk_enable(struct snd_soc_component *component,
|
||||
bool enable);
|
||||
extern int tavil_cdc_mclk_tx_enable(struct snd_soc_component *component,
|
||||
bool enable);
|
||||
extern int tavil_set_spkr_mode(struct snd_soc_component *component, int mode);
|
||||
extern int tavil_set_spkr_gain_offset(struct snd_soc_component *component,
|
||||
int offset);
|
||||
extern struct wcd_dsp_cntl *tavil_get_wcd_dsp_cntl(struct device *dev);
|
||||
extern int wcd934x_get_micb_vout_ctl_val(u32 micb_mv);
|
||||
extern int tavil_micbias_control(struct snd_soc_codec *codec,
|
||||
extern int tavil_micbias_control(struct snd_soc_component *component,
|
||||
int micb_num,
|
||||
int req, bool is_dapm);
|
||||
extern int tavil_mbhc_micb_adjust_voltage(struct snd_soc_codec *codec,
|
||||
extern int tavil_mbhc_micb_adjust_voltage(struct snd_soc_component *component,
|
||||
int req_volt,
|
||||
int micb_num);
|
||||
extern struct wcd934x_mbhc *tavil_soc_get_mbhc(struct snd_soc_codec *codec);
|
||||
extern int tavil_codec_enable_interp_clk(struct snd_soc_codec *codec,
|
||||
extern struct wcd934x_mbhc *tavil_soc_get_mbhc(
|
||||
struct snd_soc_component *component);
|
||||
extern int tavil_codec_enable_interp_clk(struct snd_soc_component *component,
|
||||
int event, int intp_idx);
|
||||
extern struct tavil_dsd_config *tavil_get_dsd_config(
|
||||
struct snd_soc_codec *codec);
|
||||
struct snd_soc_component *component);
|
||||
extern int tavil_codec_info_create_codec_entry(
|
||||
struct snd_info_entry *codec_root,
|
||||
struct snd_soc_codec *codec);
|
||||
struct snd_soc_component *component);
|
||||
#else
|
||||
extern void *tavil_get_afe_config(struct snd_soc_codec *codec,
|
||||
extern void *tavil_get_afe_config(struct snd_soc_component *component,
|
||||
enum afe_config_type config_type)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
extern int tavil_cdc_mclk_enable(struct snd_soc_codec *codec, bool enable)
|
||||
extern int tavil_cdc_mclk_enable(struct snd_soc_component *component,
|
||||
bool enable)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
extern int tavil_cdc_mclk_tx_enable(struct snd_soc_codec *codec, bool enable)
|
||||
extern int tavil_cdc_mclk_tx_enable(struct snd_soc_component *component,
|
||||
bool enable)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
extern int tavil_set_spkr_mode(struct snd_soc_codec *codec, int mode)
|
||||
extern int tavil_set_spkr_mode(struct snd_soc_component *component, int mode)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
extern int tavil_set_spkr_gain_offset(struct snd_soc_codec *codec, int offset)
|
||||
extern int tavil_set_spkr_gain_offset(struct snd_soc_component *component,
|
||||
int offset)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -179,35 +186,36 @@ extern int wcd934x_get_micb_vout_ctl_val(u32 micb_mv)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
extern int tavil_micbias_control(struct snd_soc_codec *codec,
|
||||
extern int tavil_micbias_control(struct snd_soc_component *component,
|
||||
int micb_num,
|
||||
int req, bool is_dapm)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
extern int tavil_mbhc_micb_adjust_voltage(struct snd_soc_codec *codec,
|
||||
extern int tavil_mbhc_micb_adjust_voltage(struct snd_soc_component *component,
|
||||
int req_volt,
|
||||
int micb_num)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
extern struct wcd934x_mbhc *tavil_soc_get_mbhc(struct snd_soc_codec *codec)
|
||||
extern struct wcd934x_mbhc *tavil_soc_get_mbhc(
|
||||
struct snd_soc_component *component)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
extern int tavil_codec_enable_interp_clk(struct snd_soc_codec *codec,
|
||||
extern int tavil_codec_enable_interp_clk(struct snd_soc_component *component,
|
||||
int event, int intp_idx)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
extern struct tavil_dsd_config *tavil_get_dsd_config(
|
||||
struct snd_soc_codec *codec)
|
||||
struct snd_soc_component *component)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
extern int tavil_codec_info_create_codec_entry(
|
||||
struct snd_info_entry *codec_root,
|
||||
struct snd_soc_codec *codec)
|
||||
struct snd_soc_component *component)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user