From a7a1b16890b01569405299b3cf1c73760bdd0d79 Mon Sep 17 00:00:00 2001 From: Brent Lu Date: Tue, 9 Jul 2024 16:54:40 +0800 Subject: [PATCH] topology2: sof-hda-generic: support BT audio offload 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 --- tools/topology/topology2/sof-hda-generic.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/topology/topology2/sof-hda-generic.conf b/tools/topology/topology2/sof-hda-generic.conf index aa547af25a50..8a20ae55109c 100644 --- a/tools/topology/topology2/sof-hda-generic.conf +++ b/tools/topology/topology2/sof-hda-generic.conf @@ -30,6 +30,8 @@ + + @@ -39,6 +41,7 @@ + Define { @@ -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 @@ -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