From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A3C0C4707F for ; Tue, 25 May 2021 13:24:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 469C9610CB for ; Tue, 25 May 2021 13:24:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233287AbhEYN0B (ORCPT ); Tue, 25 May 2021 09:26:01 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:34605 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233240AbhEYNZa (ORCPT ); Tue, 25 May 2021 09:25:30 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 2D0895806F5; Tue, 25 May 2021 09:24:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 25 May 2021 09:24:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm2; bh=//Ua6fbgPleRns58xLPwp5jsqA 31DFCIgTLmVQxIlOI=; b=gY/l9Y4yEV+9tfP6NhGchNf6Fddn5xxWvcbxze7GQn tswF59QrAZiEf2afAPXpxnnWGpf0HWliG54DtxAypGPQ5GXrBgqQfNIGzCx7PVfB isSb0cnYBWjHxjBP18ULuQ6p/Y5K6JSgmTtL7+s3IlmvtD9lPSVu+pzFIcCmPNoK TmZe7SgXPgEAqVvAmaGcLc0xc9dOUVoM1mtSjqRDuW3W4stTdrAeb9RjyKOtc0I1 EPn35x/qODsKuUV4OCvOUwIAoQCH91YheC4s8wMKvFuED2a8/9JTCs8GBwSNm6qA lSaSD2gWaK2mSomItDLjlMYG5gHzqTs2OjmGjbFPkPcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=//Ua6f bgPleRns58xLPwp5jsqA31DFCIgTLmVQxIlOI=; b=iKg6RsbgbJcU90Psd75MtD oDDO9BFYIic1Xh64LQocuvGl1m1hePlfJ+iyOaOTapCwpx+4r3nBfzl8nko+gcjK RaWZirgcmCvZCY2WUCFWPZfmfOU9txtZehPH+vu4Cia3P5FxmS+2gwpHfFSJUgYx yJUZKky58IuhbKV+ZhC3BMGC2NgAjX07WXUnu3dQKFZNApuWGdk8ouKSCmKEkm8L OKDuxuNPfVPSH6j6yW4v4KcCKWWOjoznkAQuGci5YRRQUu7be06nuKf69+v9QlLd tfSV//8NubYLyC0LMX1AnLzVwwx+FxNT3OVLIeLuUwUjAJcGw9ol0bihl9xETmeQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdekuddgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeetieekgfffkeegkeeltdehudetteejgfekueevhffhteegudfgkedtueegfffg feenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf 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; Tue, 25 May 2021 09:23:57 -0400 (EDT) From: Maxime Ripard To: Jaroslav Kysela , Mark Brown , dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Liam Girdwood , Takashi Iwai Cc: devicetree@vger.kernel.org, Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , linux-doc@vger.kernel.org, Eric Anholt , Nicolas Saenz Julienne , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Maxime Ripard , Nicolas Saenz Julienne , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, Daniel Vetter , linux-rpi-kernel@lists.infradead.org, Jonathan Corbet , Rob Herring Subject: [PATCH v2 00/12] drm/vc4: hdmi: Enable Channel Mapping, IEC958, HBR Passthrough using hdmi-codec Date: Tue, 25 May 2021 15:23:42 +0200 Message-Id: <20210525132354.297468-1-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi,=0D =0D hdmi-codec allows to have a lot of HDMI-audio related infrastructure in pla= ce,=0D it's missing a few controls to be able to provide HBR passthrough. This ser= ies=0D adds more infrastructure for the drivers, and leverages it in the vc4 HDMI= =0D controller driver.=0D =0D Thanks!=0D Maxime=0D =0D Changes from v1:=0D - Added an extra patch to clarify the iec958 controls iface policy=0D - Added kerneldoc for the new iec958 PCM functions=0D - s/EXPORT_SYMBOL/EXPORT_SYMBOL_GPL=0D - Used the ALSA prefix where relevant=0D - Rebased on drm-misc-next-2021-05-17=0D =0D Dom Cobley (5):=0D drm/vc4: hdmi: Set HD_CTL_WHOLSMP and HD_CTL_CHALIGN_SET=0D drm/vc4: hdmi: Set HDMI_MAI_FMT=0D drm/vc4: hdmi: Set VC4_HDMI_MAI_CONFIG_FORMAT_REVERSE=0D drm/vc4: hdmi: Remove firmware logic for MAI threshold setting=0D ARM: dts: bcm2711: Tune DMA parameters for HDMI audio=0D =0D Maxime Ripard (7):=0D ALSA: doc: Clarify IEC958 controls iface=0D ALSA: iec958: Split status creation and fill=0D ASoC: hdmi-codec: Rework to support more controls=0D ASoC: hdmi-codec: Add iec958 controls=0D ASoC: hdmi-codec: Add a prepare hook=0D drm/vc4: hdmi: Register HDMI codec=0D drm/vc4: hdmi: Remove redundant variables=0D =0D .../kernel-api/writing-an-alsa-driver.rst | 13 +-=0D arch/arm/boot/dts/bcm2711.dtsi | 4 +-=0D drivers/gpu/drm/vc4/Kconfig | 1 +=0D drivers/gpu/drm/vc4/vc4_hdmi.c | 322 ++++++++----------=0D drivers/gpu/drm/vc4/vc4_hdmi.h | 5 +-=0D drivers/gpu/drm/vc4/vc4_regs.h | 30 ++=0D include/sound/hdmi-codec.h | 12 +-=0D include/sound/pcm_iec958.h | 8 +=0D sound/core/pcm_iec958.c | 176 +++++++---=0D sound/soc/codecs/hdmi-codec.c | 219 +++++++++---=0D 10 files changed, 508 insertions(+), 282 deletions(-)=0D =0D -- =0D 2.31.1=0D =0D From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74B15C2B9F8 for ; Tue, 25 May 2021 13:25:03 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7F34A61420 for ; Tue, 25 May 2021 13:25:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7F34A61420 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3A2C9172A; Tue, 25 May 2021 15:24:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3A2C9172A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1621949099; bh=tJlsEoPAq62HKeO4vOlwhxHqr+17s6b/jcXLHUsALFA=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=GDZ9GZd4gcPhQA2ne9objKA/iqxQORYOO/+vilc3FzQtfX/wKjoBoYujQUYFD4vQ1 GsewvFPHb64YQPu9brBk3SHx/xQ2PvZXvVdsVw56aYwSVB7a8+H+aGUvpd+Mq/Q8yU DZrCn1YkdjQlEZYxaOsn0cMowqx2JQQJ4M6NNqOw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 7EFACF8019D; Tue, 25 May 2021 15:24:08 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A87CCF8026B; Tue, 25 May 2021 15:24:06 +0200 (CEST) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id CA739F8019D for ; Tue, 25 May 2021 15:24:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CA739F8019D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=cerno.tech header.i=@cerno.tech header.b="gY/l9Y4y"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="iKg6Rsbg" Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 2D0895806F5; Tue, 25 May 2021 09:24:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 25 May 2021 09:24:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm2; bh=//Ua6fbgPleRns58xLPwp5jsqA 31DFCIgTLmVQxIlOI=; b=gY/l9Y4yEV+9tfP6NhGchNf6Fddn5xxWvcbxze7GQn tswF59QrAZiEf2afAPXpxnnWGpf0HWliG54DtxAypGPQ5GXrBgqQfNIGzCx7PVfB isSb0cnYBWjHxjBP18ULuQ6p/Y5K6JSgmTtL7+s3IlmvtD9lPSVu+pzFIcCmPNoK TmZe7SgXPgEAqVvAmaGcLc0xc9dOUVoM1mtSjqRDuW3W4stTdrAeb9RjyKOtc0I1 EPn35x/qODsKuUV4OCvOUwIAoQCH91YheC4s8wMKvFuED2a8/9JTCs8GBwSNm6qA lSaSD2gWaK2mSomItDLjlMYG5gHzqTs2OjmGjbFPkPcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=//Ua6f bgPleRns58xLPwp5jsqA31DFCIgTLmVQxIlOI=; b=iKg6RsbgbJcU90Psd75MtD oDDO9BFYIic1Xh64LQocuvGl1m1hePlfJ+iyOaOTapCwpx+4r3nBfzl8nko+gcjK RaWZirgcmCvZCY2WUCFWPZfmfOU9txtZehPH+vu4Cia3P5FxmS+2gwpHfFSJUgYx yJUZKky58IuhbKV+ZhC3BMGC2NgAjX07WXUnu3dQKFZNApuWGdk8ouKSCmKEkm8L OKDuxuNPfVPSH6j6yW4v4KcCKWWOjoznkAQuGci5YRRQUu7be06nuKf69+v9QlLd tfSV//8NubYLyC0LMX1AnLzVwwx+FxNT3OVLIeLuUwUjAJcGw9ol0bihl9xETmeQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdekuddgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeetieekgfffkeegkeeltdehudetteejgfekueevhffhteegudfgkedtueegfffg feenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf 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; Tue, 25 May 2021 09:23:57 -0400 (EDT) From: Maxime Ripard To: Jaroslav Kysela , Mark Brown , dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Liam Girdwood , Takashi Iwai Subject: [PATCH v2 00/12] drm/vc4: hdmi: Enable Channel Mapping, IEC958, HBR Passthrough using hdmi-codec Date: Tue, 25 May 2021 15:23:42 +0200 Message-Id: <20210525132354.297468-1-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Nicolas Saenz Julienne , Dom Cobley , Tim Gover , linux-doc@vger.kernel.org, Dave Stevenson , linux-kernel@vger.kernel.org, Maxime Ripard , Eric Anholt , Rob Herring , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, Daniel Vetter , Jonathan Corbet , Phil Elwell , Nicolas Saenz Julienne , linux-rpi-kernel@lists.infradead.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Hi,=0D =0D hdmi-codec allows to have a lot of HDMI-audio related infrastructure in pla= ce,=0D it's missing a few controls to be able to provide HBR passthrough. This ser= ies=0D adds more infrastructure for the drivers, and leverages it in the vc4 HDMI= =0D controller driver.=0D =0D Thanks!=0D Maxime=0D =0D Changes from v1:=0D - Added an extra patch to clarify the iec958 controls iface policy=0D - Added kerneldoc for the new iec958 PCM functions=0D - s/EXPORT_SYMBOL/EXPORT_SYMBOL_GPL=0D - Used the ALSA prefix where relevant=0D - Rebased on drm-misc-next-2021-05-17=0D =0D Dom Cobley (5):=0D drm/vc4: hdmi: Set HD_CTL_WHOLSMP and HD_CTL_CHALIGN_SET=0D drm/vc4: hdmi: Set HDMI_MAI_FMT=0D drm/vc4: hdmi: Set VC4_HDMI_MAI_CONFIG_FORMAT_REVERSE=0D drm/vc4: hdmi: Remove firmware logic for MAI threshold setting=0D ARM: dts: bcm2711: Tune DMA parameters for HDMI audio=0D =0D Maxime Ripard (7):=0D ALSA: doc: Clarify IEC958 controls iface=0D ALSA: iec958: Split status creation and fill=0D ASoC: hdmi-codec: Rework to support more controls=0D ASoC: hdmi-codec: Add iec958 controls=0D ASoC: hdmi-codec: Add a prepare hook=0D drm/vc4: hdmi: Register HDMI codec=0D drm/vc4: hdmi: Remove redundant variables=0D =0D .../kernel-api/writing-an-alsa-driver.rst | 13 +-=0D arch/arm/boot/dts/bcm2711.dtsi | 4 +-=0D drivers/gpu/drm/vc4/Kconfig | 1 +=0D drivers/gpu/drm/vc4/vc4_hdmi.c | 322 ++++++++----------=0D drivers/gpu/drm/vc4/vc4_hdmi.h | 5 +-=0D drivers/gpu/drm/vc4/vc4_regs.h | 30 ++=0D include/sound/hdmi-codec.h | 12 +-=0D include/sound/pcm_iec958.h | 8 +=0D sound/core/pcm_iec958.c | 176 +++++++---=0D sound/soc/codecs/hdmi-codec.c | 219 +++++++++---=0D 10 files changed, 508 insertions(+), 282 deletions(-)=0D =0D -- =0D 2.31.1=0D =0D From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51AB2C2B9F8 for ; Tue, 25 May 2021 13:26:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 12F2D6105A for ; Tue, 25 May 2021 13:26:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 12F2D6105A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JqKZfabYOFYmp4BSkeGH9Vn80I6jq51QAeyfwGl5wNE=; b=NY5mMlZ9RM45aI 8TMtXX1Y8Z7nOHVBwrkhLw1nT3TIGLx6cNTJHQPMFtDGNgQSEglH2HaH21bUC1jt/orAYJksWGaD2 7yGRdEA4QKtMuYK8GXoAQVyY3SLN57ppv+N3jTu/7NdxbuJuT5+ScklwVAvGGekkbLiopoybfMdB2 PJRm9/oP/CnSXy/yvFg61pjFBfT0fjCu9nZx+saFJnrpg/qIOUtVn7uWGVQ+oVRYQ8YrOzAHsK7u2 aq7RV7Rup5OKHzuDyQYFdzDXTNqx8YIM05CdMSxRhit4bUqAAlwVmZpN8K1eL2a66JaBH90Y2EyDH VGmOAIrJquwaxzXC6a0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1llX2Z-005Hh8-PW; Tue, 25 May 2021 13:24:12 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1llX2U-005Hdp-Ct; Tue, 25 May 2021 13:24:08 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 2D0895806F5; Tue, 25 May 2021 09:24:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 25 May 2021 09:24:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm2; bh=//Ua6fbgPleRns58xLPwp5jsqA 31DFCIgTLmVQxIlOI=; b=gY/l9Y4yEV+9tfP6NhGchNf6Fddn5xxWvcbxze7GQn tswF59QrAZiEf2afAPXpxnnWGpf0HWliG54DtxAypGPQ5GXrBgqQfNIGzCx7PVfB isSb0cnYBWjHxjBP18ULuQ6p/Y5K6JSgmTtL7+s3IlmvtD9lPSVu+pzFIcCmPNoK TmZe7SgXPgEAqVvAmaGcLc0xc9dOUVoM1mtSjqRDuW3W4stTdrAeb9RjyKOtc0I1 EPn35x/qODsKuUV4OCvOUwIAoQCH91YheC4s8wMKvFuED2a8/9JTCs8GBwSNm6qA lSaSD2gWaK2mSomItDLjlMYG5gHzqTs2OjmGjbFPkPcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=//Ua6f bgPleRns58xLPwp5jsqA31DFCIgTLmVQxIlOI=; b=iKg6RsbgbJcU90Psd75MtD oDDO9BFYIic1Xh64LQocuvGl1m1hePlfJ+iyOaOTapCwpx+4r3nBfzl8nko+gcjK RaWZirgcmCvZCY2WUCFWPZfmfOU9txtZehPH+vu4Cia3P5FxmS+2gwpHfFSJUgYx yJUZKky58IuhbKV+ZhC3BMGC2NgAjX07WXUnu3dQKFZNApuWGdk8ouKSCmKEkm8L OKDuxuNPfVPSH6j6yW4v4KcCKWWOjoznkAQuGci5YRRQUu7be06nuKf69+v9QlLd tfSV//8NubYLyC0LMX1AnLzVwwx+FxNT3OVLIeLuUwUjAJcGw9ol0bihl9xETmeQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdekuddgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeetieekgfffkeegkeeltdehudetteejgfekueevhffhteegudfgkedtueegfffg feenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf 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; Tue, 25 May 2021 09:23:57 -0400 (EDT) From: Maxime Ripard To: Jaroslav Kysela , Mark Brown , dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Liam Girdwood , Takashi Iwai Cc: devicetree@vger.kernel.org, Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , linux-doc@vger.kernel.org, Eric Anholt , Nicolas Saenz Julienne , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Maxime Ripard , Nicolas Saenz Julienne , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, Daniel Vetter , linux-rpi-kernel@lists.infradead.org, Jonathan Corbet , Rob Herring Subject: [PATCH v2 00/12] drm/vc4: hdmi: Enable Channel Mapping, IEC958, HBR Passthrough using hdmi-codec Date: Tue, 25 May 2021 15:23:42 +0200 Message-Id: <20210525132354.297468-1-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210525_062406_809810_42AA37CF X-CRM114-Status: UNSURE ( 8.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, hdmi-codec allows to have a lot of HDMI-audio related infrastructure in place, it's missing a few controls to be able to provide HBR passthrough. This series adds more infrastructure for the drivers, and leverages it in the vc4 HDMI controller driver. Thanks! Maxime Changes from v1: - Added an extra patch to clarify the iec958 controls iface policy - Added kerneldoc for the new iec958 PCM functions - s/EXPORT_SYMBOL/EXPORT_SYMBOL_GPL - Used the ALSA prefix where relevant - Rebased on drm-misc-next-2021-05-17 Dom Cobley (5): drm/vc4: hdmi: Set HD_CTL_WHOLSMP and HD_CTL_CHALIGN_SET drm/vc4: hdmi: Set HDMI_MAI_FMT drm/vc4: hdmi: Set VC4_HDMI_MAI_CONFIG_FORMAT_REVERSE drm/vc4: hdmi: Remove firmware logic for MAI threshold setting ARM: dts: bcm2711: Tune DMA parameters for HDMI audio Maxime Ripard (7): ALSA: doc: Clarify IEC958 controls iface ALSA: iec958: Split status creation and fill ASoC: hdmi-codec: Rework to support more controls ASoC: hdmi-codec: Add iec958 controls ASoC: hdmi-codec: Add a prepare hook drm/vc4: hdmi: Register HDMI codec drm/vc4: hdmi: Remove redundant variables .../kernel-api/writing-an-alsa-driver.rst | 13 +- arch/arm/boot/dts/bcm2711.dtsi | 4 +- drivers/gpu/drm/vc4/Kconfig | 1 + drivers/gpu/drm/vc4/vc4_hdmi.c | 322 ++++++++---------- drivers/gpu/drm/vc4/vc4_hdmi.h | 5 +- drivers/gpu/drm/vc4/vc4_regs.h | 30 ++ include/sound/hdmi-codec.h | 12 +- include/sound/pcm_iec958.h | 8 + sound/core/pcm_iec958.c | 176 +++++++--- sound/soc/codecs/hdmi-codec.c | 219 +++++++++--- 10 files changed, 508 insertions(+), 282 deletions(-) -- 2.31.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14455C4707F for ; Tue, 25 May 2021 13:24:56 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D1D6461420 for ; Tue, 25 May 2021 13:24:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D1D6461420 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D4D6D6E105; Tue, 25 May 2021 13:24:49 +0000 (UTC) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) by gabe.freedesktop.org (Postfix) with ESMTPS id 284356E252 for ; Tue, 25 May 2021 13:24:02 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 2D0895806F5; Tue, 25 May 2021 09:24:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 25 May 2021 09:24:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm2; bh=//Ua6fbgPleRns58xLPwp5jsqA 31DFCIgTLmVQxIlOI=; b=gY/l9Y4yEV+9tfP6NhGchNf6Fddn5xxWvcbxze7GQn tswF59QrAZiEf2afAPXpxnnWGpf0HWliG54DtxAypGPQ5GXrBgqQfNIGzCx7PVfB isSb0cnYBWjHxjBP18ULuQ6p/Y5K6JSgmTtL7+s3IlmvtD9lPSVu+pzFIcCmPNoK TmZe7SgXPgEAqVvAmaGcLc0xc9dOUVoM1mtSjqRDuW3W4stTdrAeb9RjyKOtc0I1 EPn35x/qODsKuUV4OCvOUwIAoQCH91YheC4s8wMKvFuED2a8/9JTCs8GBwSNm6qA lSaSD2gWaK2mSomItDLjlMYG5gHzqTs2OjmGjbFPkPcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=//Ua6f bgPleRns58xLPwp5jsqA31DFCIgTLmVQxIlOI=; b=iKg6RsbgbJcU90Psd75MtD oDDO9BFYIic1Xh64LQocuvGl1m1hePlfJ+iyOaOTapCwpx+4r3nBfzl8nko+gcjK RaWZirgcmCvZCY2WUCFWPZfmfOU9txtZehPH+vu4Cia3P5FxmS+2gwpHfFSJUgYx yJUZKky58IuhbKV+ZhC3BMGC2NgAjX07WXUnu3dQKFZNApuWGdk8ouKSCmKEkm8L OKDuxuNPfVPSH6j6yW4v4KcCKWWOjoznkAQuGci5YRRQUu7be06nuKf69+v9QlLd tfSV//8NubYLyC0LMX1AnLzVwwx+FxNT3OVLIeLuUwUjAJcGw9ol0bihl9xETmeQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdekuddgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeetieekgfffkeegkeeltdehudetteejgfekueevhffhteegudfgkedtueegfffg feenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf 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; Tue, 25 May 2021 09:23:57 -0400 (EDT) From: Maxime Ripard To: Jaroslav Kysela , Mark Brown , dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Liam Girdwood , Takashi Iwai Subject: [PATCH v2 00/12] drm/vc4: hdmi: Enable Channel Mapping, IEC958, HBR Passthrough using hdmi-codec Date: Tue, 25 May 2021 15:23:42 +0200 Message-Id: <20210525132354.297468-1-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Nicolas Saenz Julienne , Dom Cobley , Tim Gover , linux-doc@vger.kernel.org, Dave Stevenson , linux-kernel@vger.kernel.org, Rob Herring , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, Jonathan Corbet , Phil Elwell , Nicolas Saenz Julienne , linux-rpi-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi,=0D =0D hdmi-codec allows to have a lot of HDMI-audio related infrastructure in pla= ce,=0D it's missing a few controls to be able to provide HBR passthrough. This ser= ies=0D adds more infrastructure for the drivers, and leverages it in the vc4 HDMI= =0D controller driver.=0D =0D Thanks!=0D Maxime=0D =0D Changes from v1:=0D - Added an extra patch to clarify the iec958 controls iface policy=0D - Added kerneldoc for the new iec958 PCM functions=0D - s/EXPORT_SYMBOL/EXPORT_SYMBOL_GPL=0D - Used the ALSA prefix where relevant=0D - Rebased on drm-misc-next-2021-05-17=0D =0D Dom Cobley (5):=0D drm/vc4: hdmi: Set HD_CTL_WHOLSMP and HD_CTL_CHALIGN_SET=0D drm/vc4: hdmi: Set HDMI_MAI_FMT=0D drm/vc4: hdmi: Set VC4_HDMI_MAI_CONFIG_FORMAT_REVERSE=0D drm/vc4: hdmi: Remove firmware logic for MAI threshold setting=0D ARM: dts: bcm2711: Tune DMA parameters for HDMI audio=0D =0D Maxime Ripard (7):=0D ALSA: doc: Clarify IEC958 controls iface=0D ALSA: iec958: Split status creation and fill=0D ASoC: hdmi-codec: Rework to support more controls=0D ASoC: hdmi-codec: Add iec958 controls=0D ASoC: hdmi-codec: Add a prepare hook=0D drm/vc4: hdmi: Register HDMI codec=0D drm/vc4: hdmi: Remove redundant variables=0D =0D .../kernel-api/writing-an-alsa-driver.rst | 13 +-=0D arch/arm/boot/dts/bcm2711.dtsi | 4 +-=0D drivers/gpu/drm/vc4/Kconfig | 1 +=0D drivers/gpu/drm/vc4/vc4_hdmi.c | 322 ++++++++----------=0D drivers/gpu/drm/vc4/vc4_hdmi.h | 5 +-=0D drivers/gpu/drm/vc4/vc4_regs.h | 30 ++=0D include/sound/hdmi-codec.h | 12 +-=0D include/sound/pcm_iec958.h | 8 +=0D sound/core/pcm_iec958.c | 176 +++++++---=0D sound/soc/codecs/hdmi-codec.c | 219 +++++++++---=0D 10 files changed, 508 insertions(+), 282 deletions(-)=0D =0D -- =0D 2.31.1=0D =0D