Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1495890ybm; Thu, 23 May 2019 01:56:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXLxLe9s+EwVklgkiAVvCfyOooVWPrIbXmgqFXC7CZifeq0Bc8lpT0LM6iNw1FxpY7WLBu X-Received: by 2002:a63:42:: with SMTP id 63mr96436340pga.337.1558601803350; Thu, 23 May 2019 01:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558601803; cv=none; d=google.com; s=arc-20160816; b=pqbxLXKvsXmo90X4pPwtYsDsaHxbxpCnBHagRL7E/V4NSSrVEX8yn5pBXNhnL0m/Fm VPS/HrRqtmdJivWpPTm4smezuojN0YFftNCBgWDXK8zG02Q8tIiKNGpRIbu2t21lFZe9 sBG+F3+sRA/E4EKAF5DEXhPzVj2zq2Pi41AykfOswFSDSRV8UbR0fi4SZYkoS1zQB3jF Jk/RyhuaDustffmVFBhkNc9h24DquLKEaJsVIsIGrVhw92gbbhD/n3rXIT8H5RVgCWgr 8QNgzX5fMhML9/38qyA/dgEVOFsz/0nA8lxPVeDBV2bKMj4m2L4WuoLuEXcdHD6CRvyr ltRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=nEAGdQpsuiGbyUsp/OlVYhTmZlrhOGEiFb+mN7BRwqw=; b=0B8V6lKmzwymH4xcEZXk+gq0zcAni+KQaxt0D2vdVPRXWW/10aCuhX0EUE791cgnG6 oeBk68tnl6L+j4rK3EFyxyAnA2k7tOZpYTz9Nh/16Jjv++yNQqZgx+6szJvDp1IkjKpv xZAfUHEUzebZEElgEErOkL6pNZUUOEb6aQCj07WD45x2SnW7vWg/v9JWEbBXFnXntcFh 37s/3eE0bdSsLeB1dDlP6aQVcakmxkoJ5/jtWiGdutl24PeDMvbBdCbC5OvZ4A+aN0Qj 0jvtGtR3Mh55Q+r7Y/k/W5CVyAVB9ljgekrZEe1JGtydHm9oD1NA8xX9JRJAQOgPPVHD kRmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=N2+5ucc9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si2264415pgf.211.2019.05.23.01.56.24; Thu, 23 May 2019 01:56:43 -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=pass header.i=@nvidia.com header.s=n1 header.b=N2+5ucc9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730225AbfEWIyc (ORCPT + 99 others); Thu, 23 May 2019 04:54:32 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:4201 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725814AbfEWIyc (ORCPT ); Thu, 23 May 2019 04:54:32 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 23 May 2019 01:54:30 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 23 May 2019 01:54:30 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 23 May 2019 01:54:30 -0700 Received: from [10.21.132.148] (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 23 May 2019 08:54:27 +0000 Subject: Re: Applied "ASoC: simple-card: Fix configuration of DAI format" to the asoc tree To: Mark Brown CC: , Jaroslav Kysela , Liam Girdwood , , , Takashi Iwai , Kuninori Morimoto References: <20190521203241.B277E1126D1B@debutante.sirena.org.uk> From: Jon Hunter Message-ID: <51ce00db-05ce-ba66-f1be-74c800f6daed@nvidia.com> Date: Thu, 23 May 2019 09:54:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190521203241.B277E1126D1B@debutante.sirena.org.uk> X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1558601671; bh=nEAGdQpsuiGbyUsp/OlVYhTmZlrhOGEiFb+mN7BRwqw=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=N2+5ucc9z+nzenpVaXE1PYc49m0cyFnjFgsAW6RgYS4Hp11q0bDfUuYgvXHCWh4oS oriY7nwHGrMh8TTZxErFOOCTVLxm4uAWYh9DRlfXSJRJkpL12X1qwON+Ltws7aN9/u lvhPydHp4bgR3hNb0v3L8/6SwLpuG/xtDNVbrdCk85JuSFz3jtosfMQ0m2Vg/yn5Fg BtIiTDsqUQmJJCrRpN6e9faG6VUwBRFDCMFEuoZVcZSCEh83IUxWkAz4QtBl06KIZN ndSyC7/fcvp6i49+WYjAA+evZg75nqhW8JaE+sbkTazEDxL1zLtKlSQutM/0NcGP2m 7CMReaH9tJbww== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On 21/05/2019 21:32, Mark Brown wrote: > The patch > > ASoC: simple-card: Fix 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 069d037aea98ffa64c26d4b1dc958fb8f39f5c2b Mon Sep 17 00:00:00 2001 > From: Jon Hunter > Date: Thu, 16 May 2019 18:51:26 +0100 > Subject: [PATCH] ASoC: simple-card: Fix configuration of DAI format > > When configuring a codec to be both bit-clock and frame-master, it was > found that the codec was always configured as bit-clock and frame-slave. > Looking at the simple_dai_link_of() function there appears to be two > problems with the configuration of the DAI format, which are ... > > 1. The function asoc_simple_parse_daifmt() is called before the function > asoc_simple_parse_codec() and this means that the device-tree node > for the codec has not been parsed yet, which is needed by the > function asoc_simple_parse_daifmt() to determine who is the codec. > 2. The phandle passed to asoc_simple_parse_daifmt() is the phandle to > the 'codec' node and not the phandle of the actual codec defined by > the 'sound-dai' property under the 'codec' node. > > Fix the above by moving the call to asoc_simple_parse_daifmt() after the > the call to asoc_simple_parse_codec() and pass the phandle for the codec > to asoc_simple_parse_daifmt(). Please can you drop this patch? Per some offline review with Morimoto-san, it turns out that the actual issue resided in my DT (which was incorrect) and not the simple-card machine driver. In my DT I incorrectly had ... 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>; }; }; But I should have had ... 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 */ }; }; Thanks to Morimoto-san for correcting me! Cheers Jon -- nvpublic