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 1FF3037AA9A for ; Fri, 8 May 2026 11:44:43 +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=1778240685; cv=none; b=Vfyj85w75jGY00jJ/7cCd3VA8sosUq18M3CJnH1jbXXek+/U/K0/71K74DdKlUMOn13KQKLKDor3L3K2gDRyLPawGsFk1NnNBH/XZFmGi8dFWELdfbcYSb+bLgPxEq4LMx6VH/n/npUMhG3bRCHdy+rU2GcFmwqX5tFvV8EiEPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778240685; c=relaxed/simple; bh=U0+WyYUtyhX0x71yaDqGKVZ79yXKh4diRzTs2dGo4vI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F6A8xpwYBGwBdH37nSVnYW/kK4G82rShpzi9TRCs+BH8Qm51J0uoJ7/8xGjwQjly5pMXlVNj5oTSvW86KCQGIW1I/Cs0QhFtudRr8elIaWgb7aV1DGxh1dNMAF6NOdesdZWGtB+lOGmFG60afYDBoN31kKqHN2FKqZZl4nUS+v4= 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 1wLJd4-000000004bI-3Yr9; Fri, 08 May 2026 11:44:26 +0000 Date: Fri, 8 May 2026 12:44:23 +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 Fri, May 08, 2026 at 02:29:29PM +0300, Dmitry Baryshkov wrote: > On Thu, May 07, 2026 at 02:32:45PM +0100, Daniel Golle wrote: > > 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? > > > The discussion that I pointed to suggests that the patch is incorrect. I understand that patch 2/2 is incorrect, but (the independent fix in) patch 1/2 as well?