topology2: use input|output audio format

The old style is not used now.

Signed-off-by: Rander Wang <rander.wang@intel.com>
This commit is contained in:
Rander Wang 2023-09-25 13:29:46 +08:00 committed by Liam Girdwood
parent 8eedfe4836
commit e7a1592002
1 changed files with 71 additions and 40 deletions

View File

@ -45,58 +45,89 @@ Class.Pipeline."gain-capture" {
Object.Widget {
host-copier."1" {
type "aif_out"
num_input_audio_formats 3
num_output_audio_formats 3
num_input_audio_formats 1
num_input_pins 1
# 16-bit 48KHz 2ch
Object.Base.audio_format.1 {
Object.Base.input_audio_format [
{
in_bit_depth 32
in_valid_bit_depth 32
}
# 24-bit 48KHz 2ch
Object.Base.audio_format.2 {
in_bit_depth 32
in_valid_bit_depth 32
]
num_output_audio_formats 3
num_output_pins 1
Object.Base.output_audio_format [
{
out_bit_depth 16
out_valid_bit_depth 16
}
{
out_bit_depth 32
out_valid_bit_depth 24
}
# 32-bit 48KHz 2ch
Object.Base.audio_format.3 {
in_bit_depth 32
in_valid_bit_depth 32
{
out_bit_depth 32
out_valid_bit_depth 32
}
]
node_type $HDA_HOST_INPUT_CLASS
}
gain."1" {
num_input_audio_formats 2
num_output_audio_formats 2
#16-bit 48KHz 2ch
Object.Base.audio_format.1 {}
# 32-bit 48KHz 2ch
Object.Base.audio_format.2 {
num_input_pins 1
Object.Base.input_audio_format [
{
in_bit_depth 16
in_valid_bit_depth 16
}
{
in_bit_depth 32
in_valid_bit_depth 32
}
]
num_output_audio_formats 2
num_output_pins 1
Object.Base.output_audio_format [
{
out_bit_depth 16
out_valid_bit_depth 16
}
{
out_bit_depth 32
out_valid_bit_depth 32
}
]
}
module-copier."2" {
num_input_audio_formats 2
num_output_audio_formats 2
#16-bit 48KHz 2ch
Object.Base.audio_format.1 {}
# 32-bit 48KHz 2ch
Object.Base.audio_format.2 {
num_input_pins 1
Object.Base.input_audio_format [
{
in_bit_depth 16
in_valid_bit_depth 16
}
{
in_bit_depth 32
in_valid_bit_depth 32
}
]
num_output_audio_formats 2
num_output_pins 1
Object.Base.output_audio_format [
{
out_bit_depth 16
out_valid_bit_depth 16
}
{
out_bit_depth 32
out_valid_bit_depth 32
}
]
}
pipeline."1" {