Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3018647imm; Sun, 1 Jul 2018 10:24:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIv21P5WuQeiDWm394tsEVfDkAjm9wAL/hdv/fh1/LvaLFqL/uIPxeMP5E7rH3ZmgRATUQA X-Received: by 2002:a17:902:6b84:: with SMTP id p4-v6mr22791409plk.272.1530465865079; Sun, 01 Jul 2018 10:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530465865; cv=none; d=google.com; s=arc-20160816; b=mU518vsQ6g/Wyg7gGSAKTu2vuGA7P18MKEYx6fzY7BrzOUAQa3cWIGaGXGRlgyMDFc 0JAKFcZFNOLsh7WTOz6bDmETyPwE8OQK3vucR69UNWkDZReGxHq9fz6qP1Z0jwCtfTwK 7bsw9x0cmRS2LBPMSi4OHo/U9vbeiAX5fP0/wDuvUOaplq6h7nVMHDOydOJTJYNH9maZ hTCkuTHELGHPuR6+vR2Xfr71IJ5GBRrngIfhGQnSytebkPPtZXxHYkJO8RLXCSAWn/od zloDUu1Lzl5uipa0aS9YskSVYLuQZ74fzRkDsIzs722orp3qFSqlSQzTsiUVcbJGob4n sU2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=kmc0u2GyV/J20s/oMvxMQPSrhTgxY39wrIS5dm4dTEg=; b=MQe7NeNP3ZFChwuJn11GVIXeWrorO0dD26VO/8bWVjfeNWAiByBML9+plusXuln9Xb ypNHoeUDGO3DY2USoB/v2tQ8EH9xtuGsyQ4xSxZYPz/OHpGP47AttDTVUamtrtEjfilC d6Y6iv7Coj0awHpxuMB1kimB+51fzcHwsGtwQsLcc8NMOjpNkqzDUo5GwHBW4Pohoy0G Y2ICMQw0LLq90hmSGB4Ql2ZCzpD2kgRnI4/c/f0xwJO6YcL1/HCQB7+JRGIYUcsYq/3I YuKqNZptOp87kWMD5lq49QLviry+naAPzRRw1aKzpU8SZW2wQ5RqMh0TFgaPU8BpoVea AvQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i62-v6si13657848pfc.255.2018.07.01.10.24.10; Sun, 01 Jul 2018 10:24:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031500AbeGAQhw (ORCPT + 99 others); Sun, 1 Jul 2018 12:37:52 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36422 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031397AbeGAQhq (ORCPT ); Sun, 1 Jul 2018 12:37:46 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 74516A73; Sun, 1 Jul 2018 16:37:45 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Sverdlin , Mark Brown Subject: [PATCH 4.17 029/220] ASoC: cirrus: i2s: Fix LRCLK configuration Date: Sun, 1 Jul 2018 18:20:53 +0200 Message-Id: <20180701160909.555611339@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexander Sverdlin commit 2d534113be9a2aa532a1ae127a57e83558aed358 upstream. The bit responsible for LRCLK polarity is i2s_tlrs (0), not i2s_trel (2) (refer to "EP93xx User's Guide"). Previously card drivers which specified SND_SOC_DAIFMT_NB_IF actually got SND_SOC_DAIFMT_NB_NF, an adaptation is necessary to retain the old behavior. Signed-off-by: Alexander Sverdlin Signed-off-by: Mark Brown Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- sound/soc/cirrus/edb93xx.c | 2 +- sound/soc/cirrus/ep93xx-i2s.c | 8 ++++---- sound/soc/cirrus/snappercl15.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) --- a/sound/soc/cirrus/edb93xx.c +++ b/sound/soc/cirrus/edb93xx.c @@ -67,7 +67,7 @@ static struct snd_soc_dai_link edb93xx_d .cpu_dai_name = "ep93xx-i2s", .codec_name = "spi0.0", .codec_dai_name = "cs4271-hifi", - .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_IF | + .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, .ops = &edb93xx_ops, }; --- a/sound/soc/cirrus/ep93xx-i2s.c +++ b/sound/soc/cirrus/ep93xx-i2s.c @@ -213,24 +213,24 @@ static int ep93xx_i2s_set_dai_fmt(struct switch (fmt & SND_SOC_DAIFMT_INV_MASK) { case SND_SOC_DAIFMT_NB_NF: /* Negative bit clock, lrclk low on left word */ - clk_cfg &= ~(EP93XX_I2S_CLKCFG_CKP | EP93XX_I2S_CLKCFG_REL); + clk_cfg &= ~(EP93XX_I2S_CLKCFG_CKP | EP93XX_I2S_CLKCFG_LRS); break; case SND_SOC_DAIFMT_NB_IF: /* Negative bit clock, lrclk low on right word */ clk_cfg &= ~EP93XX_I2S_CLKCFG_CKP; - clk_cfg |= EP93XX_I2S_CLKCFG_REL; + clk_cfg |= EP93XX_I2S_CLKCFG_LRS; break; case SND_SOC_DAIFMT_IB_NF: /* Positive bit clock, lrclk low on left word */ clk_cfg |= EP93XX_I2S_CLKCFG_CKP; - clk_cfg &= ~EP93XX_I2S_CLKCFG_REL; + clk_cfg &= ~EP93XX_I2S_CLKCFG_LRS; break; case SND_SOC_DAIFMT_IB_IF: /* Positive bit clock, lrclk low on right word */ - clk_cfg |= EP93XX_I2S_CLKCFG_CKP | EP93XX_I2S_CLKCFG_REL; + clk_cfg |= EP93XX_I2S_CLKCFG_CKP | EP93XX_I2S_CLKCFG_LRS; break; } --- a/sound/soc/cirrus/snappercl15.c +++ b/sound/soc/cirrus/snappercl15.c @@ -72,7 +72,7 @@ static struct snd_soc_dai_link snappercl .codec_dai_name = "tlv320aic23-hifi", .codec_name = "tlv320aic23-codec.0-001a", .platform_name = "ep93xx-i2s", - .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_IF | + .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, .ops = &snappercl15_ops, };