summaryrefslogtreecommitdiff
path: root/include/sound/sof/stream.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-07-12 19:21:43 +0100
committerMark Brown <broonie@kernel.org>2022-07-12 19:21:43 +0100
commit4457fbd66bdb93c739ce2404a97c510eaf65e244 (patch)
tree39d0f1aa382329d4ee2140a2901e1ca231493562 /include/sound/sof/stream.h
parent501935dae855a469d7529500c450c550acc6e633 (diff)
parent75b5b7a1ccf606281c4afe365a57ccca486641a2 (diff)
Extend ipc stream parameters sent to DSP
Merge series from Daniel Baluta <daniel.baluta@oss.nxp.com> Daniel Baluta <daniel.baluta@nxp.com>: From: Daniel Baluta <daniel.baluta@nxp.com> We need a way to send extra parameters to DSP firmware. In order to do this, we introduce ext_data array at the end of ipc_stream_params. With this new addition we can send compress parameters. This requires SOF ABI bump.
Diffstat (limited to 'include/sound/sof/stream.h')
-rw-r--r--include/sound/sof/stream.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sound/sof/stream.h b/include/sound/sof/stream.h
index 1db3bbc3e65d..9377113f13e4 100644
--- a/include/sound/sof/stream.h
+++ b/include/sound/sof/stream.h
@@ -86,9 +86,11 @@ struct sof_ipc_stream_params {
uint32_t host_period_bytes;
uint16_t no_stream_position; /**< 1 means don't send stream position */
uint8_t cont_update_posn; /**< 1 means continuous update stream position */
-
- uint8_t reserved[5];
+ uint8_t reserved0;
+ int16_t ext_data_length; /**< 0, means no extended data */
+ uint8_t reserved[2];
uint16_t chmap[SOF_IPC_MAX_CHANNELS]; /**< channel map - SOF_CHMAP_ */
+ uint8_t ext_data[]; /**< extended data */
} __packed;
/* PCM params info - SOF_IPC_STREAM_PCM_PARAMS */