WSL2-Linux-Kernel/sound/soc/mediatek
Trevor Wu d11f9f030f ASoC: mediatek: mt8195: add missing initialization
[ Upstream commit b56ec2992a ]

In etdm dai driver, dai_etdm_parse_of() function is used to parse dts
properties to get parameters. There are two for-loops which are
sepearately for all etdm and etdm input only cases. In etdm in only
loop, dai_id is not initialized, so it keeps the value intiliazed in
another loop.

In the patch, add the missing initialization to fix the unexpected
parsing problem.

Fixes: 1de9a54aca ("ASoC: mediatek: mt8195: support etdm in platform driver")
Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230301110200.26177-3-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 13:57:32 +01:00
..
common ASoC: mediatek: mtk-btcvsd: Add checks for write and read of mtk_btcvsd_snd 2022-12-31 13:14:13 +01:00
mt2701 ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe 2022-06-09 10:22:45 +02:00
mt6797 ASoC: mt6797-mt6351: Fix refcount leak in mt6797_mt6351_dev_probe 2022-08-17 14:24:02 +02:00
mt8173 ASoC: mediatek: mt8173-rt5650-rt5514: fix refcount leak in mt8173_rt5650_rt5514_dev_probe() 2022-12-31 13:14:45 +01:00
mt8183 ASoC: mediatek: mt8183: fix refcount leak in mt8183_mt6358_ts3a227_max98357_dev_probe() 2022-12-31 13:14:45 +01:00
mt8192 ASoC: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_probe 2022-04-08 14:23:21 +02:00
mt8195 ASoC: mediatek: mt8195: add missing initialization 2023-03-11 13:57:32 +01:00
Kconfig
Makefile