Skip to content

Commit

Permalink
Revert "HACK: To test 16KHz 24 bit capture"
Browse files Browse the repository at this point in the history
This reverts commit 5c6037d7913b969c81783f1a79347681ee8a09c8.
  • Loading branch information
bardliao committed Jan 26, 2024
1 parent 97be1c4 commit d813fb5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 37 deletions.
2 changes: 1 addition & 1 deletion tools/topology/topology2/include/common/pcm_caps.conf
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Class.PCM."pcm_caps" {

# Default attribute values for PCM capabilities
formats "S32_LE,S24_LE,S16_LE"
rate_min 16000
rate_min 48000
rate_max 48000
periods_min 2
periods_max 16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,9 @@ Class.Pipeline."host-gateway-capture" {
}
{
in_bit_depth 32
in_valid_bit_depth 24
in_valid_bit_depth 32
in_channels 4
in_rate 16000
in_sample_type $SAMPLE_TYPE_MSB_INTEGER
in_fmt_cfg "$[($in_channels | ($in_valid_bit_depth * 256))]"
in_ch_cfg $CHANNEL_CONFIG_MONO
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
in_ch_map $CHANNEL_MAP_3_POINT_1
}
]
Expand All @@ -80,30 +77,21 @@ Class.Pipeline."host-gateway-capture" {
out_bit_depth 32
out_valid_bit_depth 24
out_channels 4
out_rate 16000
out_sample_type $SAMPLE_TYPE_MSB_INTEGER
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
out_ch_cfg $CHANNEL_CONFIG_MONO
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
out_ch_map $CHANNEL_MAP_3_POINT_1
}
{
out_bit_depth 32
out_valid_bit_depth 32
out_channels 4
out_rate 16000
out_sample_type $SAMPLE_TYPE_MSB_INTEGER
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
out_ch_cfg $CHANNEL_CONFIG_MONO
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
out_ch_map $CHANNEL_MAP_3_POINT_1
}
{
out_bit_depth 16
out_valid_bit_depth 16
out_channels 4
out_rate 16000
out_sample_type $SAMPLE_TYPE_MSB_INTEGER
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
out_ch_cfg $CHANNEL_CONFIG_MONO
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
out_ch_map $CHANNEL_MAP_3_POINT_1
}
]
Expand Down
26 changes: 10 additions & 16 deletions tools/topology/topology2/platform/intel/sdw-amp-generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ IncludeByKey.NUM_SDW_AMP_LINKS {
Object.Base.input_audio_format [
{
in_bit_depth 32
in_valid_bit_depth 24
in_valid_bit_depth 32
in_sample_type $SAMPLE_TYPE_MSB_INTEGER
in_fmt_cfg "$[($in_channels | ($in_valid_bit_depth * 256))]"
}
Expand Down Expand Up @@ -293,7 +293,7 @@ IncludeByKey.NUM_SDW_AMP_LINKS {
Object.Base.output_audio_format [
{
out_bit_depth 32
out_valid_bit_depth 24
out_valid_bit_depth 32
out_sample_type $SAMPLE_TYPE_MSB_INTEGER
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
}
Expand Down Expand Up @@ -409,7 +409,7 @@ IncludeByKey.SDW_AMP_FEEDBACK {
direction "capture"
name $SDW_SPK_IN_STREAM
default_hw_conf_id 1
rate 16000
rate 48000
channels 2

Object.Base.hw_config.1 {
Expand Down Expand Up @@ -449,21 +449,17 @@ IncludeByKey.SDW_AMP_FEEDBACK {
{
in_channels 4
in_bit_depth 32
in_valid_bit_depth 24
in_rate 16000
in_ch_cfg $CHANNEL_CONFIG_MONO
in_valid_bit_depth 32
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
in_ch_map $CHANNEL_MAP_3_POINT_1
in_sample_type $SAMPLE_TYPE_MSB_INTEGER
in_fmt_cfg "$[($in_channels | ($in_valid_bit_depth * 256))]"
}
]
Object.Base.output_audio_format [
{
out_channels 4
out_bit_depth 32
out_valid_bit_depth 24
out_rate 16000
out_ch_cfg $CHANNEL_CONFIG_MONO
out_valid_bit_depth 32
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
out_ch_map $CHANNEL_MAP_3_POINT_1
out_sample_type $SAMPLE_TYPE_MSB_INTEGER
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
Expand All @@ -475,17 +471,15 @@ IncludeByKey.SDW_AMP_FEEDBACK {
Object.Base.input_audio_format [
{
in_bit_depth 32
in_valid_bit_depth 24
in_rate 16000
in_valid_bit_depth 32
in_sample_type $SAMPLE_TYPE_MSB_INTEGER
in_fmt_cfg "$[($in_channels | ($in_valid_bit_depth * 256))]"
}
]
Object.Base.output_audio_format [
{
out_bit_depth 32
out_valid_bit_depth 24
out_rate 16000
out_valid_bit_depth 32
out_sample_type $SAMPLE_TYPE_MSB_INTEGER
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
}
Expand Down Expand Up @@ -514,7 +508,7 @@ IncludeByKey.SDW_AMP_FEEDBACK {

Object.PCM.pcm_caps.1 {
name "amp feedback"
formats 'S16_LE,S24_LE,S32_LE'
formats 'S16_LE,S32_LE'
channels_min $AMP_FEEDBACK_CH
channels_max $AMP_FEEDBACK_CH
}
Expand Down
5 changes: 2 additions & 3 deletions tools/topology/topology2/production/tplg-targets-ace2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ list(APPEND TPLGS
DMIC0_ID=2,DMIC1_ID=3,NUM_HDMIS=0,PREPROCESS_PLUGINS=nhlt,NHLT_BIN=nhlt-sof-lnl-rt711-4ch.bin"

"cavs-sdw\;sof-lnl-rt711-l0-rt1316-l23-rt714-l1\;PLATFORM=lnl,NUM_SDW_AMP_LINKS=2,SDW_DMIC=1,\
NUM_HDMIS=0,SDW_SPK_STREAM=SDW2-Playback,SDW_SPK_IN_STREAM=SDW2-Capture,SDW_DMIC_STREAM=SDW1-Capture,\
PASSTHROUGH=true,SDW_AMP_FMT_24=true"
NUM_HDMIS=0,SDW_SPK_STREAM=SDW2-Playback,SDW_SPK_IN_STREAM=SDW2-Capture,SDW_DMIC_STREAM=SDW1-Capture"

"cavs-sdw\;sof-lnl-rt712-l2-rt1712-l3\;PLATFORM=lnl,SDW_DMIC=1,NUM_HDMIS=0,NUM_SDW_AMP_LINKS=1,\
SDW_AMP_FEEDBACK=false,SDW_SPK_STREAM=Playback-SmartAmp,SDW_DMIC_STREAM=Capture-SmartMic,\
SDW_JACK_OUT_STREAM=Playback-SimpleJack,SDW_JACK_IN_STREAM=Capture-SimpleJack,PASSTHROUGH=true"
SDW_JACK_OUT_STREAM=Playback-SimpleJack,SDW_JACK_IN_STREAM=Capture-SimpleJack"

"cavs-sdw\;sof-lnl-rt722-l0\;PLATFORM=lnl,SDW_DMIC=1,NUM_HDMIS=0,NUM_SDW_AMP_LINKS=1,\
SDW_AMP_FEEDBACK=false,SDW_SPK_STREAM=Playback-SmartAmp,SDW_DMIC_STREAM=Capture-SmartMic,\
Expand Down

0 comments on commit d813fb5

Please sign in to comment.