Skip to content

Commit 54650eb

Browse files
morimotobroonie
authored andcommitted
ASoC: hdmi-codec: zero clear HDMI pdata
commit f77a066 ("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: f77a066 ("ASoC: hdmi-codec: Allow playback and capture to be disabled") Signed-off-by: Kuninori Morimoto <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ea57680 commit 54650eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ static int snd_dw_hdmi_probe(struct platform_device *pdev)
193193
struct hdmi_codec_pdata pdata;
194194
struct platform_device *platform;
195195

196+
memset(&pdata, 0, sizeof(pdata));
196197
pdata.ops = &dw_hdmi_i2s_ops;
197198
pdata.i2s = 1;
198199
pdata.max_i2s_channels = 8;

0 commit comments

Comments
 (0)