Skip to content

Commit a04f1c8

Browse files
committed
drm: tda99x: Don't advertise non-existent capture support
As far as I can tell none of the tda998x devices support audio capture so don't advertise support for it, ensuring that we don't confuse userspace. Reviewed-by: Russell King (Oracle) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f77a066 commit a04f1c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/i2c/tda998x_drv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,8 @@ static int tda998x_audio_codec_init(struct tda998x_priv *priv,
11741174
struct hdmi_codec_pdata codec_data = {
11751175
.ops = &audio_codec_ops,
11761176
.max_i2s_channels = 2,
1177+
.no_i2s_capture = 1,
1178+
.no_spdif_capture = 1,
11771179
};
11781180

11791181
if (priv->audio_port_enable[AUDIO_ROUTE_I2S])

0 commit comments

Comments
 (0)