From patchwork Thu Jul 11 07:08:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Padmavathi Venna X-Patchwork-Id: 2826033 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4AFA59F7D6 for ; Thu, 11 Jul 2013 07:03:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 65FD92014B for ; Thu, 11 Jul 2013 07:03:55 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 68A4320148 for ; Thu, 11 Jul 2013 07:03:54 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UxAut-0007I4-3O; Thu, 11 Jul 2013 07:03:51 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UxAuq-0008EV-PE; Thu, 11 Jul 2013 07:03:48 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UxAun-0008Db-8N for linux-arm-kernel@lists.infradead.org; Thu, 11 Jul 2013 07:03:47 +0000 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MPR00D42FLMFCL0@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 11 Jul 2013 16:03:22 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.122]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id FF.4F.17404.9B85ED15; Thu, 11 Jul 2013 16:03:21 +0900 (KST) X-AuditID: cbfee68d-b7f096d0000043fc-5d-51de58b9cd71 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 52.1C.21068.9B85ED15; Thu, 11 Jul 2013 16:03:21 +0900 (KST) Received: from padma-linuxpc.sisodomain.com ([107.108.83.35]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MPR005UFFLB7I60@mmp1.samsung.com>; Thu, 11 Jul 2013 16:03:21 +0900 (KST) From: Padmavathi Venna To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, padma.v@samsung.com, padma.kvr@gmail.com Subject: [PATCH] ASoC: Samsung: Set RFS and BFS in slave mode Date: Thu, 11 Jul 2013 12:38:25 +0530 Message-id: <1373526505-27115-2-git-send-email-padma.v@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1373526505-27115-1-git-send-email-padma.v@samsung.com> References: <1373526505-27115-1-git-send-email-padma.v@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgkeLIzCtJLcpLzFFi42JZI2JSpbsz4l6gwYtLehYr3/9ltLhy8RCT xdSHT9gsehdcZbPY9Pgaq8WM8/uYLNqXzWG1+H3zO5vFxRVfmBw4PTZ8bmLzmN1wkcVj56y7 7B6bVnWyeWxeUu/Rt2UVo8fnTXIB7FFcNimpOZllqUX6dglcGR9mdLMUTOeo2D6ri6WB8QJb FyMHh4SAicTOhfFdjJxAppjEhXvr2UBsIYGljBKH+nUg4iYSi47OYeli5AKKL2KU2Lb2NjOE 08MksWrBfyaQQWwCOhItZ11A4iICUxgljnX+BZvELBAtMXPtQyYQW1jAVqLh6X0WEJtFQFXi 0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JlVWpRfnxRaU5q8SHGZKCrJjJLiSbnAxNBXkm8obGJuamxqaWJhYmZ JWnCSuK8B1utA4UE0hNLUrNTUwtSi2C2MHFwSjUwepRNdlr22tPI/9PJt396f32VSAp1nr7h +jz9q3wJT3YZ3+Z7tU7924PEg2ev6K7mmDujotuFl8fYt3PbtELTMtvThwOkp7z8tGmhRHic eZXQO3NrYdsfh25/lAn+Z3r7leGN7H0TBGeffC754sWtmLK1VsfLY+1m5NVXzRSOO3xBlqUh 5lvUAiWW4oxEQy3mouJEAIp/UmX6AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130711_030345_564784_5B277112 X-CRM114-Status: UNSURE ( 9.02 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.2 (-------) Cc: sbkim73@samsung.com, kgene.kim@samsung.com, broonie@kernel.org, abrestic@chromium.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As per the User Manual, the RFS and BFS should be set in slave mode for correct operation. Signed-off-by: Padmavathi Venna Signed-off-by: Andrew Bresticker Reviewed-on: https://gerrit-int.chromium.org/37841 Reviewed-by: Simon Glass --- sound/soc/samsung/i2s.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index 82ebb1a..3fcf8d7 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c @@ -742,13 +742,13 @@ static int config_setup(struct i2s_dai *i2s) return -EAGAIN; } - /* Don't bother RFS, BFS & PSR in Slave mode */ - if (is_slave(i2s)) - return 0; - set_bfs(i2s, bfs); set_rfs(i2s, rfs); + /* Don't bother with PSR in Slave mode */ + if (is_slave(i2s)) + return 0; + if (!(i2s->quirks & QUIRK_NO_MUXPSR)) { psr = i2s->rclk_srcrate / i2s->frmclk / rfs; writel(((psr - 1) << 8) | PSR_PSREN, i2s->addr + I2SPSR);