Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4450158pxk; Wed, 30 Sep 2020 03:20:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4UIaZSfB1xwuzerjkr+igmlRsbT8O4d3BiSK0tX/KCX7F2k8lSOw6ljlt3UsD9Gyu9+Fd X-Received: by 2002:a05:6402:d6:: with SMTP id i22mr1540017edu.53.1601461253405; Wed, 30 Sep 2020 03:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601461253; cv=none; d=google.com; s=arc-20160816; b=KSL/BEVhqqKGtHqDuJ1xz9ShI0Ct+DnuFbnsesY3GNxUCHpGB0jZxpa+9Fy+suYNlw 7AfRIIyLgjNAMAuBHmIhLVWbMCcW/j03Ey+c487KiR4eOdYEUMXjQ87hvyyiA9r8WFot SJ7zJhavLkUzOq9h84OihjT7DGlAoCm7iRLYSgNIWTVlpsLGSm4otGKKHEWVKNyOAal7 a2zwFWmmRbhAhohCoRYF8UyBy6Cs1Ri8cO5BQsjnwU72deStlXFTgQQvXr60UR0UAjl7 GckKsNWJ6yTMeLT489uzkKKgrV3wSaY0zqQC9Avu69CtzmeJ2rh76v8TASgOME3gSHPs AxjQ== 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=51hsmLqz9/nNSWtqEjjDNGJdPsfEI5fyVu8+ZU5LqF8=; b=Ew/QUPG+wJxgEsRiNcld86LCrQ+jz46B1mr1728xd9rUbce6iLlXUoGIZJDYxNIgh/ Wi6VlQoLyqhkBwWC8zQgbpg9K0dGJ7CQ4UULJUSzJpi9EW7rVPB603h4CZTJVbkiakW+ 1BICDKeyDJuimKeKwEn3pQUfK2m7GXJ1fR3kR19H1dlhQsAhit7F1l6o4jtCkDFjpLfQ IoO8AxxEz1eX+PFWxsh/OnIIoXISwF7lFj4snrLsrHw7EyYK370hWGIoU/HtQD1kpEHJ 5XTLFjRD+giUNNVFMQK/Sj3sHK87S2wBOtESmbnR6Q8elhULkxz4hBNt1DDcM0F0KmQ3 wmSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=WASw4mxJ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=crhmRSve; 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 d17si709934edr.273.2020.09.30.03.20.30; Wed, 30 Sep 2020 03:20:53 -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=fm1 header.b=WASw4mxJ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=crhmRSve; 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 S1729157AbgI3KTY (ORCPT + 99 others); Wed, 30 Sep 2020 06:19:24 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:41119 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbgI3KTY (ORCPT ); Wed, 30 Sep 2020 06:19:24 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 85A535803DF; Wed, 30 Sep 2020 06:19:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 30 Sep 2020 06:19:20 -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=fm1; bh=51hsmLqz9/nNSWtqEjjDNGJdPsf EI5fyVu8+ZU5LqF8=; b=WASw4mxJEzKv4bds0eEWxanJSnI/2TKzJEUgsQAGns3 K+soucfi0bPYbyYRo3hhV+xWYaT33ApNtXXs0Nwba1F8Zksphw19wtwMpkEsRBg9 lfpEtRSCKY4/T9hUOJsdx6p5qqsl6mwJEHx+wL0hv8ZsLItEPeRPGfttTYL76Wun vp9EGkBesq3JUdmRxSllCZxfVr79dt1jIxQ5LXt1qgIMbkifknSO0OHRhTaIxMkQ Z62wwYaL6kNA80yXBYi7bMK/F7LamFV4YvBfBxITQqsorF32KBBxwp1eUVvAPNkK qrVY1iYj9S7tG1DV6Wu589+KH8z47or6lWkQ2ZMBp9g== 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=51hsmL qz9/nNSWtqEjjDNGJdPsfEI5fyVu8+ZU5LqF8=; b=crhmRSvelGLaAGFWUJPjgv uKnov9mX1EL8WL3DMWP4wGDzRygCbY+R3BBNyNp8e6SZ5YyDlmaBdHd7pRLVSexy uf1uy4/HahQgkbJtTVqAXk1MW8OFvbd5jW+fqwG8q4CslwHXdhnh0eJMcLU2g8hl QNJifjA98V9QC4UF2Dj2S+BxJ1MwwLhQz0dqAh18KUiKRk33ZRekQexvjFRvU6JY lqIAseNkZv1gUIoj5tdvF9Zd7K+VxNePb6JCHDU6J+/h5N1Qd29hTAKKt2lYcY0T osQNm6Pngnm0e8/OvFhJgEnNkjwhpwv8akNAfEXMnArnqwOlolFb1CWgoUi8lc2A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrfedvgddvvdcutefuodetggdotefrodftvf 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 A2C33306467E; Wed, 30 Sep 2020 06:19:16 -0400 (EDT) Date: Wed, 30 Sep 2020 12:19:15 +0200 From: Maxime Ripard To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Jernej =?utf-8?Q?=C5=A0krabec?= , 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: <20200930101915.sultshdvxgu5u2rs@gilmour.lan> References: <20200921102731.747736-1-peron.clem@gmail.com> <20200921135925.q7mde2cnt5jtzkb5@gilmour.lan> <59286578.E0qSRroNqr@kista> <20200928084308.eipnvlfqe3c5lfmg@gilmour.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="we3fv24y4dnxqond" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --we3fv24y4dnxqond Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 28, 2020 at 04:27:42PM +0200, Cl=C3=A9ment P=C3=A9ron wrote: > On Mon, 28 Sep 2020 at 10:43, Maxime Ripard wrote: > > > > 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 > > > napisal(a): > > > > Hi Maxime, > > > > > > > > On Mon, 21 Sep 2020 at 15:59, Maxime Ripard wro= te: > > > > > > > > > > On Mon, Sep 21, 2020 at 12:27:18PM +0200, Cl=C3=A9ment P=C3=A9ron= wrote: > > > > > > 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/arc= h/arm64/ > > > 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 form= at in > > > > > i2s? > > > > > > > > Yes, I agree I will check if it's really needed. > > > > > > 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. > > > > > > 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 >=20 > When all the remarks are fixed would it be possible to merge the rest > of the series without the dts changes ? >=20 > I will propose another series to introduce a dedicated codec for that. Yeah, sure Maxime --we3fv24y4dnxqond Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCX3RbogAKCRDj7w1vZxhR xQ1TAQCXyCe5QVWRsk4Xo0kYUfS4nqr+j6X8lC7NGSFSHCXQbQD/fNe30ApybdwS uWFA5qC2rFHZegZ7IFIgsScWh32Hag0= =Tk4P -----END PGP SIGNATURE----- --we3fv24y4dnxqond--