mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-22 04:15:02 +00:00
ALSA: ASoC: Use codec digital mute when stopping playback
Muting the DAC masks artefacts introduced as the digital stream shuts down, for example when the input stops being clocked. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
3e860846d7
commit
6010b2da1f
1 changed files with 6 additions and 0 deletions
|
@ -340,6 +340,12 @@ static int soc_codec_close(struct snd_pcm_substream *substream)
|
|||
}
|
||||
codec->active--;
|
||||
|
||||
/* Muting the DAC suppresses artifacts caused during digital
|
||||
* shutdown, for example from stopping clocks.
|
||||
*/
|
||||
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
|
||||
snd_soc_dai_digital_mute(codec_dai, 1);
|
||||
|
||||
if (cpu_dai->ops.shutdown)
|
||||
cpu_dai->ops.shutdown(substream);
|
||||
|
||||
|
|
Loading…
Reference in a new issue