drm: bridge: adv7511: fill stream capabilities
authorOlivier Moysan <olivier.moysan@foss.st.com>
Wed, 8 Jan 2025 17:03:54 +0000 (18:03 +0100)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 26 Jan 2025 12:01:12 +0000 (14:01 +0200)
Set no_i2s_capture and no_spdif_capture flags in hdmi_codec_pdata structure
to report that the ADV7511 HDMI bridge does not support i2s or spdif audio
capture.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250108170356.413063-2-olivier.moysan@foss.st.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/bridge/adv7511/adv7511_audio.c

index 51fb9a574b4e28450b2598a92e2930ace5128b71..ae853f6485b645830c366252a2fde213f92f14ef 100644 (file)
@@ -235,7 +235,9 @@ static const struct hdmi_codec_pdata codec_data = {
        .ops = &adv7511_codec_ops,
        .max_i2s_channels = 2,
        .i2s = 1,
+       .no_i2s_capture = 1,
        .spdif = 1,
+       .no_spdif_capture = 1,
 };
 
 int adv7511_audio_init(struct device *dev, struct adv7511 *adv7511)