Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • linaro/qcomlt/audioreach-topology
  • krzysztof.kozlowski/audioreach-topology
  • neil.armstrong/audioreach-topology
3 results
Show changes
File added
This diff is collapsed.
File added
This diff is collapsed.
File added
This diff is collapsed.
# Copyright, Linaro Ltd, 2023
# SPDX-License-Identifier: BSD-3-Clause
include(`audioreach/audioreach.m4') dnl include(`audioreach/audioreach.m4') dnl
dnl stream_device_list: list the devices or streams from argument list dnl stream_device_list: list the devices or streams from argument list
define(`stream_device_list', define(`stream_device_list',
...@@ -8,7 +10,7 @@ dnl ...@@ -8,7 +10,7 @@ dnl
dnl STREAM_DEVICE_CAPTURE_MIXER(stream-index) dnl STREAM_DEVICE_CAPTURE_MIXER(stream-index)
define(`STREAM_DEVICE_CAPTURE_MIXER', define(`STREAM_DEVICE_CAPTURE_MIXER',
`' `'
`SectionWidget."MultiMedia$1 Mixer" {' `SectionWidget."`MultiMedia'eval($1 + 1)` Mixer'" {'
` reg "-1"' ` reg "-1"'
` index STR($1)' ` index STR($1)'
` type "mixer"' ` type "mixer"'
...@@ -67,7 +69,7 @@ dnl ...@@ -67,7 +69,7 @@ dnl
dnl STREAM_PLAYBACK_MIXER(stream-index, sg-index) dnl STREAM_PLAYBACK_MIXER(stream-index, sg-index)
define(`STREAM_PLAYBACK_MIXER', define(`STREAM_PLAYBACK_MIXER',
`' `'
`SectionControlMixer."MultiMedia$1" {' `SectionControlMixer."`MultiMedia'eval($1 + 1)" {'
` reg "-1"' ` reg "-1"'
` index STR($1)' ` index STR($1)'
` max "1"' ` max "1"'
......
# Copyright, Linaro Ltd, 2023
# SPDX-License-Identifier: BSD-3-Clause
include(`util/util.m4') dnl include(`util/util.m4') dnl
dnl AR_PCM_PLAYBACK(index, formats, rate_min, rate_max, ch_min, ch_max) dnl AR_PCM_PLAYBACK(index, formats, rate_min, rate_max, ch_min, ch_max)
define(`AR_PCM_PLAYBACK', define(`AR_PCM_PLAYBACK',
`' `'
`SectionPCMCapabilities."MultiMedia$1 Playback" {' `SectionPCMCapabilities."`MultiMedia'eval($1 +1 )` Playback'" {'
` formats STR($2)' ` formats STR($2)'
` rate_min STR($3)' ` rate_min STR($3)'
` rate_max STR($4)' ` rate_max STR($4)'
...@@ -10,26 +12,26 @@ define(`AR_PCM_PLAYBACK', ...@@ -10,26 +12,26 @@ define(`AR_PCM_PLAYBACK',
` channels_max STR($6)' ` channels_max STR($6)'
`}' `}'
`' `'
`SectionPCM."MultiMedia$1 Playback" {' `SectionPCM."`MultiMedia'eval($1 + 1)` Playback'" {'
`' `'
` index STR($1)' ` index STR($1)'
`' `'
` # used for binding to the PCM' ` # used for binding to the PCM'
` id STR($1)' ` id STR($1)'
`' `'
` dai."MultiMedia$1 Playback" {' ` dai."`MultiMedia'eval($1 + 1)` Playback'" {'
` id STR($1)' ` id STR($1)'
` }' ` }'
`' `'
` pcm."playback" {' ` pcm."playback" {'
` capabilities "MultiMedia$1 Playback"' ` capabilities "`MultiMedia'eval($1 + 1)` Playback'"'
` }' ` }'
`}') dnl `}') dnl
dnl dnl
dnl AR_PCM_CAPTURE(index, formats, rate_min, rate_max, ch_min, ch_max) dnl AR_PCM_CAPTURE(index, formats, rate_min, rate_max, ch_min, ch_max)
define(`AR_PCM_CAPTURE', define(`AR_PCM_CAPTURE',
`' `'
`SectionPCMCapabilities."MultiMedia$1 Capture" {' `SectionPCMCapabilities."`MultiMedia'eval($1 +1 )` Capture'" {'
`' `'
` formats STR($2)' ` formats STR($2)'
` rate_min STR($3)' ` rate_min STR($3)'
...@@ -38,18 +40,46 @@ define(`AR_PCM_CAPTURE', ...@@ -38,18 +40,46 @@ define(`AR_PCM_CAPTURE',
` channels_max STR($6)' ` channels_max STR($6)'
`}' `}'
`' `'
`SectionPCM."MultiMedia$1 Capture" {' `SectionPCM."`MultiMedia'eval($1 + 1)` Capture'" {'
`' `'
` index STR($1)' ` index STR($1)'
`' `'
` # used for binding to the PCM' ` # used for binding to the PCM'
` id STR($1)' ` id STR($1)'
`' `'
` dai."MultiMedia$1 Capture" {' ` dai."`MultiMedia'eval($1 + 1)` Capture'" {'
` id STR($1)' ` id STR($1)'
` }' ` }'
`' `'
` pcm."capture" {' ` pcm."capture" {'
` capabilities "MultiMedia$1 Capture"' ` capabilities "`MultiMedia'eval($1 + 1)` Capture'"'
` }' ` }'
`}') `}')
dnl AR_COMPESS_PLAYBACK(index, formats, rate_min, rate_max, ch_min, ch_max)
define(`AR_COMPESS_PLAYBACK',
`'
`SectionPCMCapabilities."MultiMedia$1 Playback" {'
` formats STR($2)'
` rate_min STR($3)'
` rate_max STR($4)'
` channels_min STR($5)'
` channels_max STR($6)'
`}'
`'
`SectionPCM."MultiMedia$1 Playback" {'
`'
` index STR($1)'
` compress "true"'
`'
` # used for binding to the PCM'
` id STR($1)'
`'
` dai."MultiMedia$1 Playback" {'
` id STR($1)'
` }'
`'
` pcm."playback" {'
` capabilities "MultiMedia$1 Playback"'
` }'
`}') dnl
dnl
# Copyright, Linaro Ltd, 2023
# SPDX-License-Identifier: BSD-3-Clause
dnl stream_device_rout: list the devices or streams from argument list dnl stream_device_rout: list the devices or streams from argument list
define(`stream_device_route', define(`stream_device_route',
`ifelse(`$#', `1', , `ifelse(`$#', `1', ,
......
# Copyright, Linaro Ltd, 2023
# SPDX-License-Identifier: BSD-3-Clause
define(`STR', `"'$1`"') dnl define(`STR', `"'$1`"') dnl