From 8c7b744ee0d3ecb40b12d3f089f23e83712e6e6f Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Tue, 16 Jul 2024 17:29:52 +0200 Subject: [PATCH] topology2: add basic definitions for PTL Start moving SoundWire topologies from the shadows into main... We generate a single topology for RT722-based skews since the link information is not used in the matching with the machine driver dailinks. The same topology can be used for link0 or link3 setups. Signed-off-by: Pierre-Louis Bossart --- tools/topology/topology2/cavs-sdw.conf | 1 + tools/topology/topology2/platform/intel/ptl.conf | 6 ++++++ tools/topology/topology2/production/CMakeLists.txt | 1 + .../topology2/production/tplg-targets-ace3.cmake | 10 ++++++++++ 4 files changed, 18 insertions(+) create mode 100644 tools/topology/topology2/platform/intel/ptl.conf create mode 100644 tools/topology/topology2/production/tplg-targets-ace3.cmake diff --git a/tools/topology/topology2/cavs-sdw.conf b/tools/topology/topology2/cavs-sdw.conf index 12215b7cdb17..010c1b333496 100644 --- a/tools/topology/topology2/cavs-sdw.conf +++ b/tools/topology/topology2/cavs-sdw.conf @@ -85,6 +85,7 @@ Define { IncludeByKey.PLATFORM { "mtl" "platform/intel/mtl.conf" "lnl" "platform/intel/lnl.conf" + "ptl" "platform/intel/ptl.conf" } IncludeByKey.ADD_BT { diff --git a/tools/topology/topology2/platform/intel/ptl.conf b/tools/topology/topology2/platform/intel/ptl.conf new file mode 100644 index 000000000000..69d5d4f976f0 --- /dev/null +++ b/tools/topology/topology2/platform/intel/ptl.conf @@ -0,0 +1,6 @@ +# PTL-specific variable definitions +Define { + DMIC_DRIVER_VERSION 5 + SSP_BLOB_VERSION 0x300 + NUM_HDMIS 3 +} diff --git a/tools/topology/topology2/production/CMakeLists.txt b/tools/topology/topology2/production/CMakeLists.txt index 3d1d39d7eb2d..c278e651af99 100644 --- a/tools/topology/topology2/production/CMakeLists.txt +++ b/tools/topology/topology2/production/CMakeLists.txt @@ -4,6 +4,7 @@ include(tplg-targets-hda-generic.cmake) include(tplg-targets-cavs25.cmake) include(tplg-targets-ace1.cmake) include(tplg-targets-ace2.cmake) +include(tplg-targets-ace3.cmake) include(tplg-targets-imx8.cmake) add_custom_target(topology2_prod) diff --git a/tools/topology/topology2/production/tplg-targets-ace3.cmake b/tools/topology/topology2/production/tplg-targets-ace3.cmake new file mode 100644 index 000000000000..b4f1d8d43c75 --- /dev/null +++ b/tools/topology/topology2/production/tplg-targets-ace3.cmake @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: BSD-3-Clause + +# Array of "input-file-name;output-file-name;comma separated pre-processor variables" +list(APPEND TPLGS +# SDW topology for PTL RVP +"cavs-sdw\;sof-ptl-rt722\;PLATFORM=ptl,SDW_DMIC=1,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" + +)