Skip to content

Commit 5350c7a

Browse files
committed
sink/source: Add pipeline_id accessor API
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>
1 parent aa0df02 commit 5350c7a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/include/module/audio/sink_api.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,9 @@ static inline uint32_t sink_get_id(struct sof_sink *sink)
248248
return sink->audio_stream_params->id;
249249
}
250250

251+
static inline uint32_t sink_get_pipeline_id(struct sof_sink *sink)
252+
{
253+
return sink->audio_stream_params->pipeline_id;
254+
}
255+
251256
#endif /* __MODULE_AUDIO_SINK_API_H__ */

src/include/module/audio/source_api.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,4 +226,9 @@ static inline uint32_t source_get_id(struct sof_source *source)
226226
return source->audio_stream_params->id;
227227
}
228228

229+
static inline uint32_t source_get_pipeline_id(struct sof_source *source)
230+
{
231+
return source->audio_stream_params->pipeline_id;
232+
}
233+
229234
#endif /* __MODULE_AUDIO_SOURCE_API_H__ */

0 commit comments

Comments
 (0)