diff --git a/src/audio/buffers/ring_buffer.c b/src/audio/buffers/ring_buffer.c index d0ebb00d42bd..22d18b85a23f 100644 --- a/src/audio/buffers/ring_buffer.c +++ b/src/audio/buffers/ring_buffer.c @@ -19,14 +19,14 @@ DECLARE_TR_CTX(ring_buffer_tr, SOF_UUID(ring_buffer_uuid), LOG_LEVEL_INFO); static inline struct ring_buffer *ring_buffer_from_sink(struct sof_sink *sink) { - struct sof_audio_buffer *audio_buffer = sof_audo_buffer_from_sink(sink); + struct sof_audio_buffer *audio_buffer = sof_audio_buffer_from_sink(sink); return container_of(audio_buffer, struct ring_buffer, audio_buffer); } static inline struct ring_buffer *ring_buffer_from_source(struct sof_source *source) { - struct sof_audio_buffer *audio_buffer = sof_audo_buffer_from_source(source); + struct sof_audio_buffer *audio_buffer = sof_audio_buffer_from_source(source); return container_of(audio_buffer, struct ring_buffer, audio_buffer); } diff --git a/src/include/sof/audio/audio_buffer.h b/src/include/sof/audio/audio_buffer.h index 16e29b79c4b5..313537e20449 100644 --- a/src/include/sof/audio/audio_buffer.h +++ b/src/include/sof/audio/audio_buffer.h @@ -252,7 +252,7 @@ static inline uint32_t audio_buffer_get_channels(struct sof_audio_buffer *buffer * NOTE! ensure that sink is really provided by sof_audio_buffer * otherwise a random value will be returned */ -static inline struct sof_audio_buffer *sof_audo_buffer_from_sink(struct sof_sink *sink) +static inline struct sof_audio_buffer *sof_audio_buffer_from_sink(struct sof_sink *sink) { return container_of(sink, struct sof_audio_buffer, _sink_api); } @@ -262,7 +262,7 @@ static inline struct sof_audio_buffer *sof_audo_buffer_from_sink(struct sof_sink * NOTE! ensure that source is really provided by sof_audio_buffer * otherwise a random value will be returned */ -static inline struct sof_audio_buffer *sof_audo_buffer_from_source(struct sof_source *source) +static inline struct sof_audio_buffer *sof_audio_buffer_from_source(struct sof_source *source) { return container_of(source, struct sof_audio_buffer, _source_api); } diff --git a/src/include/sof/audio/buffer.h b/src/include/sof/audio/buffer.h index aaaa20f399c8..eafe9d1cd190 100644 --- a/src/include/sof/audio/buffer.h +++ b/src/include/sof/audio/buffer.h @@ -200,14 +200,14 @@ int buffer_set_size_range(struct comp_buffer *buffer, size_t preferred_size, siz /* legacy wrappers, to be removed. Don't use them if possible */ static inline struct comp_buffer *comp_buffer_get_from_source(struct sof_source *source) { - struct sof_audio_buffer *audio_buffer = sof_audo_buffer_from_source(source); + struct sof_audio_buffer *audio_buffer = sof_audio_buffer_from_source(source); return container_of(audio_buffer, struct comp_buffer, audio_buffer); } static inline struct comp_buffer *comp_buffer_get_from_sink(struct sof_sink *sink) { - struct sof_audio_buffer *audio_buffer = sof_audo_buffer_from_sink(sink); + struct sof_audio_buffer *audio_buffer = sof_audio_buffer_from_sink(sink); return container_of(audio_buffer, struct comp_buffer, audio_buffer); }