Skip to content

Commit

Permalink
TEST: topology2: bluetooth: Add BT LE 32K Unicast voice support
Browse files Browse the repository at this point in the history
Add BT-LE-32K-MONO playback/capture support.
DSP is master on I2S.

Signed-off-by: Yong Zhi <yong.zhi@intel.com>
  • Loading branch information
yongzhi1 committed Jun 12, 2024
1 parent 3e5d901 commit e6815b1
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 8 deletions.
24 changes: 16 additions & 8 deletions tools/topology/topology2/platform/intel/bt-generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Object.Pipeline {
copier_type "SSP"
stream_name $BT_NAME
node_type $I2S_LINK_OUTPUT_CLASS
num_input_audio_formats 4
num_output_audio_formats 4
num_input_audio_formats 5
num_output_audio_formats 5
num_input_pins 1

CombineArrays.Object.Base.output_audio_format [
Expand All @@ -32,6 +32,7 @@ Object.Pipeline {
out_rate [
8000
16000
32000
]
out_channels [ 1 ]
}
Expand All @@ -52,6 +53,7 @@ Object.Pipeline {
in_rate [
8000
16000
32000
]
in_channels [ 1 ]
}
Expand Down Expand Up @@ -79,14 +81,15 @@ Object.Pipeline {
Object.Widget.host-copier.1 {
stream_name $BT_PB_PCM_CAPS
pcm_id $BT_PCM_ID
num_input_audio_formats 4
num_output_audio_formats 4
num_input_audio_formats 5
num_output_audio_formats 5
CombineArrays.Object.Base.output_audio_format [
# array of 2ch format with range of rates
{
out_rate [
8000
16000
32000
]
out_channels [ 1 ]
}
Expand All @@ -107,6 +110,7 @@ Object.Pipeline {
in_rate [
8000
16000
32000
]
in_channels [ 1 ]
}
Expand Down Expand Up @@ -135,14 +139,15 @@ Object.Pipeline {
Object.Widget.host-copier.1 {
stream_name $BT_CP_PCM_CAPS
pcm_id $BT_PCM_ID
num_input_audio_formats 4
num_output_audio_formats 4
num_input_audio_formats 5
num_output_audio_formats 5
CombineArrays.Object.Base.output_audio_format [
# array of 2ch format with range of rates
{
out_rate [
8000
16000
32000
]
out_channels [ 1 ]
}
Expand All @@ -163,6 +168,7 @@ Object.Pipeline {
in_rate [
8000
16000
32000
]
in_channels [ 1 ]
}
Expand Down Expand Up @@ -196,14 +202,15 @@ Object.Pipeline {
copier_type "SSP"
stream_name $BT_NAME
node_type $I2S_LINK_INPUT_CLASS
num_input_audio_formats 4
num_output_audio_formats 4
num_input_audio_formats 5
num_output_audio_formats 5
CombineArrays.Object.Base.output_audio_format [
# array of 2ch format with range of rates
{
out_rate [
8000
16000
32000
]
out_channels [ 1 ]
}
Expand All @@ -224,6 +231,7 @@ Object.Pipeline {
in_rate [
8000
16000
32000
]
in_channels [ 1 ]
}
Expand Down
17 changes: 17 additions & 0 deletions tools/topology/topology2/platform/intel/bt-ssp-config-lbm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,22 @@ Object.Dai.SSP [
clock_source 1
}
}
Object.Base.hw_config.5 {
id 4
name "BT-LE-32K-MONO"
mclk_freq $BT_MCLK
bclk_freq 512000
tdm_slot_width 16
format "DSP_A"
bclk "codec_consumer"
fsync "codec_consumer"
fsync_freq 32000
tdm_slots 1
tx_slots 1
rx_slots 1
Object.Base.link_config.1 {
clock_source 1
}
}
}
]
17 changes: 17 additions & 0 deletions tools/topology/topology2/platform/intel/bt-ssp-config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,22 @@ Object.Dai.SSP [
clock_source 1
}
}
Object.Base.hw_config.5 {
id 4
name "BT-LE-32K-MONO"
mclk_freq $BT_MCLK
bclk_freq 512000
tdm_slot_width 16
format "DSP_A"
bclk "codec_consumer"
fsync "codec_consumer"
fsync_freq 32000
tdm_slots 1
tx_slots 1
rx_slots 1
Object.Base.link_config.1 {
clock_source 1
}
}
}
]

0 comments on commit e6815b1

Please sign in to comment.