Topology2: sdw-jack-generic: add 1 ch format support

Some codecs like cs42l42 support 1 channel capture only.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
This commit is contained in:
Bard Liao 2023-06-08 17:13:02 +08:00 committed by Kai Vehmanen
parent a5c0c49707
commit f6f57fe82b
1 changed files with 45 additions and 0 deletions

View File

@ -180,11 +180,56 @@ Object.Pipeline.host-gateway-capture [
Object.Widget.host-copier.1 {
stream_name "Passthrough Capture 0"
pcm_id 1
num_input_audio_formats 9
num_output_audio_formats 9
Object.Base.audio_format.1 {
# 32/32 -> 16/16 bits conversion is done here
in_bit_depth 32
in_valid_bit_depth 32
}
# 32-bit 48KHz 1ch
Object.Base.input_audio_format.7 {
in_channels 1
in_bit_depth 32
in_valid_bit_depth 32
in_ch_cfg $CHANNEL_CONFIG_MONO
in_ch_map $CHANNEL_MAP_MONO
}
Object.Base.output_audio_format.7 {
out_bit_depth 32
out_valid_bit_depth 32
out_channels 1
out_ch_cfg $CHANNEL_CONFIG_MONO
out_ch_map $CHANNEL_MAP_MONO
}
# 24-bit 48KHz 1ch
Object.Base.input_audio_format.8 {
in_channels 1
in_bit_depth 32
in_valid_bit_depth 32
in_ch_cfg $CHANNEL_CONFIG_MONO
in_ch_map $CHANNEL_MAP_MONO
}
Object.Base.output_audio_format.8 {
out_bit_depth 32
out_valid_bit_depth 24
out_channels 1
out_ch_cfg $CHANNEL_CONFIG_MONO
out_ch_map $CHANNEL_MAP_MONO
}
# 16-bit 48KHz 1ch
Object.Base.input_audio_format.9 {
in_channels 1
in_bit_depth 32
in_valid_bit_depth 32
in_ch_cfg $CHANNEL_CONFIG_MONO
in_ch_map $CHANNEL_MAP_MONO
}
Object.Base.output_audio_format.9 {
out_channels 1
out_ch_cfg $CHANNEL_CONFIG_MONO
out_ch_map $CHANNEL_MAP_MONO
}
}
}
]