summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorLionel Xu <Lionel.Xu@freescale.com>2012-03-02 13:12:26 +0800
committerLionel Xu <Lionel.Xu@freescale.com>2012-03-06 10:53:07 +0800
commit5f5a08e4d616beb2aac46ccbb00ee98683c0d4c4 (patch)
tree2bbf770da1d0d722005a810de75b23caf3af0540 /sound
parent4745ceecbe3c779e596c8267121c957ecc449d60 (diff)
ENGR00170526-3 ESAI: Remove the workaround to reset codec before playbacking
Previously in order to avoid audio playback no sound issue, a hardware reset was made to the codec chip each time when doing playback. now remove this workaround. Signed-off-by: Lionel Xu <Lionel.Xu@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/cs42888.h3
-rw-r--r--sound/soc/imx/imx-cs42888.c12
2 files changed, 1 insertions, 14 deletions
diff --git a/sound/soc/codecs/cs42888.h b/sound/soc/codecs/cs42888.h
index bea8beb8b70d..b4f3950e8271 100644
--- a/sound/soc/codecs/cs42888.h
+++ b/sound/soc/codecs/cs42888.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2010-2012 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -19,7 +19,6 @@
* the .codec_dai field of your machine driver's snd_soc_dai_link structure.
*/
extern struct snd_soc_dai_driver cs42888_dai;
-#define CS42888_RST 235
/*
* The ASoC codec device structure for the CS42888. Assign this structure
diff --git a/sound/soc/imx/imx-cs42888.c b/sound/soc/imx/imx-cs42888.c
index 0a78b39839fc..dc46fa676386 100644
--- a/sound/soc/imx/imx-cs42888.c
+++ b/sound/soc/imx/imx-cs42888.c
@@ -41,7 +41,6 @@ struct imx_priv_state {
static struct imx_priv_state hw_state;
unsigned int mclk_freq;
-int rst_gpio;
static int imx_3stack_startup(struct snd_pcm_substream *substream)
{
@@ -50,15 +49,6 @@ static int imx_3stack_startup(struct snd_pcm_substream *substream)
if (!cpu_dai->active) {
hw_state.hw = 0;
- if (rst_gpio) {
- gpio_set_value_cansleep(rst_gpio, 0);
- msleep(100);
- gpio_set_value_cansleep(rst_gpio, 1);
- } else {
- gpio_direction_output(CS42888_RST, 0);
- msleep(100);
- gpio_direction_output(CS42888_RST, 1);
- }
}
return 0;
@@ -155,7 +145,6 @@ static int imx_3stack_surround_hw_params(struct snd_pcm_substream *substream,
dai_format = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_NB_NF |
SND_SOC_DAIFMT_CBS_CFS;
-
/* set cpu DAI configuration */
snd_soc_dai_set_fmt(cpu_dai, dai_format);
/* set i.MX active slot mask */
@@ -268,7 +257,6 @@ static int __devinit imx_3stack_cs42888_probe(struct platform_device *pdev)
return -EINVAL;
}
mclk_freq = plat_data->sysclk;
- rst_gpio = plat_data->rst_gpio;
if (plat_data->codec_name)
imx_3stack_dai[0].codec_name = plat_data->codec_name;
return 0;