From patchwork Mon Feb 26 02:43:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yong X-Patchwork-Id: 10241181 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 22C3E60208 for ; Mon, 26 Feb 2018 02:46:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10F7429E54 for ; Mon, 26 Feb 2018 02:46:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04DDA29E5C; Mon, 26 Feb 2018 02:46:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 87B9E29E54 for ; Mon, 26 Feb 2018 02:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=DK0mNIN8R9VItoxAbbZV8pnjudSa7s1lPPTzD5fRpX8=; b=qkd iSnEcfx0sWD5b5d5eUBx2mZLM/3fgU4qRCAnd+kvSbl55IUOdYoq34Po0IcP6FyaFbG6hMnXVBWmF NCiGm7UoSzac1rOOVQfEcz6d8e3xd+5QYAG9975WiJoVC94xn7vmJpyPe6LnFo31kGO2BhbDydA8P PP9YDU69Wp1dybQFivID3LMTkTZHCh7hK8N+ir1y/w4I53PjCeODcvPz/y+3peNAuDXpg+KKW2wEE 66cQ14YyOzAAP6wjxzxYftTkp7h/m2HVtyvpRyRugYhCSUG9hUzd/ru/dxP4e02SZmG60def/tTJj 8A65kbFssSGrecYwvDBI4bEFhdc4Z7Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eq8nv-0003Mw-Uz; Mon, 26 Feb 2018 02:46:15 +0000 Received: from out20-13.mail.aliyun.com ([115.124.20.13]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eq8nn-00039r-UW for linux-arm-kernel@lists.infradead.org; Mon, 26 Feb 2018 02:46:13 +0000 X-Alimail-AntiSpam: AC=CONTINUE; BC=0.2722042|-1; CH=green; FP=0|0|0|0|0|-1|-1|-1; HT=e02c03273; MF=yong.deng@magewell.com; NM=1; PH=DS; RN=13; RT=13; SR=0; TI=SMTPD_---.B59llfC_1519613133; Received: from linuxproject.localdomain(mailfrom:yong.deng@magewell.com fp:58.213.29.2) by smtp.aliyun-inc.com(10.147.40.26); Mon, 26 Feb 2018 10:45:34 +0800 From: Yong Deng To: Maxime Ripard Subject: [PATCH] ASoC: sun4i-i2s: Fix RX slot number of SUN8I Date: Mon, 26 Feb 2018 10:43:52 +0800 Message-Id: <1519613032-10244-1-git-send-email-yong.deng@magewell.com> X-Mailer: git-send-email 1.8.3.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180225_184608_177968_A26565AB X-CRM114-Status: UNSURE ( 6.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, Yong Deng , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Takashi Iwai , Liam Girdwood , Marcus Cooper , Chen-Yu Tsai , Mark Brown , Philipp Zabel , Jaroslav Kysela , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP I2S's RX slot number of SUN8I should be shifted 4 bit to left. Fixes: 7d2993811a1e ("ASoC: sun4i-i2s: Add support for H3") Signed-off-by: Yong Deng Reviewed-by: Chen-Yu Tsai --- sound/soc/sunxi/sun4i-i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index dca1143c1150..a4aa931ebfae 100644 --- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -104,7 +104,7 @@ #define SUN8I_I2S_CHAN_CFG_REG 0x30 #define SUN8I_I2S_CHAN_CFG_RX_SLOT_NUM_MASK GENMASK(6, 4) -#define SUN8I_I2S_CHAN_CFG_RX_SLOT_NUM(chan) (chan - 1) +#define SUN8I_I2S_CHAN_CFG_RX_SLOT_NUM(chan) ((chan - 1) << 4) #define SUN8I_I2S_CHAN_CFG_TX_SLOT_NUM_MASK GENMASK(2, 0) #define SUN8I_I2S_CHAN_CFG_TX_SLOT_NUM(chan) (chan - 1)