ASoC: rt712-sdca: fix speaker route missing issue
authorShuming Fan <shumingf@realtek.com>
Mon, 30 Oct 2023 10:36:44 +0000 (18:36 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 30 Oct 2023 15:42:35 +0000 (15:42 +0000)
commit1a3b7eab8500a6b923f7b62cc8aa4d832c7dfb3e
treead7d21173f05e7c72dc0ca179f3c62d16e95ec97
parent04f8c76de983a5c1e8913e442e791a9e8d0e0dfd
ASoC: rt712-sdca: fix speaker route missing issue

Sometimes the codec probe would be called earlier than the hardware initialization.
Therefore, the speaker route should be added before the the first_hw_init check.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Fixes: f3da2ed110e2 ("ASoC: rt1712-sdca: enable pm_runtime in probe,  keep status as 'suspended'")?
Link: https://lore.kernel.org/r/20231030103644.1787948-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt712-sdca.c