From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CA00606A32E for ; Mon, 30 Nov 2026 14:24:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=hG2968an Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 30AFD10F0F8; Mon, 30 Nov 2026 14:24:36 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9D4A810F0FA; Mon, 30 Nov 2026 14:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796048670; x=1827584670; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8rFO2bhVpjfDhBznIo9zzFELdXr7i1wX9mpGhGnNUuc=; b=hG2968anQrbe7qfsVOZBjDNiVBgCsBNQgsRE+KF+fdAnPVyFBqfIg4HQ nwW5kqrzlHaQFd9vMTKLxidYE2jqOpMFGqWMmtsk8a4SRlh6Xcj5j3Uu6 UtGlNUqxiYZa2IQNPCOVoP63EsVULtuVr7JV9AvEEUh++5t8IQ4xiLP1Y kO8OgRohafg/9iKy7oKTNdvxdeyg3iqKRjfNil/mG96wylIL0V7zTWdr4 scWNg2bMsRHP3sJezbHM4HB82EkPe1qVyaoHMUmTDtVdYmGbDemVN2BAE sCZbJOoM12ccgTNs1+Mb6s9+z3PLALcB1F6LWr3QMgpuGCo5UI5SU859j A==; X-CSE-ConnectionGUID: 9FuPm3aiRGGYlLTQqYji8A== X-CSE-MsgGUID: H49EVDNkSw66hy7OnS676Q== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4769265" X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="4769265" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 06:24:28 -0800 X-CSE-ConnectionGUID: KnmDJs8yTCODIWdJ2eOCdQ== X-CSE-MsgGUID: IMSmQjKMRoKaAel9Jb5e1g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="12943711" Received: from amilburn-desk.amilburn-desk (HELO kvehmane-desk1.ger.corp.intel.com) ([10.245.244.87]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 06:24:22 -0800 From: Kai Vehmanen To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: kai.vehmanen@linux.intel.com, Jani Nikula , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , David Airlie , Simona Vetter , Takashi Iwai , Jaroslav Kysela , linux-sound@vger.kernel.org, Harry Wentland , Leo Li , Alex Deucher , amd-gfx@lists.freedesktop.org, Lyude Paul , Danilo Krummrich , =?UTF-8?q?Tom=C3=A1=C5=A1=20Hnyk?= , Wim Taymans , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Takashi Iwai , Jani Nikula Subject: [PATCH v2 2/2] drm/i915/audio: Populate ELD Port_ID Date: Mon, 30 Nov 2026 16:23:52 +0200 Message-ID: <20261130142352.635531-3-kai.vehmanen@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261130142352.635531-1-kai.vehmanen@linux.intel.com> References: <20261130142352.635531-1-kai.vehmanen@linux.intel.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 i915 never fills in the ELD Port_ID field, so it is always zero, and the ELDs of identical monitors connected to different outputs are byte-identical. Userspace then cannot tell which HDMI/DP PCM belongs to which DRM connector without toggling the connector audio property. Use drm_eld_set_port_id() when computing the audio config, so the value reaches the audio driver through every path: the audio component get_eld() callback, the hardware ELD buffer, SDVO and LPE audio. The value is fixed for the lifetime of the connector, so it does not cause extra audio re-enables when the ELD is compared across commits, and state readout stays consistent because it is copied from the programmed ELD. Link: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/16693 Reviewed-by: Ville Syrjälä Reviewed-by: Takashi Iwai Acked-by: Jani Nikula Signed-off-by: Kai Vehmanen --- drivers/gpu/drm/i915/display/intel_audio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_audio.c b/drivers/gpu/drm/i915/display/intel_audio.c index 32f8c5e55319..3277e67748ee 100644 --- a/drivers/gpu/drm/i915/display/intel_audio.c +++ b/drivers/gpu/drm/i915/display/intel_audio.c @@ -881,6 +881,8 @@ bool intel_audio_compute_config(struct intel_encoder *encoder, crtc_state->eld[6] = drm_av_sync_delay(connector, adjusted_mode) / 2; mutex_unlock(&connector->eld_mutex); + drm_eld_set_port_id(crtc_state->eld, connector); + return true; } -- 2.43.0