From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 232E2386C36 for ; Thu, 7 May 2026 13:32:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778160781; cv=none; b=WZYxexpGgBhWysjo/b0jlCZOvoDTfMhs7xMuXGRagJkx7rzL1OOzyBc0AkvgtXw7WWJqXWWT17QA60hUQeak2/zNLaCeCGSX2My8QxLJ0Daqiyl7v4DWZAzhkzqqEiVQtmP6Gex81/tQnWHJY37QFh0bDGSYWPJ2nqwQpRW9q+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778160781; c=relaxed/simple; bh=wUHqu4HgSS7yv0PZJmIrH2nxWSekpq8gpfrD95QNO68=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pJ64LBwuNKLZ3K9Csj5q6HNT4ckvaifRRRgCz9r0CGfxJTR8MfSjyveCUh2EVE5j7/EFzAiCl1Y7+rmJZ6WKunCAXssRcIKd8bvTwzKAJTUxUHRllo1OaUpkUn3Krk+JSJGbidRALWjAVU27ciPfFEoiWMgPpyudSfdSE4w1VDE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.99) (envelope-from ) id 1wKyqO-000000005G2-3cSu; Thu, 07 May 2026 13:32:48 +0000 Date: Thu, 7 May 2026 14:32:45 +0100 From: Daniel Golle To: Dmitry Baryshkov Cc: Chun-Kuang Hu , Philipp Zabel , David Airlie , Simona Vetter , Matthias Brugger , AngeloGioacchino Del Regno , Junzhi Zhao , Jie Qiu , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/2] drm/mediatek: hdmi: report jack plugged state from bridge enable/disable Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, May 07, 2026 at 12:51:56PM +0300, Dmitry Baryshkov wrote: > On Wed, Apr 15, 2026 at 04:04:16PM +0100, Daniel Golle wrote: > > Notify hdmi-codec of the current sink plugged state from > > mtk_hdmi_bridge_atomic_enable() and mtk_hdmi_bridge_atomic_disable() > > via mtk_hdmi_update_plugged_status(). This matches the pattern used > > by dw-hdmi, which invokes handle_plugged_change() from the bridge > > enable and disable paths so that ASoC jack state stays in sync with > > the actual sink presence across atomic commit cycles, and not only > > on CEC HPD transitions. > > > > Userspace audio daemons (e.g. pipewire) rely on the jack state to > > route streams, restore per-sink volume levels, and recover the last > > used device after a reconnect. Without this, those transitions are > > missed whenever the sink change is driven by a mode set rather than > > by a bare HPD event. > > I can only hope to see mtk_hdmi to migrate to DRM_BRIDGE_OP_HDMI and > DRM_BRIDGE_OP_HDMI_AUDIO... > > I think the correct timing was discussed several times and the overall > conclusion was that the correct time is when the actual HDMI cable is > being plugged / unplugged. See the discussion around [1] and the > captured response of Mark Brown. Thank you for bringing this to my attention. I'll follow up on it. Meanwhile, can (independent) patch 1/2 already be merged, or at least get reviewed?