Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3061877pxk; Mon, 28 Sep 2020 07:29:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX+tNxuPwBpV+ZnWrylWSwx9cje/4OnFog2R8qtaQUhbmFuT9g1t0SHszNZyjhdAWyNhQu X-Received: by 2002:a17:906:858a:: with SMTP id v10mr1960193ejx.61.1601303372144; Mon, 28 Sep 2020 07:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601303372; cv=none; d=google.com; s=arc-20160816; b=eAEn73SDluAP3Pwo6aPjr725HykJcI9ycoY8sS3pFDFv5wUo0LNilogafbxyWeocrS yluDLAVdlHDq54mad35piYKT4L8ScAfJCZA9h25JehlaXJ45GNYbn+2C+Lnkh46puhMQ Uo1yP4i2GmXV9jWuBLvXLHoaT/7doE9fs3sE9XQR8bZEJ/Jci7wcGdDMSEy7W14IXTAZ msXLy5MglaT9eO/UQ+0MP8O+VzCe0RsqRtvjKJh3g0UZ4rx/MCzRaC/Qk4QddcsCk4vb q7xn2HKtX/piVy78CwQhuQWWzSAh653gCmbBCyJYk7w/2wR2KJ5pYAcLwBqIJCvg8vf3 IQHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=swpXeTWHWCNF6KXrz68zf9yRkpoPYhiTjW+lMQcubDQ=; b=S0R4Tawxi63sDOFu/IcdsHJf+Az+F0Z7GuGAOpCefMiIQmObi7W9836zQRt/JnuCRe 6Xrg3iWHrZ5yDsJS5yvYh1f2hrXFa43k2qgKgUEd8QFFKMhdC2tjL/e0bkZsyQINJAXl +YKFjj6PMpz+wJfPtcWygEw5OFIaXzKP6skxZNvuisKFZW7Vg5RyZylBl+MiOJXvzpr+ O2DfQ26/aHugQukhcfsgYqIx7KCd5i2n6NwEOi20dw8ZEoBW+pxq73hJnULHtj7hSw3i 2rU7FrHu3q6ViyugdeyGFoXc8Xz7serHE3KIP2M+DqGp6kqr9BIS7QQFwYZgm/XA2HoA 1XiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BOKMig27; 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 s13si758254edj.323.2020.09.28.07.29.08; Mon, 28 Sep 2020 07:29: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=@gmail.com header.s=20161025 header.b=BOKMig27; 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 S1726420AbgI1O15 (ORCPT + 99 others); Mon, 28 Sep 2020 10:27:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbgI1O15 (ORCPT ); Mon, 28 Sep 2020 10:27:57 -0400 Received: from mail-il1-x144.google.com (mail-il1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48166C061755; Mon, 28 Sep 2020 07:27:55 -0700 (PDT) Received: by mail-il1-x144.google.com with SMTP id c5so1408470ilk.11; Mon, 28 Sep 2020 07:27:55 -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=swpXeTWHWCNF6KXrz68zf9yRkpoPYhiTjW+lMQcubDQ=; b=BOKMig27yWnniwJh3B4l/zCp7mHNUCUubmP8fwzAFvtftEdZrq/J5g9GHUBm8+rBuS 7amT5mIVNrvgC4h1nJVlIySswEDjj9KrXY7EYQiVaVvuH7TBrJ6dfBuiWOfpA6V2IDOx x9LC2kOWZB0ps5+Cyr6Xg+yjE8OMl6kIbLSj/ATKUBG5HsSlyCEdJfEQK70juLfljq5j 1dQF4HWNgPah2G3fS8Xd50ag91nSTfdiRRC+sj1wUizOwipypUqx7Pk3IoeV7D/SwCNf U3/X/j+AwtDaXBvH5eeOcRi5yscC+RRR6tBZQYohGmJfwYktf4JYiFAbARckHIswggK1 P8ww== 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=swpXeTWHWCNF6KXrz68zf9yRkpoPYhiTjW+lMQcubDQ=; b=XqnHFZ3uvkcqowE7uKd/Z6+T170wtVrpGSdFX4jLiDeMon/384P64F+o26q+WMX3mG zBxSY/8MCXt+OG7IMR39RG1yEolquHzTon4/isKYodh2+tcH9TVYbsmVrRuSFPvfzJrX vNyTE6tTznyN40PEdH+sfZnOB8KCFn5+q+MANj6Dz7vk3LXzlP8EFYTdsyuHbbA7piKy FiqdDm3fs5IYXZ5OJxbFeFhYeeloxUwf4YzqflfW005vS3+wEgjEV+tJawB8mlodJc+C LI4THRlkghdSJ/53RbPaYHfA+zxquNuewqgep5m/rKcPmD5ekIYMWdFRhLu1t/hzNB23 f7mw== X-Gm-Message-State: AOAM533VwD6duyU0YYOT5B1DEXgxAZbw99VKTjdcs9aWHXlwfwfzCY6i W9n/TIXiPuG8KH8MrTam/dWrrl7UUmDi+q4JC48= X-Received: by 2002:a92:d68b:: with SMTP id p11mr1294955iln.59.1601303274202; Mon, 28 Sep 2020 07:27:54 -0700 (PDT) MIME-Version: 1.0 References: <20200921102731.747736-1-peron.clem@gmail.com> <20200921135925.q7mde2cnt5jtzkb5@gilmour.lan> <59286578.E0qSRroNqr@kista> <20200928084308.eipnvlfqe3c5lfmg@gilmour.lan> In-Reply-To: <20200928084308.eipnvlfqe3c5lfmg@gilmour.lan> From: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Date: Mon, 28 Sep 2020 16:27:42 +0200 Message-ID: Subject: Re: [PATCH v4 09/22] arm64: dts: allwinner: h6: Add HDMI audio node To: Maxime Ripard Cc: =?UTF-8?Q?Jernej_=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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, 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 wrote= : > > > > > > > > On Mon, Sep 21, 2020 at 12:27:18PM +0200, Cl=C3=A9ment P=C3=A9ron w= rote: > > > > > 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/= 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 format= 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 When all the remarks are fixed would it be possible to merge the rest of the series without the dts changes ? I will propose another series to introduce a dedicated codec for that. > > Maxime