linux-stable/sound/soc/mediatek
Trevor Wu ada41093fb 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:55:31 +01:00
..
common ASoC: mediatek: mtk-btcvsd: Add checks for write and read of mtk_btcvsd_snd 2022-12-31 13:32:18 +01:00
mt2701 ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe 2022-04-05 10:44:31 +01:00
mt6797 ASoC: mt6797-mt6351: Fix refcount leak in mt6797_mt6351_dev_probe 2022-06-06 12:38:49 +01:00
mt8173 ASoC: mediatek: mt8173-rt5650-rt5514: fix refcount leak in mt8173_rt5650_rt5514_dev_probe() 2022-12-31 13:33:06 +01:00
mt8183 ASoC: mediatek: mt8183: fix refcount leak in mt8183_mt6358_ts3a227_max98357_dev_probe() 2022-12-31 13:33:06 +01:00
mt8186 ASoC: mediatek: mt8186: support rt5682s_max98360 2023-02-01 08:34:28 +01:00
mt8192 ASoC: mediatek: mt8192-mt6359: Set the driver name for the card 2022-09-30 10:41:13 +01:00
mt8195 ASoC: mediatek: mt8195: add missing initialization 2023-03-11 13:55:31 +01:00
Kconfig ASoC: support machine driver with max98360 2023-02-01 08:34:29 +01:00
Makefile ASoC: mediatek: mt8186: add platform driver 2022-07-20 17:42:24 +01:00