Lib: Dai-legacy: Add chmap and channel_copy members to struct dai_data

This avoids compile error in copier.c:

sof/src/audio/copier/copier.c:692:34:
error: ‘struct dai_data’ has no member named ‘chmap’

and in copier-dai.c:

sof/src/audio/copier/copier_dai.c:550:34:
error: ‘struct dai_data’ has no member named ‘channel_copy’

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2024-09-10 16:15:59 +03:00 committed by Liam Girdwood
parent 6abe40263d
commit dc0a3513c4
1 changed files with 9 additions and 0 deletions

View File

@ -163,6 +163,10 @@ struct llp_slot_info {
uint32_t reg_offset;
};
typedef int (*channel_copy_func)(const struct audio_stream *src, unsigned int src_channel,
struct audio_stream *dst, unsigned int dst_channel,
unsigned int frames);
/**
* \brief DAI runtime data
*/
@ -181,6 +185,11 @@ struct dai_data {
int xrun; /* true if we are doing xrun recovery */
pcm_converter_func process; /* processing function */
uint32_t chmap;
channel_copy_func channel_copy; /* channel copy func used by multi-endpoint
* gateway to mux/demux stream from/to multiple
* DMA buffers
*/
uint32_t period_bytes; /* number of bytes per one period */
uint64_t total_data_processed;