topology2: sdw-jack-generic: add SDW_JACK_CAPTURE_CH macro

Adding SDW_JACK_CAPTURE_CH macro to specify sdw jack channels.
The default value is 2.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
This commit is contained in:
Bard Liao 2023-05-24 18:07:30 +08:00 committed by Kai Vehmanen
parent f6f57fe82b
commit 8ef4d51e68
2 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,7 @@ Define {
SDW_DMIC 0
SDW_JACK true
PASSTHROUGH false
SDW_JACK_CAPTURE_CH 2
}
# override defaults with platform-specific config

View File

@ -314,6 +314,8 @@ Object.PCM.pcm [
Object.PCM.pcm_caps.1 {
name "Passthrough Capture 0"
formats 'S16_LE,S32_LE'
channels_min $SDW_JACK_CAPTURE_CH
channels_max $SDW_JACK_CAPTURE_CH
}
}
]