Commit a0234d0e authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: soc-core: snd_soc_dai_digital_mute() for both CPU/Codec

snd_soc_dai_digital_mute() is used for both CPU and Codec.
For example, soc_pcm_prepare() / soc_pcm_hw_free() are caring
both CPU and Codec.

But soc_resume_deferred() / snd_soc_suspend() are not.
This patch cares it.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/87ft9r2dqr.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3274ed4d
...@@ -548,7 +548,7 @@ int snd_soc_suspend(struct device *dev) ...@@ -548,7 +548,7 @@ int snd_soc_suspend(struct device *dev)
if (rtd->dai_link->ignore_suspend) if (rtd->dai_link->ignore_suspend)
continue; continue;
for_each_rtd_codec_dais(rtd, i, dai) { for_each_rtd_dais(rtd, i, dai) {
if (snd_soc_dai_stream_active(dai, playback)) if (snd_soc_dai_stream_active(dai, playback))
snd_soc_dai_digital_mute(dai, 1, playback); snd_soc_dai_digital_mute(dai, 1, playback);
} }
...@@ -687,7 +687,7 @@ static void soc_resume_deferred(struct work_struct *work) ...@@ -687,7 +687,7 @@ static void soc_resume_deferred(struct work_struct *work)
if (rtd->dai_link->ignore_suspend) if (rtd->dai_link->ignore_suspend)
continue; continue;
for_each_rtd_codec_dais(rtd, i, dai) { for_each_rtd_dais(rtd, i, dai) {
if (snd_soc_dai_stream_active(dai, playback)) if (snd_soc_dai_stream_active(dai, playback))
snd_soc_dai_digital_mute(dai, 0, playback); snd_soc_dai_digital_mute(dai, 0, playback);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment