Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3064595imm; Sun, 1 Jul 2018 11:24:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJUG6znR6BV4tijwp0LMhgVh03ALB/djY7zgtNJXSKOkKfnlCfbgNhv/oSvPOOdUh907xX1 X-Received: by 2002:a65:620b:: with SMTP id d11-v6mr19524066pgv.429.1530469489820; Sun, 01 Jul 2018 11:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530469489; cv=none; d=google.com; s=arc-20160816; b=yOVrWxZxtN5Cgrq+6h5BjMM6tAYI0rP8rEHTf/Czjs6XCTkeV3p7T5LhI07il/bz9S ME0QS3/NSnruG8bQV7vcRIUVprxThjQ5oQA2eli+4s+K9UhVWCqIy1La+pw1F1y4FCqE IRgpdlGi08Eu9ej+klQ7WH5ezodga+Np9wXh1VWObmEyRZgTGOBog+ZkWOtyzNpHn9ik cx2KUVEV4wkGRfsoQ84JVrSCZWc7FfZ6IzJqqa9UQx4uw7I+KEtILEmgd7Gar4eY2dKp Ax1h9NwOqA+ZYGLXw8jGBqC09U7vLwny7yY78A5VZP9jiYucpl5FE7ojSOShwhR22uwA T0fg== 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=xc+BUrrj/WTvIs4BoD4N40OKhKdvWi4IbjUD8QX+zD4=; b=Ew9BIxdg7f51HM8lmLB0+RwWTzkzRQ9FEl5vkgHFwPrrbhAKtddPcsPlu5Xoe+S3zE anoYdd8jaTjeiPSBbFqDCnIzt+FZOYl1EdalGHeZNYe09B4Gw94XTw1Fw6WcjD1Y3yOi 5rbUgIdfeR7ICEz9Sf/8zB6N61SjxV6+jpItD+tagDz4c19MoSp7ulSjYDYJ4YwfSzkh bDesW7zor/52oSsQowWOXu1KyOEkcxM7ycBKKp6yniJYnyiGNrT9kYb5WdybinGBmHYd 8xLQcGrcZ3oBXbvAFHu1bRhvAyIXnwJedYJ8ed+BOcev3uSZO2aP9L9fMPUMdZAJXnfc 8YBA== 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 g38-v6si7140140plb.262.2018.07.01.11.24.35; Sun, 01 Jul 2018 11:24:49 -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 S933826AbeGAQYe (ORCPT + 99 others); Sun, 1 Jul 2018 12:24:34 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33452 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933801AbeGAQY3 (ORCPT ); Sun, 1 Jul 2018 12:24:29 -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 C3280AEF; Sun, 1 Jul 2018 16:24:28 +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.9 013/101] ASoC: cirrus: i2s: Fix LRCLK configuration Date: Sun, 1 Jul 2018 18:20:59 +0200 Message-Id: <20180701160757.668291028@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160757.138608453@linuxfoundation.org> References: <20180701160757.138608453@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.9-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, };