Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.3]) (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 70DC034D92C for ; Fri, 5 Jun 2026 06:10:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.3 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780639823; cv=none; b=VHzjgFhNIe4mwcfAMcaGHIKw1RRt5iU9TAaI+f4TXwpeI0bzo7hD7uN35v/vX5IbpfWMHLhY8vfnDJIUJfDFPiUOD2Go0ay9IwKYtGPVBPMo4A0QRVxMW7S5Ah6pRlYf75yKfuyAG6eGohV6b4V3GZ5bWfy+kCDsRRPwBrMQIms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780639823; c=relaxed/simple; bh=B/yQrnHsaxQ3wcTBrimsdYDpFfSkwIELgjXaPzMGWPE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=F4lO5Fapz6HNhR/npyfUTBV+dQjuQcV5NeyNon50DfbrLrQLpRweY41NupKWRb+DPoP/nXlh73QfGhFCwVanAyG/mgRxXIMPNreuVrSe7jzk82WlTAL1QXkD3wHZkXsV7v2V3gYV9PQ/+v1fuD4ydsbbTZ1ZZPn3P7EX4LlqKnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=KMqBRlPv; arc=none smtp.client-ip=117.135.210.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="KMqBRlPv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=hh 1/hiDRwY8ni9d+4XGFXWtoB5e80mJgmHaxa8O9s+o=; b=KMqBRlPvC5XzELSJNh PWIpr8Z/Y07lr42zLpqlaKGuZ/3K5ZQ44yvrCDjfw5u/zuEkVVWUd4C66N3qnK+Z dXFqzTxWMYVCgSOGkBsmgy535q09AwfL4TbOydGDYm26z3/oWUAJ1ArLDousNrNi i/jAdC+l2QeV5VuqD8j49gTgU= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-1 (Coremail) with SMTP id _____wD3PzMqaCJqy4QbBg--.19265S2; Fri, 05 Jun 2026 14:09:48 +0800 (CST) From: wangdich9700@163.com To: mripard@kernel.org Cc: airlied@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, maarten.lankhorst@linux.intel.com, wangdich9700@163.com, wangdicheng@kylinos.cn Subject: Re: [PATCH] drm/connector: add CRTC state change callback to HDMI audio helpers Date: Fri, 5 Jun 2026 14:09:46 +0800 Message-Id: <20260605060946.435082-1-wangdich9700@163.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260604-adaptable-myna-of-courage-7ffeae@houat> References: <20260604-adaptable-myna-of-courage-7ffeae@houat> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:_____wD3PzMqaCJqy4QbBg--.19265S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7XFWUWr43Gw45Xr48GF43Awb_yoWDCwb_uF n5WrnFgw45GF97Aa13KF1IvFySgw1UAw18J3s5tF93Ar93XrWUKF4DZr9xur1IyFZ0y3ZF kr9Fv3W29r1S9jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRROzs7UUUUU== X-CM-SenderInfo: pzdqwv5lfkmliqq6il2tof0z/xtbCwAxIl2oiaCxlHwAA3l Hi Maxime, Thank you for the feedback. You're right - showing the driver usage is important to validate the API design before merging framework changes. I'm preparing follow-up patches to demonstrate how this would be used in practice. Here's the plan: 1. DRM driver side: Show where to call drm_connector_hdmi_audio_crtc_notify() in the CRTC enable/disable paths (using i915 as an example) 2. Audio codec side: Show how an audio codec driver would implement the crtc_state_change callback (using HDA HDMI as an example) I'll send these as a small series (framework patch + driver usage examples) for your review. The examples will show: - How i915 would notify audio when a CRTC is disabled while the connector remains physically connected (e.g., user switches to "internal display only") - How the HDA HDMI codec would handle this notification to prevent silent audio breakage Would you prefer I send the full series now, or would you like to see the example patches first for API design review? Best regards, Wang Dicheng