From patchwork Wed May 16 10:48:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_R=C3=A9tornaz?= X-Patchwork-Id: 159576 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 62423B6FD7 for ; Wed, 16 May 2012 20:49:30 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SUblC-0002dH-M6; Wed, 16 May 2012 10:47:14 +0000 Received: from smtp4.epfl.ch ([128.178.224.218]) by merlin.infradead.org with smtp (Exim 4.76 #1 (Red Hat Linux)) id 1SUbl5-0002d3-H8 for linux-arm-kernel@lists.infradead.org; Wed, 16 May 2012 10:47:11 +0000 Received: (qmail 15507 invoked by uid 107); 16 May 2012 10:47:00 -0000 X-Virus-Scanned: ClamAV Received: from lsro1pc40.epfl.ch (HELO localhost.localdomain) (128.178.145.86) (authenticated) by smtp4.epfl.ch (AngelmatoPhylax SMTP proxy) with ESMTPA; Wed, 16 May 2012 12:47:00 +0200 From: =?UTF-8?q?Philippe=20R=C3=A9tornaz?= To: broonie@opensource.wolfsonmicro.com Subject: [PATCH] ASoC: imx-mc13783 cleanup Date: Wed, 16 May 2012 12:48:24 +0200 Message-Id: <1337165304-22686-1-git-send-email-philippe.retornaz@epfl.ch> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <20120515183035.GG19592@opensource.wolfsonmicro.com> References: <20120515183035.GG19592@opensource.wolfsonmicro.com> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [128.178.224.218 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: alsa-devel@alsa-project.org, torbenh@linutronix.de, sameo@linux.intel.com, s.hauer@pengutronix.de, philippe.retornaz@epfl.ch, festevam@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Signed-off-by: Philippe Rétornaz --- sound/soc/fsl/imx-mc13783.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) 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, }, };