2023-06-21 11:49:46 +01:00
|
|
|
# Copyright, Linaro Ltd, 2023
|
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2021-05-20 16:25:46 +01:00
|
|
|
dnl stream_device_rout: list the devices or streams from argument list
|
|
|
|
|
define(`stream_device_route',
|
|
|
|
|
`ifelse(`$#', `1', ,
|
|
|
|
|
`stream_device_route(shift($@))
|
|
|
|
|
"DNAME, $2"')') dnl
|
|
|
|
|
dnl stream_device_rout: list the devices or streams from argument list
|
|
|
|
|
define(`device_stream_route',
|
|
|
|
|
`ifelse(`$#', `1', ,
|
|
|
|
|
`device_stream_route(shift($@))
|
|
|
|
|
"SNAME, $2"')') dnl
|
|
|
|
|
|
|
|
|
|
define(`STREAM_DEVICE_PLAYBACK_ROUTE',
|
|
|
|
|
`'
|
|
|
|
|
`define(`DNAME', `$2')'
|
|
|
|
|
`SectionGraph."DNAME Graph" {'
|
|
|
|
|
` index STR($1)'
|
|
|
|
|
` lines ['
|
|
|
|
|
` stream_device_route(shift($@))'
|
|
|
|
|
` ]'
|
|
|
|
|
`}')
|
|
|
|
|
dnl STREAM_DEVICE_CAPTURE_ROUTE(stream-index)
|
|
|
|
|
define(`STREAM_DEVICE_CAPTURE_ROUTE',
|
|
|
|
|
`'
|
|
|
|
|
`define(`SNAME', `$2')'
|
|
|
|
|
`SectionGraph."SNAME Graph" {'
|
|
|
|
|
` index STR($1)'
|
|
|
|
|
` lines ['
|
|
|
|
|
` device_stream_route(shift($@))'
|
|
|
|
|
` ]'
|
|
|
|
|
`}')
|