Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp369839ybi; Fri, 24 May 2019 05:14:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjBN00EWDQ6haGwVUr6qI0eJErH+OWgeroaru5M8I9in9Au/NnWh/NpozQTd3qQ4pnPzNt X-Received: by 2002:a65:550b:: with SMTP id f11mr7545227pgr.311.1558700070669; Fri, 24 May 2019 05:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558700070; cv=none; d=google.com; s=arc-20160816; b=Zfe5ABB5TduthgIKqlcAPYhIQUbbtJzeSrmr1xx6c2JGhUdA1u8JmvzO7ACIavFSEM 8/4QSLrTGypRTPrDK4JbyzzW6DgKaSkuZOH8gJFpicF3vRB72j5vF//gEp4G0kq+I3QC NoXqVuhc2BvgBv6WWX7GnKgA0JTRa5Pg/nmYlEGWf0qLPRzzgHMtwL68B7gjOHNotZJy SZdU7LHzREPiuE5cM/bEwyuiA+0Y9gHqO5MN7Do/e+zsGPQGTyU7lDp1S5pJwXQRWoX6 gPrYBQcBjv2zHEJHGGmyj+VoE8zyv+1wE/xChw7sv6YvlU82nT0VdzJwLVyX9ZgUNd3g 1DSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=AvMpC7Jz5X1XI3BJzxwbegp9Vy5WFXCNZ3EH9Hh+SNM=; b=DE0l5cW4mQRRo18LYofvGLwP6CRqDz6fWticr54y4V20umAiLRyrOzRGmENrw+xQ+i gK6stJ7QDEHkHD0fnAWi3Z0Bjgh0uuxsOZ/Jy+jAY8NG+YZFgMZvJ1GrdkLt3qzbIS3h P5s5s/bw6lRub12JQbAEh0XqrzkznzhXbwfdv69+Rpf4Oy9uhs6yIyNayUfVwQ9Iv9p7 r1W3pb9XKAftD4pB0vPkJt2aIalN9RfQOKFw2H4fGetdrh4kgReE8OuN+MAAmylkbgjW aXswi9H7r99+gRcsHdrWt5WRgS0H3wO/WxaoYaDqs8qDVDSL0UGclE9IXFrHmut55oXD fswg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=aFHsGJCg; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si3832322pgq.459.2019.05.24.05.14.12; Fri, 24 May 2019 05:14:30 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=aFHsGJCg; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391500AbfEXMMw (ORCPT + 99 others); Fri, 24 May 2019 08:12:52 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:43346 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391462AbfEXMMv (ORCPT ); Fri, 24 May 2019 08:12:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=AvMpC7Jz5X1XI3BJzxwbegp9Vy5WFXCNZ3EH9Hh+SNM=; b=aFHsGJCgf2iV df4A+dqMywe9Q+gYMIVBeLEduaAznTZhJSwUc6mYB3lZGLz+5b5oXbR1T7EZYzX42GvsQAJmTP4EQ w1L/ddmB3gwBesAuwjcDNDmcKGyNebPnZICYAID61AkUS/p22U/P1Kph8MIUACMiKfkSmeEJryuM7 bKegg=; Received: from [176.12.107.140] (helo=finisterre.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hU93v-0003Ct-3q; Fri, 24 May 2019 12:12:39 +0000 Received: by finisterre.sirena.org.uk (Postfix, from userid 1000) id 0163B440049; Fri, 24 May 2019 13:12:37 +0100 (BST) From: Mark Brown To: Jon Hunter Cc: alsa-devel@alsa-project.org, Jaroslav Kysela , Kuninori Morimoto , Liam Girdwood , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Mark Brown , Takashi Iwai Subject: Applied "ASoC: simple-card: Restore original configuration of DAI format" to the asoc tree In-Reply-To: <1558688044-22025-1-git-send-email-jonathanh@nvidia.com> X-Patchwork-Hint: ignore Message-Id: <20190524121238.0163B440049@finisterre.sirena.org.uk> Date: Fri, 24 May 2019 13:12:37 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: simple-card: Restore original configuration of DAI format has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 4819d06292c9b57eabdd6d1603e49a27baf183be Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Fri, 24 May 2019 09:54:04 +0100 Subject: [PATCH] ASoC: simple-card: Restore original configuration of DAI format Revert commit 069d037aea98 ("ASoC: simple-card: Fix configuration of DAI format"). During further review, it turns out that the actual issue was caused by an incorrectly formatted device-tree node describing the soundcard. The following is incorrect because the simple-audio-card 'bitclock-master' and 'frame-master' properties should not reference the actual codec phandle ... sound { compatible = "simple-audio-card"; ... => simple-audio-card,bitclock-master = <&codec>; => simple-audio-card,frame-master = <&codec>; ... simple-audio-card,cpu { sound-dai = <&xxx>; }; simple-audio-card,codec { => sound-dai = <&codec>; }; }; Rather, these properties should reference the phandle to the 'simple-audio-card,codec' property as shown below ... sound { compatible = "simple-audio-card"; ... => simple-audio-card,bitclock-master = <&codec>; => simple-audio-card,frame-master = <&codec>; ... simple-audio-card,cpu { sound-dai = <&xxx>; }; => codec: simple-audio-card,codec { /* simple-card wants here */ sound-dai = <&xxx>; /* not here */ }; }; Signed-off-by: Jon Hunter Signed-off-by: Mark Brown --- sound/soc/generic/simple-card.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index c2c8dcbcf795..9b568f578bcd 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -283,6 +283,11 @@ static int simple_dai_link_of(struct asoc_simple_priv *priv, codec_dai = dai_props->codec_dai = &priv->dais[li->dais++]; + ret = asoc_simple_parse_daifmt(dev, node, codec, + prefix, &dai_link->dai_fmt); + if (ret < 0) + goto dai_link_of_err; + simple_parse_mclk_fs(top, cpu, codec, dai_props, prefix); ret = asoc_simple_parse_cpu(cpu, dai_link, &single_cpu); @@ -293,11 +298,6 @@ static int simple_dai_link_of(struct asoc_simple_priv *priv, if (ret < 0) goto dai_link_of_err; - ret = asoc_simple_parse_daifmt(dev, node, dai_link->codecs->of_node, - prefix, &dai_link->dai_fmt); - if (ret < 0) - goto dai_link_of_err; - ret = asoc_simple_parse_platform(plat, dai_link); if (ret < 0) goto dai_link_of_err; -- 2.20.1