Skip to content

Commit d04390c

Browse files
committed
topology2: sof-mtl-rt5650: add FMT_24 support
RT5650 need to use 24 bit format due to S32_LE not support. Signed-off-by: Mac Chiang <mac.chiang@intel.com>
1 parent 2752cdf commit d04390c

4 files changed

Lines changed: 49 additions & 4 deletions

File tree

tools/topology/topology2/cavs-mixin-mixout-eqiir-dts-ssp.conf

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,18 @@ Object.Pipeline {
4646
copier_type "SSP"
4747
stream_name "$HEADSET_CODEC_NAME"
4848
node_type $I2S_LINK_OUTPUT_CLASS
49-
}
49+
IncludeByKey.I2S_AMP_FMT_24 {
50+
"true" {
51+
Object.Base.output_audio_format [
52+
{
53+
out_bit_depth 32
54+
out_valid_bit_depth 24
55+
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
56+
}
57+
]
58+
}
59+
}
60+
}
5061

5162
Object.Widget.gain.1 {
5263
Object.Control.mixer.1 {
@@ -76,7 +87,18 @@ Object.Pipeline {
7687
copier_type "SSP"
7788
stream_name "$SPEAKER_CODEC_NAME"
7889
node_type $I2S_LINK_OUTPUT_CLASS
79-
}
90+
IncludeByKey.I2S_AMP_FMT_24 {
91+
"true" {
92+
Object.Base.output_audio_format [
93+
{
94+
out_bit_depth 32
95+
out_valid_bit_depth 24
96+
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
97+
}
98+
]
99+
}
100+
}
101+
}
80102

81103
Object.Widget.gain.1 {
82104
Object.Control.mixer.1 {

tools/topology/topology2/cavs-mixin-mixout-ssp.conf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ Object.Pipeline {
4747
copier_type "SSP"
4848
stream_name "$HEADSET_CODEC_NAME"
4949
node_type $I2S_LINK_OUTPUT_CLASS
50+
IncludeByKey.I2S_AMP_FMT_24 {
51+
"true" {
52+
Object.Base.output_audio_format [
53+
{
54+
out_bit_depth 32
55+
out_valid_bit_depth 24
56+
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
57+
}
58+
]
59+
}
60+
}
5061
}
5162

5263
Object.Widget.gain.1 {
@@ -64,6 +75,17 @@ Object.Pipeline {
6475
copier_type "SSP"
6576
stream_name "$SPEAKER_CODEC_NAME"
6677
node_type $I2S_LINK_OUTPUT_CLASS
78+
IncludeByKey.I2S_AMP_FMT_24 {
79+
"true" {
80+
Object.Base.output_audio_format [
81+
{
82+
out_bit_depth 32
83+
out_valid_bit_depth 24
84+
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
85+
}
86+
]
87+
}
88+
}
6789
}
6890

6991
Object.Widget.gain.1 {

tools/topology/topology2/cavs-rt5682.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Define {
118118
DMIC_PIPELINE_PRIORITY 1
119119
ECHO_REF_PIPELINE_PRIORITY 0
120120
PLAYBACK_PIPELINE_SRC "volume"
121+
I2S_AMP_FMT_24 false
121122
}
122123

123124
# override defaults with platform-specific config

tools/topology/topology2/production/tplg-targets-ace1.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ NHLT_BIN=nhlt-sof-max98357a-rt5682.bin,DEEPBUFFER_FW_DMA_MS=10,HEADSET_SSP_DAI_I
6464
SPEAKER_SSP_DAI_INDEX=0,HEADSET_CODEC_NAME=SSP2-Codec,SPEAKER_CODEC_NAME=SSP0-Codec,\
6565
INCLUDE_ECHO_REF=true,INCLUDE_BT_OFFLOAD=false"
6666

67-
"cavs-rt5682\;sof-mtl-rt5650-dts\;PLATFORM=mtl,NUM_DMICS=4,PDM1_MIC_A_ENABLE=1,\
67+
"cavs-rt5682\;sof-mtl-rt5650\;PLATFORM=mtl,NUM_DMICS=4,PDM1_MIC_A_ENABLE=1,\
6868
PDM1_MIC_B_ENABLE=1,DMIC0_PCM_ID=99,PREPROCESS_PLUGINS=nhlt,\
6969
NHLT_BIN=nhlt-sof-mtl-max98357a-rt5682.bin,DEEPBUFFER_FW_DMA_MS=10,HEADSET_SSP_DAI_INDEX=2,\
7070
SPK_ID=6,SPEAKER_SSP_DAI_INDEX=0,HEADSET_CODEC_NAME=SSP2-Codec,SPEAKER_CODEC_NAME=SSP0-Codec,\
7171
BT_NAME=SSP1-BT,BT_INDEX=1,BT_ID=7,BT_PCM_NAME=Bluetooth,INCLUDE_ECHO_REF=true,USE_CHAIN_DMA=true,\
72-
GOOGLE_RTC_AEC_SUPPORT=1,DEEP_BUF_SPK=true,PLAYBACK_PIPELINE_SRC=dts"
72+
GOOGLE_RTC_AEC_SUPPORT=1,DEEP_BUF_SPK=true,I2S_AMP_FMT_24=true"
7373

7474
#ES83x6+HDMI-IN
7575
"cavs-es83x6\;sof-mtl-es83x6-ssp1-hdmi-ssp02\;PLATFORM=mtl,PREPROCESS_PLUGINS=nhlt,\

0 commit comments

Comments
 (0)