Skip to content

Commit

Permalink
sink/source: Add pipeline_id accessor API
Browse files Browse the repository at this point in the history
Expose the new pipeline_id field in sof_audio_stream_params to a
cleaner sink/source API for use by module code.  Longer term this may
want to be indirected by newer backends.

Signed-off-by: Andy Ross <andyross@google.com>
  • Loading branch information
andyross committed Jun 11, 2024
1 parent 0c82921 commit 3bd5570
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/include/module/audio/sink_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,9 @@ static inline uint32_t sink_get_id(struct sof_sink *sink)
return sink->audio_stream_params->id;
}

static inline uint32_t sink_get_pipeline_id(struct sof_sink *sink)
{
return sink->audio_stream_params->pipeline_id;
}

#endif /* __MODULE_AUDIO_SINK_API_H__ */
5 changes: 5 additions & 0 deletions src/include/module/audio/source_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,9 @@ static inline uint32_t source_get_id(struct sof_source *source)
return source->audio_stream_params->id;
}

static inline uint32_t source_get_pipeline_id(struct sof_source *source)
{
return source->audio_stream_params->pipeline_id;
}

#endif /* __MODULE_AUDIO_SOURCE_API_H__ */

0 comments on commit 3bd5570

Please sign in to comment.