aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorPhilippe Rétornaz <philippe.retornaz@epfl.ch>2012-05-16 06:48:24 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-18 11:42:23 -0400
commitcd7dc7a42cb541916316f6350dcc69f7af4c289c (patch)
treec99cd1780b8bc39ee40b72f62fb2d1eb2d7fe100 /sound/soc
parent2f7b945148477e97c4d9d5a484728cd8106828c7 (diff)
ASoC: imx-mc13783 cleanup
Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/fsl/imx-mc13783.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/soc/fsl/imx-mc13783.c b/sound/soc/fsl/imx-mc13783.c
index a7b717004e4e..f59c34943662 100644
--- a/sound/soc/fsl/imx-mc13783.c
+++ b/sound/soc/fsl/imx-mc13783.c
@@ -37,14 +37,6 @@ static int imx_mc13783_hifi_hw_params(struct snd_pcm_substream *substream,
37 struct snd_soc_dai *codec_dai = rtd->codec_dai; 37 struct snd_soc_dai *codec_dai = rtd->codec_dai;
38 int ret; 38 int ret;
39 39
40 ret = snd_soc_dai_set_fmt(codec_dai, FMT_SSI);
41 if (ret)
42 return ret;
43
44 ret = snd_soc_dai_set_fmt(cpu_dai, FMT_SSI);
45 if (ret)
46 return ret;
47
48 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xfffffffc, 0xfffffffc, 40 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xfffffffc, 0xfffffffc,
49 4, 16); 41 4, 16);
50 if (ret) 42 if (ret)
@@ -75,6 +67,7 @@ static struct snd_soc_dai_link imx_mc13783_dai_mc13783[] = {
75 .platform_name = "imx-pcm-audio.0", 67 .platform_name = "imx-pcm-audio.0",
76 .ops = &imx_mc13783_hifi_ops, 68 .ops = &imx_mc13783_hifi_ops,
77 .symmetric_rates = 1, 69 .symmetric_rates = 1,
70 .dai_fmt = FMT_SSI,
78 }, 71 },
79}; 72};
80 73