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>
This commit is contained in:
Andy Ross 2024-06-11 11:42:06 -07:00 committed by Kai Vehmanen
parent d0c220d15c
commit 79c7db16d8
2 changed files with 10 additions and 0 deletions

View File

@ -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__ */

View File

@ -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__ */