Skip to content

Commit

Permalink
topology2: sof-hda-generic: support BT audio offload
Browse files Browse the repository at this point in the history
Add new pipelines to sof-hda-generic.m4 to support BT audio offload on
SSP2 if INCLUDE_BT_OFFLOAD is true.

Signed-off-by: Brent Lu <[email protected]>
  • Loading branch information
brentlu committed Jul 31, 2024
1 parent c0b0e4c commit a7a1b16
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tools/topology/topology2/sof-hda-generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
<pcm.conf>
<pcm_caps.conf>
<fe_dai.conf>
<ssp.conf>
<intel/hw_config_cardinal_clk.conf>
<hda.conf>
<dmic.conf>
<pdm_config.conf>
Expand All @@ -39,6 +41,7 @@
<common_definitions.conf>
<dmic-default.conf>
<hdmi-default.conf>
<bt-default.conf>
<module-copier.conf>

Define {
Expand All @@ -52,6 +55,15 @@ Define {
DMIC0_DAI_GAIN 'eqiir.12.1'
DMIC0_DAI_EQIIR "highpass_40hz_20db"
DMIC0_PCM_CAPS 'Gain Capture 11'
# override BT default definitions
BT_PB_HOST_PIPELINE_ID 9
BT_PB_DAI_PIPELINE_ID 10
BT_PB_DAI_PIPELINE_SRC "copier.host.9.1"
BT_PB_PIPELINE_STREAM_NAME "dai-copier.SSP.10.1"
BT_ID 8
BT_PCM_ID 8
BT_PCM_NAME "Bluetooth"
INCLUDE_BT_OFFLOAD false
}

# override defaults with platform-specific config
Expand All @@ -72,6 +84,10 @@ IncludeByKey.NUM_DMICS {
"[1-4]" "platform/intel/dmic-generic.conf"
}

IncludeByKey.INCLUDE_BT_OFFLOAD {
"true" "platform/intel/bt-generic.conf"
}

Define {
NUM_HDMIS 3
HDMI1_ID 1
Expand Down

0 comments on commit a7a1b16

Please sign in to comment.