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

Commit 63d524f0 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: wcd934x: add stub functions for codec APIs" into audio-drivers.lnx.3.0

parents 79b77626 dbfc6a77
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9885,7 +9885,7 @@ static void tavil_cdc_vote_svs(struct snd_soc_codec *codec, bool vote)
	return tavil_vote_svs(tavil, vote);
}

struct wcd_dsp_cdc_cb cdc_cb = {
static struct wcd_dsp_cdc_cb cdc_cb = {
	.cdc_clk_en = tavil_codec_internal_rco_ctrl,
	.cdc_vote_svs = tavil_cdc_vote_svs,
};
+67 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -134,6 +134,7 @@ struct tavil_reg_mask_val {
	u8 val;
};

#if IS_ENABLED(CONFIG_SND_SOC_WCD934X)
extern void *tavil_get_afe_config(struct snd_soc_codec *codec,
				  enum afe_config_type config_type);
extern int tavil_cdc_mclk_enable(struct snd_soc_codec *codec, bool enable);
@@ -156,4 +157,69 @@ extern struct tavil_dsd_config *tavil_get_dsd_config(
extern int tavil_codec_info_create_codec_entry(
				struct snd_info_entry *codec_root,
				struct snd_soc_codec *codec);
#else
extern void *tavil_get_afe_config(struct snd_soc_codec *codec,
				  enum afe_config_type config_type)
{
	return NULL;
}
extern int tavil_cdc_mclk_enable(struct snd_soc_codec *codec, bool enable)
{
	return 0;
}
extern int tavil_cdc_mclk_tx_enable(struct snd_soc_codec *codec, bool enable)
{
	return 0;
}
extern int tavil_set_spkr_mode(struct snd_soc_codec *codec, int mode)
{
	return 0;
}
extern int tavil_set_spkr_gain_offset(struct snd_soc_codec *codec, int offset)
{
	return 0;
}
extern struct wcd_dsp_cntl *tavil_get_wcd_dsp_cntl(struct device *dev)
{
	return NULL;
}
extern int wcd934x_get_micb_vout_ctl_val(u32 micb_mv)
{
	return 0;
}
extern int tavil_micbias_control(struct snd_soc_codec *codec,
				 int micb_num,
				 int req, bool is_dapm)
{
	return 0;
}
extern int tavil_mbhc_micb_adjust_voltage(struct snd_soc_codec *codec,
					  int req_volt,
					  int micb_num)
{
	return 0;
}
extern struct wcd934x_mbhc *tavil_soc_get_mbhc(struct snd_soc_codec *codec)
{
	return NULL;
}
extern int tavil_codec_enable_interp_clk(struct snd_soc_codec *codec,
					 int event, int intp_idx)
{
	return 0;
}
extern struct tavil_dsd_config *tavil_get_dsd_config(
				struct snd_soc_codec *codec)
{
	return NULL;
}
extern int tavil_codec_info_create_codec_entry(
				struct snd_info_entry *codec_root,
				struct snd_soc_codec *codec)
{
	return 0;
}

#endif

#endif