From 0171d409a8509341aeea8d3b9ce10ee7dd392bde Mon Sep 17 00:00:00 2001 From: Brent Lu Date: Wed, 31 Jul 2024 11:26:02 +0800 Subject: [PATCH] topology1: sof-hda-generic: support BT audio offload Add new pipelines to sof-hda-generic.m4 to support BT audio offload on SSP2 if BT_OFFLOAD is defined in makefile. Signed-off-by: Brent Lu (cherry picked from commit 307ddc7fa185359795d32e7f445b12882a1a3375) --- tools/topology/topology1/sof-hda-generic.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/topology/topology1/sof-hda-generic.m4 b/tools/topology/topology1/sof-hda-generic.m4 index bc9b1fe23089..cdd29df1d7d0 100644 --- a/tools/topology/topology1/sof-hda-generic.m4 +++ b/tools/topology/topology1/sof-hda-generic.m4 @@ -37,6 +37,15 @@ include(`platform/intel/intel-generic-dmic.m4') ' ) +ifdef(`BT_OFFLOAD', ` +# BT offload support +define(`BT_PIPELINE_PB_ID', `12') +define(`BT_PIPELINE_CP_ID', `13') +define(`BT_DAI_LINK_ID', 8) +define(`BT_PCM_ID', `8') +define(`HW_CONFIG_ID', 8) +include(`platform/intel/intel-generic-bt.m4')') + # The pipeline naming notation is pipe-mixer-PROCESSING-dai-DIRECTION.m4 # HSPROC is set by makefile, if not the default above is applied define(PIPE_HEADSET_PLAYBACK, `sof/pipe-mixer-`HSPROC'-dai-playback.m4')