Patchwork ASoC: imx-mc13783 cleanup

login
register
mail settings
Submitter Philippe Rétornaz
Date May 16, 2012, 10:48 a.m.
Message ID <1337165304-22686-1-git-send-email-philippe.retornaz@epfl.ch>
Download mbox | patch
Permalink /patch/159576/
State New
Headers show

Comments

Philippe Rétornaz - May 16, 2012, 10:48 a.m.
Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
---
 sound/soc/fsl/imx-mc13783.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
Mark Brown - May 18, 2012, 3:45 p.m.
On Wed, May 16, 2012 at 12:48:24PM +0200, Philippe Rétornaz wrote:
> 
> Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>

Applied, thanks.

Patch

diff --git a/sound/soc/fsl/imx-mc13783.c b/sound/soc/fsl/imx-mc13783.c
index a7b7170..f59c349 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,
 	struct snd_soc_dai *codec_dai = rtd->codec_dai;
 	int ret;
 
-	ret = snd_soc_dai_set_fmt(codec_dai, FMT_SSI);
-	if (ret)
-		return ret;
-
-	ret = snd_soc_dai_set_fmt(cpu_dai, FMT_SSI);
-	if (ret)
-		return ret;
-
 	ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xfffffffc, 0xfffffffc,
 					4, 16);
 	if (ret)
@@ -75,6 +67,7 @@  static struct snd_soc_dai_link imx_mc13783_dai_mc13783[] = {
 		.platform_name	 = "imx-pcm-audio.0",
 		.ops		 = &imx_mc13783_hifi_ops,
 		.symmetric_rates = 1,
+		.dai_fmt 	 = FMT_SSI,
 	},
 };