Skip to content

Commit a665b4e

Browse files
Hsin-Te Yuanrobertfoss
authored andcommitted
drm/bridge: anx7625: Update audio status while detecting
Previously, the audio status was not updated during detection, leading to a persistent audio despite hot plugging events. To resolve this issue, update the audio status during detection. Fixes: 566fef1 ("drm/bridge: anx7625: add HDMI audio function") Signed-off-by: Hsin-Te Yuan <yuanhsinte@chromium.org> Reviewed-by: Robert Foss <rfoss@kernel.org> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240416-anx7625-v3-1-f916ae31bdd7@chromium.org
1 parent c1e4d3a commit a665b4e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

drivers/gpu/drm/bridge/analogix/anx7625.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2469,15 +2469,22 @@ static void anx7625_bridge_atomic_disable(struct drm_bridge *bridge,
24692469
mutex_unlock(&ctx->aux_lock);
24702470
}
24712471

2472+
static void
2473+
anx7625_audio_update_connector_status(struct anx7625_data *ctx,
2474+
enum drm_connector_status status);
2475+
24722476
static enum drm_connector_status
24732477
anx7625_bridge_detect(struct drm_bridge *bridge)
24742478
{
24752479
struct anx7625_data *ctx = bridge_to_anx7625(bridge);
24762480
struct device *dev = ctx->dev;
2481+
enum drm_connector_status status;
24772482

24782483
DRM_DEV_DEBUG_DRIVER(dev, "drm bridge detect\n");
24792484

2480-
return anx7625_sink_detect(ctx);
2485+
status = anx7625_sink_detect(ctx);
2486+
anx7625_audio_update_connector_status(ctx, status);
2487+
return status;
24812488
}
24822489

24832490
static const struct drm_edid *anx7625_bridge_edid_read(struct drm_bridge *bridge,

0 commit comments

Comments
 (0)