ASoC: hdmi-codec: zero clear HDMI pdata
commitf77a066f4e
("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:f77a066f4e
("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>
This commit is contained in:
parent
ea57680af4
commit
54650eb171
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue