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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 1EA15CA0FED for ; Wed, 10 Sep 2025 11:06:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4tP0kXur0yF+EXfTkAHZLqVKBr2K5CBuM5z8uPs8j1A=; b=Jn8nxmgisZ8S58e4RB+5Ffk1b4 7H8/RR+TS8gJ83ZotbVLpC9B5vrOm+jXHRI/JGu+d3BqDlviQcoaCt6vcG/DCqAQjx6AT20ensKNy 9sy2BP8RY8C7926Q6Q2A6XKkmMZJJXK7BR/wZguKomdZOWSJnHu6wHCDHMT7kFJxiX3COVSXamfad atV5t38vmM1r6eOrYI1CC02rPx3h69+J+wP7wGCqSd5c+P1X3HlGwQ1yF2wad8UD02I11It9CBiYf eBU/IfXwJW3ZHkz7C19j6LcpADGz16wcbyInrbfikoXl9Xz61gC4hrrRV+p8MO0PF6NppkJoKhNay NmdipktA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uwIe9-0000000DhPG-1A2i; Wed, 10 Sep 2025 11:05:53 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uwIe6-0000000DhN9-3ely; Wed, 10 Sep 2025 11:05:52 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 2083C43FA2; Wed, 10 Sep 2025 11:05:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7297FC4CEF0; Wed, 10 Sep 2025 11:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757502350; bh=3vKUwDPyxY+sseiR8nmx7Ts9m3y+/etlfgrvBDkuze4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GN+OSMORf3Q12T8aH7Eft8BEU//JedXUgIkbxmsGUx58zRf9KX5PvOyrcBi0vbgyw Pr89t4+LtMmnoiEWrNUrLMhgVSGgEVloMZegmdixkK4NShwrgW4+PVb/kVuW4IcA7l Xorw2zDPzxGGf0ZCxeJqaNq8a/wY8uggmxrzvuzQzOoCMum5Pi+DFSEh/+SOoIoUgj D2DeEykRtyj8suBVThYLqmCb79dYgeWkJyexyfE1xYlScYk8WzeWrIvB+bKuAHwKzz MbBXnbDh5DOJt87aKD2uO4EuAurSyIJ48849AGijGDkHUm/cWOWrIVfdPGHosi0hVp OyE0tSWrtAZdA== Date: Wed, 10 Sep 2025 13:05:47 +0200 From: Maxime Ripard To: Dmitry Baryshkov Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter , Sandy Huang , Heiko =?utf-8?Q?St=C3=BCbner?= , Andy Yan , Chen-Yu Tsai , Samuel Holland , Dave Stevenson , =?utf-8?B?TWHDrXJh?= Canal , Raspberry Pi Kernel Maintenance , Liu Ying , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Daniel Stone Subject: Re: [PATCH v4 10/10] drm/display: hdmi-audio: warn if HDMI connector doesn't support Audio IF Message-ID: <20250910-magic-natural-saluki-4aca9d@houat> References: <20250909-drm-limit-infoframes-v4-0-53fd0a65a4a2@oss.qualcomm.com> <20250909-drm-limit-infoframes-v4-10-53fd0a65a4a2@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha384; protocol="application/pgp-signature"; boundary="6mjdewn6swmhkqjp" Content-Disposition: inline In-Reply-To: <20250909-drm-limit-infoframes-v4-10-53fd0a65a4a2@oss.qualcomm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250910_040550_948634_5C126B8C X-CRM114-Status: GOOD ( 19.99 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --6mjdewn6swmhkqjp Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v4 10/10] drm/display: hdmi-audio: warn if HDMI connector doesn't support Audio IF MIME-Version: 1.0 On Tue, Sep 09, 2025 at 05:52:08PM +0300, Dmitry Baryshkov wrote: > Sending Audio InfoFrames is mandatory for getting audio to work over the > HDMI link. Warn if the driver requests HDMI audio support for the HDMI > connector, but there is no support for Audio InfoFrames. >=20 > Suggested-by: Maxime Ripard > Acked-by: Daniel Stone > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/display/drm_hdmi_audio_helper.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) >=20 > diff --git a/drivers/gpu/drm/display/drm_hdmi_audio_helper.c b/drivers/gp= u/drm/display/drm_hdmi_audio_helper.c > index 7d78b02c144621de528b40b1425f25e465edd1ae..35e0e79cb683a68af813344aa= 86c154c3a5531fe 100644 > --- a/drivers/gpu/drm/display/drm_hdmi_audio_helper.c > +++ b/drivers/gpu/drm/display/drm_hdmi_audio_helper.c > @@ -10,6 +10,7 @@ > =20 > #include > #include > +#include > #include > =20 > #include > @@ -178,6 +179,17 @@ int drm_connector_hdmi_audio_init(struct drm_connect= or *connector, > !funcs->shutdown) > return -EINVAL; > =20 > + if (connector->connector_type =3D=3D DRM_MODE_CONNECTOR_HDMIA || > + connector->connector_type =3D=3D DRM_MODE_CONNECTOR_HDMIB) { > + unsigned long supported_infoframes =3D > + connector->hdmi.supported_infoframes; > + > + if (supported_infoframes && > + !(supported_infoframes & DRM_CONNECTOR_INFOFRAME_AUDIO)) > + drm_warn(connector->dev, "HDMI Audio with no support for Audio InfoFr= ames\n"); > + } > + > + That's not what I suggested. What I suggested was that we tould check the return code of write_infoframe, and warn if it is set by the framework, but returns EOPNOTSUPP. Maxime --6mjdewn6swmhkqjp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCaMFbiwAKCRAnX84Zoj2+ dirGAX4uKxTLTYBVNw7Full2UUa5VuWquXM6Yf9V75SJdwVH/LBdZKdEu2L5zcFu 4A/bxOwBfipkuEzUY5FfJt6YBzOLmgB9EMwhn/Z1a+okQD5MuPEy0LtOtwYYWOvQ oQFyrwx8zg== =PKSd -----END PGP SIGNATURE----- --6mjdewn6swmhkqjp--