]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ASoC: q6afe-clocks: Add missing parent clock rate
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 4 Dec 2020 16:42:28 +0000 (16:42 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 4 Dec 2020 17:46:07 +0000 (17:46 +0000)
setting clock rate on child clocks without a parent clock rate will
result in zero clk rate for child. This also means that when audio
is started dsp will attempt to access registers without enabling
clock resulting in board boot up.

Fix this by adding the missing parent clock rate.

Fixes: 520a1c396d196 ("ASoC: q6afe-clocks: add q6afe clock controller")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20201204164228.1826-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6afe-clocks.c

index 2efc2eaa04243afc7449107c67db08aa8ff5393a..acfc0c698f6a1921aabde746f20af301d1296e06 100644 (file)
@@ -16,6 +16,7 @@
                .afe_clk_id     = Q6AFE_##id,           \
                .name = #id,                            \
                .attributes = LPASS_CLK_ATTRIBUTE_COUPLE_NO, \
+               .rate = 19200000,                       \
                .hw.init = &(struct clk_init_data) {    \
                        .ops = &clk_q6afe_ops,          \
                        .name = #id,                    \