linux/sound/soc/mediatek
Trevor Wu 2355028c0c
ASoC: mediatek: mt8195: correct pcmif BE dai control flow
Originally, the conditions for preventing reentry are not correct.
dai->component->active is not the state specifically for pcmif dai, so it
is not a correct condition to indicate the status of pcmif dai.
On the other hand, snd_soc_dai_stream_actvie() in prepare ops for both
playback and capture possibly return true at the first entry when these
two streams are opened at the same time.

In the patch, I refer to the implementation in mt8192-dai-pcm.c.
Clock and enabling bit for PCMIF are managed by DAPM, and the condition
for prepare ops is replaced by the status of dai widget.

Fixes: 1f95c01911 ("ASoC: mediatek: mt8195: support pcm in platform driver")
Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Link: https://lore.kernel.org/r/20211230084731.31372-2-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-12-31 13:20:57 +00:00
..
common ASoC: mediatek: remove unnecessary initialization 2021-10-27 11:31:12 +01:00
mt2701 ASoC: mediatek: remove unnecessary CONFIG_PM 2021-11-25 11:54:28 +00:00
mt6797 ASoC: mediatek: remove unnecessary CONFIG_PM 2021-11-25 11:54:28 +00:00
mt8173 ASoC: mediatek: mt8173: reduce log verbosity in probe() 2021-12-24 14:06:55 +00:00
mt8183 ASoC: mediatek: use of_device_get_match_data() 2021-12-29 12:45:45 +00:00
mt8192 ASoC: mediatek: use of_device_get_match_data() 2021-12-29 12:45:45 +00:00
mt8195 ASoC: mediatek: mt8195: correct pcmif BE dai control flow 2021-12-31 13:20:57 +00:00
Kconfig ASoC: mediatek: mt8195: add headset codec rt5682s support 2021-12-06 13:49:20 +00:00
Makefile ASoC: mediatek: mt8195: add platform driver 2021-08-24 19:13:56 +01:00