From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D472C83000 for ; Tue, 28 Apr 2020 17:12:35 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A4E7D20730 for ; Tue, 28 Apr 2020 17:12:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="Lt+hTlUt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A4E7D20730 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D99F31684; Tue, 28 Apr 2020 19:11:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D99F31684 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1588093952; bh=/nW9KWmVCow4DPmmG4nR2Rn4lEMBKSu3nAvAD1skmVI=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Lt+hTlUt+aIq85Jxpfw1E5SqNfCdJVatF8hJhyr9Csbp2JIQ6uj9Wzi/Q8jdjq1m5 w4IjZoR+3WBHp43Kh6YtZqW98E3x87s0Q4vtE45jKUxUANqoirZ1XqG/yaaulqUS+V XDQRiamQZFprZIoj6Qycwa7DK4ZWuYcL5Z1xPUhA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 19DA2F801DB; Tue, 28 Apr 2020 19:11:42 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C4A0CF801DB; Tue, 28 Apr 2020 19:11:39 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by alsa1.perex.cz (Postfix) with ESMTP id 11330F800B8 for ; Tue, 28 Apr 2020 19:11:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 11330F800B8 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3FC6430E; Tue, 28 Apr 2020 10:11:30 -0700 (PDT) Received: from [10.57.33.170] (unknown [10.57.33.170]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D0ADD3F305; Tue, 28 Apr 2020 10:11:27 -0700 (PDT) Subject: Re: Audio sound card name [was [PATCH 4/7] arm64: dts: allwinner: a64: Add HDMI audio] To: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Mark Brown References: <20200426120442.11560-1-peron.clem@gmail.com> <20200426120442.11560-5-peron.clem@gmail.com> <20200428080020.35qcuylwq2ylmubu@gilmour.lan> <20200428160417.6q5oab2guaumhhwi@gilmour.lan> From: Robin Murphy Message-ID: <031ee5d3-8a30-82ee-76db-c0e8a1073046@arm.com> Date: Tue, 28 Apr 2020 18:11:26 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Cc: devicetree , Linux-ALSA , Chen-Yu Tsai , linux-kernel , Takashi Iwai , Jernej Skrabec , Liam Girdwood , Marcus Cooper , linux-sunxi , Rob Herring , Maxime Ripard , linux-arm-kernel X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 2020-04-28 5:49 pm, Clément Péron wrote: > Hi Mark, Rob, > > On Tue, 28 Apr 2020 at 18:04, Maxime Ripard wrote: >> >> On Tue, Apr 28, 2020 at 10:54:00AM +0200, Clément Péron wrote: >>> Hi Maxime, >>> >>> On Tue, 28 Apr 2020 at 10:00, Maxime Ripard wrote: >>>> >>>> On Sun, Apr 26, 2020 at 02:04:39PM +0200, Clément Péron wrote: >>>>> From: Marcus Cooper >>>>> >>>>> Add a simple-soundcard to link audio between HDMI and I2S. >>>>> >>>>> Signed-off-by: Jernej Skrabec >>>>> Signed-off-by: Marcus Cooper >>>>> Signed-off-by: Clément Péron >>>>> --- >>>>> arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 21 +++++++++++++++++++ >>>>> 1 file changed, 21 insertions(+) >>>>> >>>>> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >>>>> index e56e1e3d4b73..08ab6b5e72a5 100644 >>>>> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >>>>> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >>>>> @@ -102,6 +102,25 @@ >>>>> status = "disabled"; >>>>> }; >>>>> >>>>> + hdmi_sound: hdmi-sound { >>>>> + compatible = "simple-audio-card"; >>>>> + simple-audio-card,format = "i2s"; >>>>> + simple-audio-card,name = "allwinner,hdmi"; >>>> >>>> I'm not sure what the usual card name should be like though. I would assume that >>>> this should be something specific enough so that you're able to differentiate >>>> between boards / SoC so that the userspace can choose a different configuration >>>> based on it? >>> >>> I really don't know what we should use here, >>> I just have a look at other SoC: >>> rk3328: "HDMI" >>> rk3399: "hdmi-sound" >>> r8a774c0-cat874: "CAT874 HDMI sound" >>> >>> But maybe it's time to introduce proper name: >>> What about : >>> pat >>> sun50i-h6-hdmi >> >> It's pretty much what we've been using for the other sound cards we have, so it >> makes sense to me. > > I have a question regarding the simple-audio-card,name. > In this patch, I would like to introduce a simple-audio-card for the > Allwinner A64 HDMI. > > What should be the preferred name for this sound card? > "sun50i-a64-hdmi" ? "allwinner, sun50i-a64-hdmi" ? I can at least speak for RK3328, and the reasoning there was that as the user looking at what `aplay -l` says, I don't give a hoot about what the SoC may be called, I see two cards and I want to know, with the least amount of uncertainty, which one will make the sound come out of the port that's labelled "HDMI" on the box ;) Robin.