ASoC: hdmi-codec: zero clear HDMI pdata
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 20 Jan 2023 06:32:52 +0000 (06:32 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 20 Jan 2023 11:51:48 +0000 (11:51 +0000)
commit f77a066f4ed307d ("ASoC: hdmi-codec: Allow playback and capture
to be disabled") added new no_i2s_playback/capture.
We need to zero clear HDMI pdata first, otherwise unexpected flag
will be added.

Fixes: f77a066f4ed3 ("ASoC: hdmi-codec: Allow playback and capture to be disabled")
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87k01hlnqj.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c

index a2f0860b20bb9a9993731953d74a3835ea567552..d751820c6da6ac304c725b22c121aadd8b0b0796 100644 (file)
@@ -193,6 +193,7 @@ static int snd_dw_hdmi_probe(struct platform_device *pdev)
        struct hdmi_codec_pdata pdata;
        struct platform_device *platform;
 
+       memset(&pdata, 0, sizeof(pdata));
        pdata.ops               = &dw_hdmi_i2s_ops;
        pdata.i2s               = 1;
        pdata.max_i2s_channels  = 8;