diff options
author | Trevor Wu <[email protected]> | 2021-12-30 16:47:30 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-12-31 13:20:57 +0000 |
commit | 2355028c0c54c03afb66c589347f1dc9f6fe2e38 (patch) | |
tree | ba1595afb4e566242911622951882ea792bc72ea /sound/soc/sof/intel/atom.c | |
parent | cc5c9788106fb1b9e03c8c57d8d7166073a54416 (diff) |
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: 1f95c019115c ("ASoC: mediatek: mt8195: support pcm in platform driver")
Signed-off-by: Trevor Wu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'sound/soc/sof/intel/atom.c')
0 files changed, 0 insertions, 0 deletions