summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/sst-haswell-ipc.h
diff options
context:
space:
mode:
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>2014-05-02 17:56:33 +0200
committerMark Brown <broonie@linaro.org>2014-05-02 18:54:05 +0200
commit51b4e24f383c84ed927fef348072b6dc65b9816d (patch)
treed0818cfe74582d6152c4b094d915bd53c8f36333 /sound/soc/intel/sst-haswell-ipc.h
parentASoC: Intel: Fix allow hw_params to be called more than once. (diff)
downloadlinux-51b4e24f383c84ed927fef348072b6dc65b9816d.tar.xz
linux-51b4e24f383c84ed927fef348072b6dc65b9816d.zip
ASoC: Intel: Fix stream position pointer.
Read the stream offset and presentation position from DSP memory rather than using the old estimated position. This fixes timing issues with pulseaudio. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/intel/sst-haswell-ipc.h')
-rw-r--r--sound/soc/intel/sst-haswell-ipc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/intel/sst-haswell-ipc.h b/sound/soc/intel/sst-haswell-ipc.h
index d517929ccc38..2ac194a6d04b 100644
--- a/sound/soc/intel/sst-haswell-ipc.h
+++ b/sound/soc/intel/sst-haswell-ipc.h
@@ -464,7 +464,9 @@ int sst_hsw_stream_get_write_pos(struct sst_hsw *hsw,
struct sst_hsw_stream *stream, u32 *position);
int sst_hsw_stream_set_write_position(struct sst_hsw *hsw,
struct sst_hsw_stream *stream, u32 stage_id, u32 position);
-int sst_hsw_get_dsp_position(struct sst_hsw *hsw,
+u32 sst_hsw_get_dsp_position(struct sst_hsw *hsw,
+ struct sst_hsw_stream *stream);
+u64 sst_hsw_get_dsp_presentation_position(struct sst_hsw *hsw,
struct sst_hsw_stream *stream);
/* HW port config */