mirror of https://github.com/thesofproject/sof.git
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:
parent
d0c220d15c
commit
79c7db16d8
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue