summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorJarkko Nikula2014-05-26 15:56:30 +0200
committerMark Brown2014-06-01 12:50:45 +0200
commit58dcc48816ad1db8d2e33ddf659c2bda64f645c4 (patch)
tree043ea2758aa7491f6ecc5fdd085201fa4ff0b985 /sound/soc
parentASoC: Intel: byt/hsw: Add missing kthread_stop to error/cleanup path (diff)
downloadkernel-qcow2-linux-58dcc48816ad1db8d2e33ddf659c2bda64f645c4.tar.gz
kernel-qcow2-linux-58dcc48816ad1db8d2e33ddf659c2bda64f645c4.tar.xz
kernel-qcow2-linux-58dcc48816ad1db8d2e33ddf659c2bda64f645c4.zip
ASoC: Intel: Clear stored Baytrail DSP DMA pointer before stream start
Stored DSP DMA pointer must be cleared before starting the stream since PCM pointer callback sst_byt_pcm_pointer() can be called before pointer is updated. In that case last position of previous stream was wronly returned. Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/intel/sst-baytrail-pcm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-baytrail-pcm.c b/sound/soc/intel/sst-baytrail-pcm.c
index 3af38576e91e..8eab97368ea7 100644
--- a/sound/soc/intel/sst-baytrail-pcm.c
+++ b/sound/soc/intel/sst-baytrail-pcm.c
@@ -180,6 +180,7 @@ static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
switch (cmd) {
case SNDRV_PCM_TRIGGER_START:
+ pcm_data->hw_ptr = 0;
sst_byt_stream_start(byt, pcm_data->stream, 0);
break;
case SNDRV_PCM_TRIGGER_RESUME: