diff options
author | Nicolin Chen <b42378@freescale.com> | 2013-12-04 03:18:37 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-04 11:45:29 (GMT) |
commit | 0b4bbae85e046042af76a65920db4bb5509c97bd (patch) | |
tree | cbba5a64c91e07258706094faf8c7a2f4aa50157 /sound/soc/soc-pcm.c | |
parent | 4d9127faa864e7068d7e06527dfdf099ad06f64a (diff) | |
download | linux-0b4bbae85e046042af76a65920db4bb5509c97bd.tar.xz |
ASoC: soc-pcm: Drop the redundant snd_soc_dai_digital_mute() in soc_pcm_close()
This patch removed the redundant snd_soc_dai_digital_mute() in close() since
it's better to mute in hw_free() which's slightly earlier and symmetrical for
the case of reconfiguration: 'aplay 44k1.wav 48k.wav', for example, will be
open()->hw_params()->prepare(unmute)->playi1ng->hw_free(mute)->hw_params()->
parepare(unmute)->playing->hw_free(mute)->close()
Signed-off-by: Nicolin Chen <b42378@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r-- | sound/soc/soc-pcm.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 42782c0..89d5941 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -390,11 +390,6 @@ static int soc_pcm_close(struct snd_pcm_substream *substream) if (!codec_dai->active) codec_dai->rate = 0; - /* Muting the DAC suppresses artifacts caused during digital - * shutdown, for example from stopping clocks. - */ - snd_soc_dai_digital_mute(codec_dai, 1, substream->stream); - if (cpu_dai->driver->ops->shutdown) cpu_dai->driver->ops->shutdown(substream, cpu_dai); |