linux/sound/soc/sh
Kuninori Morimoto 06e8f5c842
ASoC: rsnd: don't call clk_get_rate() under atomic context
ADG is using clk_get_rate() under atomic context, thus, we might
have scheduling issue.
To avoid this issue, we need to get/keep clk rate under
non atomic context.

We need to handle ADG as special device at Renesas Sound driver.
From SW point of view, we want to impletent it as
rsnd_mod_ops :: prepare, but it makes code just complicate.

To avoid complicated code/patch, this patch adds new clk_rate[] array,
and keep clk IN rate when rsnd_adg_clk_enable() was called.

Reported-by: Leon Kong <Leon.KONG@cn.bosch.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Leon Kong <Leon.KONG@cn.bosch.com>
Link: https://lore.kernel.org/r/87v9vb0xkp.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-08-07 14:17:47 +01:00
..
rcar ASoC: rsnd: don't call clk_get_rate() under atomic context 2019-08-07 14:17:47 +01:00
dma-sh7760.c ASoC: dma-sh7760: cleanup a debug printk 2019-01-03 16:32:48 +00:00
fsi.c ASoC: More changes for v5.1 2019-02-28 13:30:55 +01:00
hac.c ASoC: sh: use devm_snd_soc_register_component() 2018-09-10 15:14:38 +01:00
Kconfig ASoC: sh: Kconfig: convert to SPDX identifiers 2018-07-30 12:02:29 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
migor.c ASoC: sh: migor: use modern dai_link style 2019-06-06 21:37:24 +01:00
sh7760-ac97.c ASoC: sh: sh7760-ac97: use modern dai_link style 2019-06-06 21:37:35 +01:00
siu_dai.c ASoC: siu: convert to SPDX identifiers 2018-06-18 12:16:42 +01:00
siu_pcm.c ASoC: sh: Drop superfluous PCM preallocation error checks 2019-02-06 18:29:22 +01:00
siu.h ASoC: siu: convert to SPDX identifiers 2018-06-18 12:16:42 +01:00
ssi.c ASoC: ssi: convert to SPDX identifiers 2018-06-18 12:16:37 +01:00