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

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

Merge "ASoC: msm8994: Remove auxpcm redundant changes"

parents 870acba0 63b90777
Loading
Loading
Loading
Loading
+3 −23
Original line number Diff line number Diff line
@@ -77,21 +77,6 @@ struct msm_auxpcm_ctrl {
	void __iomem *mux;
};

struct msm8994_asoc_mach_data {
	struct msm_auxpcm_ctrl *pri_auxpcm_ctrl;
};

struct msm_auxpcm_gpio {
	unsigned gpio_no;
	const char *gpio_name;
};

struct msm_auxpcm_ctrl {
	struct msm_auxpcm_gpio *pin_data;
	u32 cnt;
	void __iomem *mux;
};

struct msm8994_asoc_mach_data {
	int mclk_gpio;
	u32 mclk_freq;
@@ -107,13 +92,13 @@ static int msm8994_auxpcm_rate = 8000;

static struct platform_device *spdev;
static int ext_us_amp_gpio = -1;
static int msm8994_spk_control = 1;
static int msm_slim_0_rx_ch = 1;
static int msm_slim_0_tx_ch = 1;

static int msm_btsco_rate = SAMPLING_RATE_8KHZ;
static int msm_btsco_ch = 1;
static int msm_hdmi_rx_ch = 2;
static int slim0_rx_sample_rate = SAMPLING_RATE_48KHZ;
static int msm_proxy_rx_ch = 2;
static int hdmi_rx_sample_rate = SAMPLING_RATE_48KHZ;

@@ -189,11 +174,6 @@ static struct wcd9xxx_mbhc_config mbhc_cfg = {
	.hw_jack_type = FOUR_POLE_JACK,
};

static struct snd_soc_ops msm_pri_auxpcm_be_ops = {
	.startup = msm_prim_auxpcm_startup,
	.shutdown = msm_prim_auxpcm_shutdown,
};

static inline int param_is_mask(int p)
{
	return ((p >= SNDRV_PCM_HW_PARAM_FIRST_MASK) &&
@@ -282,7 +262,7 @@ static void msm8994_ext_us_amp_enable(u32 on)
	else
		gpio_direction_output(ext_us_amp_gpio, 0);

	pr_debug("%s: US Emitter GPIO enable:%s\n"__func__,
	pr_debug("%s: US Emitter GPIO enable:%s\n", __func__,
			on ? "Enable" : "Disable");
}

@@ -885,6 +865,7 @@ static void msm_prim_auxpcm_shutdown(struct snd_pcm_substream *substream)
	if (atomic_dec_return(&prim_auxpcm_rsc_ref) == 0)
		msm_aux_pcm_free_gpios(auxpcm_ctrl);
}

static struct snd_soc_ops msm_pri_auxpcm_be_ops = {
	.startup = msm_prim_auxpcm_startup,
	.shutdown = msm_prim_auxpcm_shutdown,
@@ -2518,7 +2499,6 @@ static int msm8994_asoc_machine_probe(struct platform_device *pdev)
	struct msm8994_asoc_mach_data *pdata;
	int ret;
	const char *auxpcm_pri_gpio_set = NULL;
	const char *mbhc_audio_jack_type = NULL;
	struct resource	*pri_muxsel;
	struct resource	*sec_muxsel;