From dc0a3513c4652c62ef71a8bd9c5b122c52c31da9 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Tue, 10 Sep 2024 16:15:59 +0300 Subject: [PATCH] Lib: Dai-legacy: Add chmap and channel_copy members to struct dai_data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/include/sof/lib/dai-legacy.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/include/sof/lib/dai-legacy.h b/src/include/sof/lib/dai-legacy.h index 328ac156d..6594c84be 100644 --- a/src/include/sof/lib/dai-legacy.h +++ b/src/include/sof/lib/dai-legacy.h @@ -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;