Skip to content

Commit f2c2d93

Browse files
audio: move cir_buf_ptr to common header
This moves struct cir_buf_ptr from mixin_mixout to a common header so it can be reused by other modules. Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
1 parent bd296e4 commit f2c2d93

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/audio/mixin_mixout/mixin_mixout.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,6 @@ struct ipc4_mixer_mode_config {
9999
struct ipc4_mixer_mode_sink_config mixer_mode_sink_configs[1];
100100
} __packed __aligned(4);
101101

102-
/* Pointer to data in circular buffer together with buffer boundaries */
103-
struct cir_buf_ptr {
104-
void *buf_start;
105-
void *buf_end;
106-
void *ptr;
107-
};
108-
109102
/**
110103
* \brief mixin processing function interface
111104
*/

src/include/sof/audio/audio_stream.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ struct audio_stream {
6666
struct sof_audio_stream_params runtime_stream_params;
6767
};
6868

69+
/* A pointer to data in a ring buffer. Just for convenience to reduce the number of typical
70+
* processing function parameters: e.g., just 3 parameters (in, out ptr, and size) instead of 7.
71+
*/
72+
struct cir_buf_ptr {
73+
void *buf_start;
74+
void *buf_end;
75+
void *ptr;
76+
};
77+
6978
void audio_stream_recalc_align(struct audio_stream *stream);
7079

7180
static inline void *audio_stream_get_rptr(const struct audio_stream *buf)

0 commit comments

Comments
 (0)