mirror of https://github.com/thesofproject/sof.git
topology2: dmic-generic: Replace use of audio_format objects
Use input_audio_format/output_audio_format explicitly in preparation for deprecating the audio_format class. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
parent
02a7c98534
commit
f64cc8f528
|
@ -82,47 +82,63 @@ IncludeByKey.PASSTHROUGH {
|
|||
pcm_id $DMIC0_PCM_ID
|
||||
num_input_audio_formats 2
|
||||
num_output_audio_formats 2
|
||||
Object.Base.audio_format.1 {
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
}
|
||||
Object.Base.audio_format.2 {
|
||||
in_channels 4
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
out_channels 4
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
in_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
out_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
}
|
||||
Object.Base.input_audio_format [
|
||||
{
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
}
|
||||
{
|
||||
in_channels 4
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
in_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
}
|
||||
]
|
||||
Object.Base.output_audio_format [
|
||||
{
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
}
|
||||
{
|
||||
out_channels 4
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
out_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
}
|
||||
]
|
||||
}
|
||||
Object.Widget.gain.1 {
|
||||
curve_duration 500000
|
||||
num_input_audio_formats 2
|
||||
num_output_audio_formats 2
|
||||
Object.Base.audio_format.1 {
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
}
|
||||
Object.Base.audio_format.2 {
|
||||
in_channels 4
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
out_channels 4
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
in_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
out_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
}
|
||||
Object.Base.input_audio_format [
|
||||
{
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
}
|
||||
{
|
||||
in_channels 4
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
in_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
}
|
||||
]
|
||||
Object.Base.output_audio_format [
|
||||
{
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
}
|
||||
{
|
||||
out_channels 4
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
out_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
}
|
||||
]
|
||||
Object.Control.mixer.1 {
|
||||
name '$DMIC0_PCM_NAME Capture Volume'
|
||||
}
|
||||
|
@ -131,24 +147,32 @@ IncludeByKey.PASSTHROUGH {
|
|||
Object.Widget.module-copier."2" {
|
||||
num_input_audio_formats 2
|
||||
num_output_audio_formats 2
|
||||
Object.Base.audio_format.1 {
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
}
|
||||
Object.Base.audio_format.2 {
|
||||
in_channels 4
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
out_channels 4
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
in_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
out_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
}
|
||||
Object.Base.input_audio_format [
|
||||
{
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
}
|
||||
{
|
||||
in_channels 4
|
||||
in_bit_depth 32
|
||||
in_valid_bit_depth 32
|
||||
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
in_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
}
|
||||
]
|
||||
Object.Base.output_audio_format [
|
||||
{
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
}
|
||||
{
|
||||
out_channels 4
|
||||
out_bit_depth 32
|
||||
out_valid_bit_depth 32
|
||||
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
|
||||
out_ch_map $CHANNEL_MAP_3_POINT_1
|
||||
}
|
||||
]
|
||||
}
|
||||
Object.Widget.pipeline."1" {
|
||||
core $DMIC_CORE_ID
|
||||
|
|
Loading…
Reference in New Issue