[Sound-open-firmware] [PATCH 1/7] ASoC: SOF: Add position update related header

Xiuli Pan xiuli.pan at linux.intel.com
Wed Mar 7 07:02:50 CET 2018


From: Pan Xiuli <xiuli.pan at linux.intel.com>

Add stream region to store position info and posnition offset to
store memory offset of the position info in stream region.

Signed-off-by: Pan Xiuli <xiuli.pan at linux.intel.com>

---
Test with:
Mininow max rt5651 and GP-MRB nocodec
SOF master: 77ed88aa4a26c3ff6f479bf0894a13c87119ffdc
SOF-Tool master: 3105de2481b5b5511b2fa844fe859f023f434b4c
https://github.com/plbossart/sound/tree/topic/sof-v4.14:
d919ea06b7f79c95ab4eb68baf05e9faf3a894c1
---
 sound/soc/sof/sof-priv.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h
index a096595..ecf0012 100644
--- a/sound/soc/sof/sof-priv.h
+++ b/sound/soc/sof/sof-priv.h
@@ -173,6 +173,7 @@ struct snd_sof_pcm {
 	struct snd_sof_dev *sdev;
 	struct snd_soc_tplg_pcm pcm;
 	struct snd_sof_pcm_stream stream[2];
+	u32 posn_offset[2];
 	struct mutex mutex;	/* TODO: not used ? remove ? */
 	struct list_head list;	/* list in sdev pcm list */
 };
@@ -321,6 +322,7 @@ struct snd_sof_dev {
 	struct snd_sof_ipc *ipc;
 	struct snd_sof_mailbox dsp_box;		/* DSP initiated IPC */
 	struct snd_sof_mailbox host_box;	/* Host initiated IPC */
+	struct snd_sof_mailbox stream_box;	/* Stream position update */
 	u64 irq_status;
 	int ipc_irq;
 	u32 next_comp_id; /* monotonic - reset during S3 */
-- 
2.7.4



More information about the Sound-open-firmware mailing list