Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp472779ybz; Wed, 29 Apr 2020 03:44:39 -0700 (PDT) X-Google-Smtp-Source: APiQypL8sH4mpNQWm5iZ/gK6DzwB8+1A+RfvaxPIuBE1jLhzNsMJe0gDLUCUkX4fGibjWoT09wj+ X-Received: by 2002:a05:6402:154:: with SMTP id s20mr1840293edu.224.1588157079519; Wed, 29 Apr 2020 03:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588157079; cv=none; d=google.com; s=arc-20160816; b=EkvxblvS8RJAyKoZJ9uHsb6qt5+17pi/ZiWIqGfnjXD2XxKC8LrvFQJ0rni6ui23r9 TOCMPJG1oOcaJX8+fynmLOBnHWxByQRXpamIky6k6aL0N4w0K7PE8f7I+OaqsbkkiopB 27K9+1x4jNDwr33RFB/25SWuZefx+5Q/bZouT3XV1vaA8QkT6lb1LOQeDCmKGylgbYyO dQosftA9f1cgSsSaaCERqoMMz7/1wxfxzvcjJAUaUU+kMiH2pPBxizxcm7yJRjXEP8e8 TqqN5TwuJYXvZSLUaXQ5JdScUzq+6TXfaVkmExQpmzrwtTbqLvvgPtNdqms/SfHikObZ k0Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HQCeKCJ5flepvrlwaiupKHsPEVU0GNt4+HY/TULi0WE=; b=r47Mth9l3EZ49pW+njz2xdaRbtO7teXqe9qiIX+iyBo5FGnv05cnMBBChOq8dcE6j6 h8GmGq2eBcHHqkSK6UcYkIMgtudrPHS1g0U8V0GSlxm5OOT+iPw0EVAifwgpKyAutDe9 w2PdXca6mxEq0zoeAtQjpyOx1PcPHZ5/fpPmo/q4vq3Z1T83IYfS080t3wTUvtSJB1qg XDTFCjwBh/5vWcIvdbJQetIT1i+69yzYlTX0BGpyUaHPwRwCyw4dN0pDrTLqR0KX8zWG noRD5lWWDB6S6rNg8zxC5ql/8A4Q69FHNN9Ok4RpfHlC4hr8jttOptq31zDaK9mRlb3f W5qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AtVONm21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si3130219edv.284.2020.04.29.03.44.15; Wed, 29 Apr 2020 03:44:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AtVONm21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726822AbgD2Kmp (ORCPT + 99 others); Wed, 29 Apr 2020 06:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbgD2Kmp (ORCPT ); Wed, 29 Apr 2020 06:42:45 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BDDBC03C1AD; Wed, 29 Apr 2020 03:42:45 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id s10so1902367iln.11; Wed, 29 Apr 2020 03:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=HQCeKCJ5flepvrlwaiupKHsPEVU0GNt4+HY/TULi0WE=; b=AtVONm21nVueyYOEjkLYejUuBgYmxhMXAOBhsMlPX4Y63BJoJJznDF9cqHZmyfgW0O 04PtTzKuPGXkTqiqqqBvOSFQU/tY5aTy3h+MquydTM6cAPaBtEd6QeD2Uzsepwoacgm7 EUrA3PX0EU8XgdtbJ+bZsdmKkufFj0oNquC3cxRGn+RecOq7qZDjjp7hZ3uPz2wH+Ry3 NBfwS8axrMNb1W6FT32Z/fQgaiBUd8Qps4nva+s2HqC0qOFnAJ9rzcatLlD9PeMgx70t 136uEHWPN8bvCD/EyvQ9ojuvl8tslWqieT1qIV8Aa3jT2L0yGihxHY1V4GtkXlSo53l+ B9EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=HQCeKCJ5flepvrlwaiupKHsPEVU0GNt4+HY/TULi0WE=; b=XrcXS2OatrR2TBXsLmIDqbgpZwHssz6NFDE0u5b1VVr6rx/nfpdxGwb9hAjhfo8pTK eVTfZ1NFapIVZjwYHMjVtVSL2VDdFISPK8E5xpAjIQNlErrNabagCrtzWj/cfP1UIRPV 2fxdPxgxJ1mlACHtP7kuuykInORUHOgCewKlk328WpIbZ94esxi4ZUPtIExkdsbJkYwP sJV4aW87m0PgDqKL9i2pwi3qSIYtYFRy7IqyBKQmdCMiaAjzMs6MwEzUoo7Oo7G+hTcL DAaKpd6z3NSkFpHPAc5Ie5yCmi06ImxXCCuXmlqV1W3RniXNhBNtHkAg8uTaO04Dt8Un +/tA== X-Gm-Message-State: AGi0PuaiazBJLju45AVza/AroyevKaffrrgLig+V1c8B5iDBkHJ1Yc/5 MI00csM+VaoJk2u6O6e1gVZUyCIadbdELUI8fv+bgvJwZG6Spg== X-Received: by 2002:a92:d443:: with SMTP id r3mr31485691ilm.293.1588156964317; Wed, 29 Apr 2020 03:42:44 -0700 (PDT) MIME-Version: 1.0 References: <20200426120442.11560-1-peron.clem@gmail.com> <20200426120442.11560-5-peron.clem@gmail.com> <20200428080020.35qcuylwq2ylmubu@gilmour.lan> <20200428160417.6q5oab2guaumhhwi@gilmour.lan> <031ee5d3-8a30-82ee-76db-c0e8a1073046@arm.com> <20200429081729.qa3gqtl5sof2jhem@gilmour.lan> In-Reply-To: <20200429081729.qa3gqtl5sof2jhem@gilmour.lan> From: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Date: Wed, 29 Apr 2020 12:42:33 +0200 Message-ID: Subject: Re: [linux-sunxi] Re: Audio sound card name [was [PATCH 4/7] arm64: dts: allwinner: a64: Add HDMI audio] To: Maxime Ripard Cc: Chen-Yu Tsai , Robin Murphy , Mark Brown , devicetree , Linux-ALSA , Liam Girdwood , linux-kernel , linux-sunxi , Jernej Skrabec , Takashi Iwai , Jaroslav Kysela , Marcus Cooper , Rob Herring , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, 29 Apr 2020 at 10:17, Maxime Ripard wrote: > > On Wed, Apr 29, 2020 at 02:24:00PM +0800, Chen-Yu Tsai wrote: > > On Wed, Apr 29, 2020 at 1:11 AM Robin Murphy wro= te: > > > > > > On 2020-04-28 5:49 pm, Cl=C3=A9ment P=C3=A9ron wrote: > > > > Hi Mark, Rob, > > > > > > > > On Tue, 28 Apr 2020 at 18:04, Maxime Ripard wro= te: > > > >> > > > >> On Tue, Apr 28, 2020 at 10:54:00AM +0200, Cl=C3=A9ment P=C3=A9ron = wrote: > > > >>> Hi Maxime, > > > >>> > > > >>> On Tue, 28 Apr 2020 at 10:00, Maxime Ripard w= rote: > > > >>>> > > > >>>> On Sun, Apr 26, 2020 at 02:04:39PM +0200, Cl=C3=A9ment P=C3=A9ro= n 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=C3=A9ment P=C3=A9ron > > > >>>>> --- > > > >>>>> 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/ar= ch/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 =3D "disabled"; > > > >>>>> }; > > > >>>>> > > > >>>>> + hdmi_sound: hdmi-sound { > > > >>>>> + compatible =3D "simple-audio-card"; > > > >>>>> + simple-audio-card,format =3D "i2s"; > > > >>>>> + simple-audio-card,name =3D "allwinner,hdmi"; > > > >>>> > > > >>>> I'm not sure what the usual card name should be like though. I w= ould 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 differen= t 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 w= e 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 th= e > > > > 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 ;) > > > > I agree. The user really doesn't care what SoC the system uses. The onl= y > > real requirement is to be able to tell which output the card is related > > to, i.e. is it onboard or an external DAC, is it analog or HDMI, etc.. > > Yeah, but it's exactly the point. > > If we also end up with "HDMI" as our card name, then the userspace has no= way to > tell anymore if it's running from an rk3328 or an allwinner SoC, or somet= hing > else entirely. And therefore it cannot really configure anything to work = out of > the box anymore. Yes the final user doesn't care if it's sun50i A64 HDMI or sun50i H6 HDMI, but like Maxime said between final user and the sound-card name you may want to have a configuration layer. This configuration layer can apply different settings depending on the sound card. Having too generic name will make impossible specific card configuration. Also you can have specific name per board which can be quite clear for final user. - sun50i-a64-hdmi - sun50i-a64-spdif is not so hard to understand that one point to the HDMI whereas the other point to SPDIF. Regards, Clement > > Maxime