audioreach: fix the pcm ids
For some reason we ended up with pcm id starting at 1 instead of 0. Fix this. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
This commit is contained in:
parent
56b403ffe8
commit
d4af834999
14 changed files with 41 additions and 41 deletions
|
|
@ -10,7 +10,7 @@ dnl
|
|||
dnl STREAM_DEVICE_CAPTURE_MIXER(stream-index)
|
||||
define(`STREAM_DEVICE_CAPTURE_MIXER',
|
||||
`'
|
||||
`SectionWidget."MultiMedia$1 Mixer" {'
|
||||
`SectionWidget."`MultiMedia'eval($1 + 1)` Mixer'" {'
|
||||
` reg "-1"'
|
||||
` index STR($1)'
|
||||
` type "mixer"'
|
||||
|
|
@ -69,7 +69,7 @@ dnl
|
|||
dnl STREAM_PLAYBACK_MIXER(stream-index, sg-index)
|
||||
define(`STREAM_PLAYBACK_MIXER',
|
||||
`'
|
||||
`SectionControlMixer."MultiMedia$1" {'
|
||||
`SectionControlMixer."`MultiMedia'eval($1 + 1)" {'
|
||||
` reg "-1"'
|
||||
` index STR($1)'
|
||||
` max "1"'
|
||||
|
|
|
|||
16
util/pcm.m4
16
util/pcm.m4
|
|
@ -4,7 +4,7 @@ include(`util/util.m4') dnl
|
|||
dnl AR_PCM_PLAYBACK(index, formats, rate_min, rate_max, ch_min, ch_max)
|
||||
define(`AR_PCM_PLAYBACK',
|
||||
`'
|
||||
`SectionPCMCapabilities."MultiMedia$1 Playback" {'
|
||||
`SectionPCMCapabilities."`MultiMedia'eval($1 +1 )` Playback'" {'
|
||||
` formats STR($2)'
|
||||
` rate_min STR($3)'
|
||||
` rate_max STR($4)'
|
||||
|
|
@ -12,26 +12,26 @@ define(`AR_PCM_PLAYBACK',
|
|||
` channels_max STR($6)'
|
||||
`}'
|
||||
`'
|
||||
`SectionPCM."MultiMedia$1 Playback" {'
|
||||
`SectionPCM."`MultiMedia'eval($1 + 1)` Playback'" {'
|
||||
`'
|
||||
` index STR($1)'
|
||||
`'
|
||||
` # used for binding to the PCM'
|
||||
` id STR($1)'
|
||||
`'
|
||||
` dai."MultiMedia$1 Playback" {'
|
||||
` dai."`MultiMedia'eval($1 + 1)` Playback'" {'
|
||||
` id STR($1)'
|
||||
` }'
|
||||
`'
|
||||
` pcm."playback" {'
|
||||
` capabilities "MultiMedia$1 Playback"'
|
||||
` capabilities "`MultiMedia'eval($1 + 1)` Playback'"'
|
||||
` }'
|
||||
`}') dnl
|
||||
dnl
|
||||
dnl AR_PCM_CAPTURE(index, formats, rate_min, rate_max, ch_min, ch_max)
|
||||
define(`AR_PCM_CAPTURE',
|
||||
`'
|
||||
`SectionPCMCapabilities."MultiMedia$1 Capture" {'
|
||||
`SectionPCMCapabilities."`MultiMedia'eval($1 +1 )` Capture'" {'
|
||||
`'
|
||||
` formats STR($2)'
|
||||
` rate_min STR($3)'
|
||||
|
|
@ -40,19 +40,19 @@ define(`AR_PCM_CAPTURE',
|
|||
` channels_max STR($6)'
|
||||
`}'
|
||||
`'
|
||||
`SectionPCM."MultiMedia$1 Capture" {'
|
||||
`SectionPCM."`MultiMedia'eval($1 + 1)` Capture'" {'
|
||||
`'
|
||||
` index STR($1)'
|
||||
`'
|
||||
` # used for binding to the PCM'
|
||||
` id STR($1)'
|
||||
`'
|
||||
` dai."MultiMedia$1 Capture" {'
|
||||
` dai."`MultiMedia'eval($1 + 1)` Capture'" {'
|
||||
` id STR($1)'
|
||||
` }'
|
||||
`'
|
||||
` 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue