Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinszkudlinski committed Oct 16, 2024
1 parent dea5af7 commit 2403bbc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/audio/buffers/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions src/include/sof/audio/audio_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions src/include/sof/audio/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2403bbc

Please sign in to comment.