Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3365268pxk; Mon, 21 Sep 2020 11:41:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybzzowVbn7nGmBukef9LOabrrq6R2guu0fxY2BVJ0Lw0uqY3+QZo2pc4mzwmlfTi9wxBWh X-Received: by 2002:aa7:da10:: with SMTP id r16mr253100eds.333.1600713668990; Mon, 21 Sep 2020 11:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600713668; cv=none; d=google.com; s=arc-20160816; b=OTGOXo3C7YZ7G6WtS2+TYzJ6n+xheo0uRr/NW1FAOX0tHXgcZEoiCNRZHNYmWrELfw MZgrAAIo3tekF1m33TdbwwF0GkwMQmUTnA2JKwLLTxUgz+DoTpj8S/zdU/H8cQkZGK62 sJ3ZRoyQwrOAZJ+mHSkCBfvUJ60j3Y0PT05VYc4CevJdfpAVuqzdaOK6OZY6xGdUlyeH WzYe38xMIa6sjEh4lsXvGPFlMJcRFnUUj/7qcrFZoI3CTw44GzNLHfoT8I+oJbUD9vMu qVEnT3aOFZ4a/X2byze2skauIfxZx08U+o6gwsk0zNhVsyajEwV9U1fdlYJI759Tz3vE 1C2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=MrW8R4JZKE3Z1aij/Lf52rqZUEPua9BBBW7gYJ+KfH0=; b=tRc8LnNzg8zN9Fl2qlFss6krIEKBt3fHsstYc75obcXWx8FJqeHfR8VlXJbJho1wv+ LVf4oVAQT16n8MLnY7X8VKzFGRoO3bthbqWCJFgfBl7kMC5foJNey/6xWZdggib5dCBA +4MvhUvuQV8MDw9wKKNewdfIPecEOv2Jidh9NGV7CrZLiIQREPvlfgbFAFY4B+7oEx6I SsqytMIw2SCIEG2WgtbyjO0ZeqKDJBNql3BsVFYckdpIDgroLGCSYwa9C14UqrUiD+oo RamcjU5HCvA4iiP5vsi1GhjUuXhBu/3EV6NwAt+MbkcTPMae7+ugrx68gtNz1s38VXqt 4rbA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga5si10663796ejb.547.2020.09.21.11.40.45; Mon, 21 Sep 2020 11:41:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727838AbgIUSjP convert rfc822-to-8bit (ORCPT + 99 others); Mon, 21 Sep 2020 14:39:15 -0400 Received: from mailoutvs12.siol.net ([185.57.226.203]:57412 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726456AbgIUSjP (ORCPT ); Mon, 21 Sep 2020 14:39:15 -0400 X-Greylist: delayed 415 seconds by postgrey-1.27 at vger.kernel.org; Mon, 21 Sep 2020 14:39:14 EDT Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTP id 3AD4E5274C3; Mon, 21 Sep 2020 20:32:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta12.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta12.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id XJOz8y8z8RPg; Mon, 21 Sep 2020 20:32:16 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTPS id D10215274C4; Mon, 21 Sep 2020 20:32:16 +0200 (CEST) Received: from kista.localnet (cpe1-5-97.cable.triera.net [213.161.5.97]) (Authenticated sender: jernej.skrabec@siol.net) by mail.siol.net (Zimbra) with ESMTPA id F3DBC5274C3; Mon, 21 Sep 2020 20:32:15 +0200 (CEST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard , =?ISO-8859-1?Q?Cl=E9ment_P=E9ron?= Cc: 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: Re: [PATCH v4 09/22] arm64: dts: allwinner: h6: Add HDMI audio node Date: Mon, 21 Sep 2020 20:37:09 +0200 Message-ID: <59286578.E0qSRroNqr@kista> In-Reply-To: References: <20200921102731.747736-1-peron.clem@gmail.com> <20200921135925.q7mde2cnt5jtzkb5@gilmour.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dne ponedeljek, 21. september 2020 ob 19:23:49 CEST je Cl?ment P?ron 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?ment P?ron 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?ment P?ron > > > --- > > > 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 = "disabled"; > > > }; > > > > > > + hdmi_sound: hdmi-sound { > > > + compatible = "simple-audio-card"; > > > + simple-audio-card,format = "i2s"; > > > + simple-audio-card,name = "sun50i-h6-hdmi"; > > > + simple-audio-card,mclk-fs = <128>; > > > + simple-audio-card,frame-inversion; > > > + status = "disabled"; > > > + > > > + simple-audio-card,codec { > > > + sound-dai = <&hdmi>; > > > + }; > > > + > > > + simple-audio-card,cpu { > > > + sound-dai = <&i2s1>; > > > + dai-tdm-slot-num = <2>; > > > + dai-tdm-slot-width = <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. 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. Best regards, Jernej > > Clement > > > > > Maxime >