From 350d51c06a794390c3b85f7731a759dc5abd4196 Mon Sep 17 00:00:00 2001 From: Aditya Bavanari Date: Thu, 31 Jan 2019 17:29:16 +0530 Subject: [PATCH] asoc: sm6150: Remove zdet gpio callback for tasha variant Remove impedance detection gpio callback function for tasha variant as gpio control is not required for zdet. Change-Id: Ic038d11c078241ca438cdff756fd666f6106d509 Signed-off-by: Aditya Bavanari --- asoc/sm6150.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/asoc/sm6150.c b/asoc/sm6150.c index 84e05c8dcc39..11bb6115d0ed 100644 --- a/asoc/sm6150.c +++ b/asoc/sm6150.c @@ -4760,28 +4760,6 @@ static void msm_afe_clear_config(void) afe_clear_config(AFE_SLIMBUS_SLAVE_CONFIG); } -static int msm_config_hph_en0_gpio(struct snd_soc_component *component, bool high) -{ - struct snd_soc_card *card = component->card; - struct msm_asoc_mach_data *pdata; - int val; - - if (!card) - return 0; - - pdata = snd_soc_card_get_drvdata(card); - if (!pdata || !gpio_is_valid(pdata->hph_en0_gpio)) - return 0; - - val = gpio_get_value_cansleep(pdata->hph_en0_gpio); - if ((!!val) == high) - return 0; - - gpio_direction_output(pdata->hph_en0_gpio, (int)high); - - return 1; -} - static int msm_audrx_tavil_init(struct snd_soc_pcm_runtime *rtd) { int ret = 0; @@ -5103,7 +5081,6 @@ static int msm_audrx_tasha_init(struct snd_soc_pcm_runtime *rtd) pdata->codec_root = entry; } tasha_codec_info_create_codec_entry(pdata->codec_root, component); - tasha_mbhc_zdet_gpio_ctrl(msm_config_hph_en0_gpio, component); codec_reg_done = true; return 0;