Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: add time info structure for ipc4 path

Start_stream_offset is used to strip invalid sample count in dai
for some cases like dai is started before host. llp_offset is used
to get current dai position from memory windows.

Signed-off-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20230202132954.26773-4-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Rander Wang and committed by
Mark Brown
65a8ef49 4700bfb2

+17
+14
sound/soc/sof/ipc4-priv.h
··· 87 87 struct mutex pipeline_state_mutex; /* protect pipeline triggers, ref counts and states */ 88 88 }; 89 89 90 + /** 91 + * struct sof_ipc4_timestamp_info - IPC4 timestamp info 92 + * @host_copier: the host copier of the pcm stream 93 + * @dai_copier: the dai copier of the pcm stream 94 + * @stream_start_offset: reported by fw in memory window 95 + * @llp_offset: llp offset in memory window 96 + */ 97 + struct sof_ipc4_timestamp_info { 98 + struct sof_ipc4_copier *host_copier; 99 + struct sof_ipc4_copier *dai_copier; 100 + u64 stream_start_offset; 101 + u32 llp_offset; 102 + }; 103 + 90 104 extern const struct sof_ipc_fw_loader_ops ipc4_loader_ops; 91 105 extern const struct sof_ipc_tplg_ops ipc4_tplg_ops; 92 106 extern const struct sof_ipc_tplg_control_ops tplg_ipc4_control_ops;
+3
sound/soc/sof/sof-audio.h
··· 311 311 */ 312 312 bool suspend_ignored; 313 313 struct snd_sof_pcm_stream_pipeline_list pipeline_list; 314 + 315 + /* used by IPC implementation and core does not touch it */ 316 + void *private; 314 317 }; 315 318 316 319 /* ALSA SOF PCM device */