Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2858862pxk; Mon, 28 Sep 2020 01:46:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWib0OHuagc1PjhQ1LbN+r+dljWJesJG3ati4sl1q/54Edsnyq7R6PA94RV9TI6Ak/zOVn X-Received: by 2002:a05:6402:644:: with SMTP id u4mr524843edx.182.1601282792963; Mon, 28 Sep 2020 01:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601282792; cv=none; d=google.com; s=arc-20160816; b=Ei6w8o/DuFQ9FBi8nk5HNpgt9iqRGxt84ABuItLzM5xzD6KgTtyFHC33SfO5zpEbT3 D2ZocmVCUB+sKEJIVuDzehg1BketJPIkwPBGV9VH/YRK2Q7LuMDkTUXSM6R02iEw6skB CN/u3x7ef7YbMODnRVLfar6gy6xzBu1z0TywgfaynAUQ7Mf1B6vtPNGeWuguy8jOQNgp 2m4SnXcJmMmgQh6ZHo9HWsTVJ+sVzHVeRDGEAOo2vRjVm+xoXAnGaLdQyEi1cnyDuwok nqSV7qsrlJKlRbNpSu6wpaoCRitiOagsw5O3j51S20zh2ACDA3n8TqhHEuWCp+Te9uS7 /B+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=oxCK4wZOYpID0KZNTWauBK7/zlcBHvmxDD57Zu4cEmY=; b=049B2eQFQGlz3hRnz3WQ1CjAc1l2UldhVfezcoLWCZjA/ZJLWktKwz7LfsWknHY9L8 dp0M8JIIkYyygXsFbWrDUd+wieEzcc8tQdR8sNeJPvzcKoW2y4eHg/0U3CZdBBUW9TiT 2nnDFOGiNbLzyXnig8GLcwv7vTAJi81f8QeRH5n4C9SW7Vxzke2fX/fhw1wnNdZaI48Y nZTrwEMUQVkAtTGrnUOP9ihbdxra92UIMGCpebgdJfHT9VbUy+nLyAIdrYyWqLRgnBrv D4gn2BxddNHxd1GaznQZaac91xemJyj/xAX3YTnPfqXuNO7b1omV1FFf6T3JXt3ZGcTw Hx5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=pnNGbA6R; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=t2qgWJin; 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=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc4si207761ejb.526.2020.09.28.01.46.10; Mon, 28 Sep 2020 01:46:32 -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=@cerno.tech header.s=fm3 header.b=pnNGbA6R; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=t2qgWJin; 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=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726636AbgI1InP (ORCPT + 99 others); Mon, 28 Sep 2020 04:43:15 -0400 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]:60025 "EHLO wnew1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726461AbgI1InP (ORCPT ); Mon, 28 Sep 2020 04:43:15 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 943AB2BD; Mon, 28 Sep 2020 04:43:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 28 Sep 2020 04:43:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=oxCK4wZOYpID0KZNTWauBK7/zlc BHvmxDD57Zu4cEmY=; b=pnNGbA6Rd0/uCTZbqMkjs3TBsnmQi5Dr0UcDALXDm5A h9MmxQojzlLgXVXeANvDCI30nfhO35jBHrOwgz0nYENDOTyUdlmkLGZllQkZXOhi LxjJRXxEuNq/rYKan5TQl76mBLlhi/kCRXh8T59OyuYd5IV5FQLxjAr3UPAL9NFP FvCscbTea0418vZMpBhAVHxkMXvL9KybOtc+iSPz50uYqLpMvQIfx9d21+f7GgBR thvZGJ25fvimeG/NSVoAjlegEbbeTuDRJEMPGxsPiv0Mlw2yY8vJvK9vS+MpgYaN v+kFDUqfriqimfYfHmiArCUaV0l5S6tATF5wmkyZ2FQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=oxCK4w ZOYpID0KZNTWauBK7/zlcBHvmxDD57Zu4cEmY=; b=t2qgWJinD9T7l3X1sihDHk ulEywM7SzPKT+6dU8eLtTG4gAK1VU+fyn/LlTwR1uvvi65awadNnc1p3QwCd/mb5 r8kXyzFHd5m+XiQZvHOmpm4+tmaZiI18rmWVV1D/hz89cl/y1bUNQGTPXPKfd4uH xO+emcKI7P8Amep8W6PaFRN701o5Z/F4mQZN2iAraCsadLA1THXn0XbRcFw1OpsD JSsXgEahaltzX5N6UbwiIUmFWLN4TB4DzwLQKcELnqr4mEnBguKPmgeaDuGxYBsO nmfLBxYD7kqR7Lg7VhpPsIq/iXeMIaoHXGfmYxDtIFBZL7RlpPRMgNM6xHH//ATQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdeigddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeeutdfgjeeuudehvefgvedvtedtudelfffgffekledtffekgedukeejueevieeg udenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id A310C328005A; Mon, 28 Sep 2020 04:43:09 -0400 (EDT) Date: Mon, 28 Sep 2020 10:43:08 +0200 From: Maxime Ripard To: Jernej =?utf-8?Q?=C5=A0krabec?= Cc: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Chen-Yu Tsai , Rob Herring , Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Marcus Cooper , Linux-ALSA , devicetree , linux-arm-kernel , linux-kernel , linux-sunxi Subject: Re: [PATCH v4 09/22] arm64: dts: allwinner: h6: Add HDMI audio node Message-ID: <20200928084308.eipnvlfqe3c5lfmg@gilmour.lan> References: <20200921102731.747736-1-peron.clem@gmail.com> <20200921135925.q7mde2cnt5jtzkb5@gilmour.lan> <59286578.E0qSRroNqr@kista> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nywbcxkwq6lidb2p" Content-Disposition: inline In-Reply-To: <59286578.E0qSRroNqr@kista> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nywbcxkwq6lidb2p Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 21, 2020 at 08:37:09PM +0200, Jernej =C5=A0krabec wrote: > Dne ponedeljek, 21. september 2020 ob 19:23:49 CEST je Cl=C3=A9ment P=C3= =A9ron=20 > napisal(a): > > Hi Maxime, > >=20 > > On Mon, 21 Sep 2020 at 15:59, Maxime Ripard wrote: > > > > > > On Mon, Sep 21, 2020 at 12:27:18PM +0200, Cl=C3=A9ment P=C3=A9ron wro= te: > > > > From: Jernej Skrabec > > > > > > > > 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-h6.dtsi | 33 ++++++++++++++++= ++++ > > > > 1 file changed, 33 insertions(+) > > > > > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/ar= m64/ > boot/dts/allwinner/sun50i-h6.dtsi > > > > index 28c77d6872f6..a8853ee7885a 100644 > > > > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > > @@ -67,6 +67,25 @@ de: display-engine { > > > > status =3D "disabled"; > > > > }; > > > > > > > > + hdmi_sound: hdmi-sound { > > > > + compatible =3D "simple-audio-card"; > > > > + simple-audio-card,format =3D "i2s"; > > > > + simple-audio-card,name =3D "sun50i-h6-hdmi"; > > > > + simple-audio-card,mclk-fs =3D <128>; > > > > + simple-audio-card,frame-inversion; > > > > + status =3D "disabled"; > > > > + > > > > + simple-audio-card,codec { > > > > + sound-dai =3D <&hdmi>; > > > > + }; > > > > + > > > > + simple-audio-card,cpu { > > > > + sound-dai =3D <&i2s1>; > > > > + dai-tdm-slot-num =3D <2>; > > > > + dai-tdm-slot-width =3D <32>; > > > > > > It looks weird to have both some TDM setup here, and yet the format in > > > i2s? > >=20 > > Yes, I agree I will check if it's really needed. >=20 > I think this was explained before. Possibly, but this should be in a comment or at least the commit log > Anyway, this is needed to force width to 32, no matter actual sample > width. That's a requirement of HDMI codec. I believe Marcus Cooper > have another codec which also needs fixed width. >=20 > There is no similar property for I2S, so TDM one is used here. Except it's really dedicated to the TDM mode and doesn't really make much sense here. If we have special requirements like this on the codec setup, that sounds like a good justification for creating a custom codec instead of shoehorning it into simple-card Maxime --nywbcxkwq6lidb2p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCX3GiHAAKCRDj7w1vZxhR xWJJAP0VYV8qr8oRUJQXa1gO/KEHRiAM2KN5mADU4A/LD48/EwEA0ZjSWx11FGHU uKbSn9mGmvKiACaWrHELDAqBdx6ooA0= =GeNy -----END PGP SIGNATURE----- --nywbcxkwq6lidb2p--