From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.11 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796048669; b=zjHU8mN8y9jd/lMfWB6biz9wp/3yACBsRXWdKr0Y0JPrwn1jWzNA1Z096BawxMvW52Lh ZNGRKhztB6ujtU0gOPIOZ4S/PhQIea04QoFBCkfpwDSQTH0pDVgZfuGXzBzVkujBmxtlG twYsG9yMpPKCAboT32zV9y2sUM+2N1wi8OpWhzoUhGULShqJj5XL3QWisZWgZQin0XcPT Ih/HOXLkH4FsKtTpHyanIjp7K/yBPzFjjhxp2EMitxayUS3g3jJlDLvrzZV3LXBhOfwP6 H+NwXNIA3WT5vb0aPYoC//P37LD7w6vYKbhYGQAiuC69g8DddZzyXIjoQ9WLRHQEHSA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796048669; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=8rFO2bhVpjfDhBznIo9zzFELdXr7i1wX9mpGhGnNUuc=; b=N73+yXGY4t5akl4iV9Z5g22K1ImlFbqb+a78FOj2Q5bYKp072R5FSefhGeiHSS4DD7be UJiom35bSy5skZLRT42NB23G8xD4USvBdKt+Jn5wwjfdx/0fGVRUJdlQBVRDzy6WA9G/6 aN4A6cwcmAecS+hDCo9AkggSkZOBxpC3W4DxI7OIwIpvDnkrIm/rslqrpHtfUFfnXCbAr rwG6JsoWqatIoUj2YO9R0QO3EbphommHREJNUx5TPzCR4pjv5GoxUGFMp9XeIQVMxstnj ux/y4Xl1XVaSukdMhzvZWjTO+rBVScWC5QrEJ0PpEHnemXb4d5iwVWgpQxDhAymWGsg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=LO5Lwuz7; arc=none smtp.remote-ip=198.175.65.11 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57078606A334; Mon, 30 Nov 2026 14:24:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 57078606A334 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com 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=LO5Lwuz7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796048669; x=1827584669; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8rFO2bhVpjfDhBznIo9zzFELdXr7i1wX9mpGhGnNUuc=; b=LO5Lwuz7gV2c8/xdKFXXl1WqTd4fc/l9uN8hiTIemqY87sS1l5Ol4xR+ JVnMoGsBsYFMDczZ3zIXDP67j+cbhv7g6vjQPll6bvxwFbi1hYedJ7nBn c9iv+sE8eDWoFR22bP6jCJKnT+NnLr8b/uCO7yl/hH/Eu69jCFMfNLWGE 63NNxFYyl4JQbs08po+/TAsIFW/dBCsO44NVZlD5SHahulGyNnxR9B5VE ozS+nZJvn4WQQxCSvACPekd0Um+znmFhLGKyMKRSerfidt8tBQFZHhVWV GZjfWpKXNDj6SCYHk9WVvseOPKlSaWaO6mydWgF8oHd+vgQN/6mVzWa8d A==; X-CSE-ConnectionGUID: KHIoNgXUQ1WmAKsOSPHPVQ== X-CSE-MsgGUID: Zlg5T2LGTVevy3ivhAxxbA== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4769264" X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="4769264" 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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