summaryrefslogtreecommitdiff
path: root/sound/soc/intel/sst-baytrail-ipc.c
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@linux.intel.com>2014-05-08 16:07:23 +0300
committerMark Brown <broonie@linaro.org>2014-05-12 22:02:17 +0100
commita6686ed553426be00b3bb10acaa2170a6814bbdd (patch)
tree7d3a1cb5a0b417ab03a8e2b72f04921157543838 /sound/soc/intel/sst-baytrail-ipc.c
parent65ee9e8fb654838aa83346728d20b6d7889a7f57 (diff)
ASoC: Intel: Pass stream start position to sst_byt_stream_start()
Stream start position will be needed in resume code. Prepare for it by adding start offset argument to sst_byt_stream_start(). Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/intel/sst-baytrail-ipc.c')
-rw-r--r--sound/soc/intel/sst-baytrail-ipc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/intel/sst-baytrail-ipc.c b/sound/soc/intel/sst-baytrail-ipc.c
index 2e5095eeea3e..8d8884463173 100644
--- a/sound/soc/intel/sst-baytrail-ipc.c
+++ b/sound/soc/intel/sst-baytrail-ipc.c
@@ -663,7 +663,8 @@ static int sst_byt_stream_operations(struct sst_byt *byt, int type,
}
/* stream ALSA trigger operations */
-int sst_byt_stream_start(struct sst_byt *byt, struct sst_byt_stream *stream)
+int sst_byt_stream_start(struct sst_byt *byt, struct sst_byt_stream *stream,
+ u32 start_offset)
{
struct sst_byt_start_stream_params start_stream;
void *tx_msg;
@@ -671,7 +672,7 @@ int sst_byt_stream_start(struct sst_byt *byt, struct sst_byt_stream *stream)
u64 header;
int ret;
- start_stream.byte_offset = 0;
+ start_stream.byte_offset = start_offset;
header = sst_byt_header(IPC_IA_START_STREAM,
sizeof(start_stream) + sizeof(u32),
true, stream->str_id);