From 65052242d6a2532df22f461a72afde860a3db31b Mon Sep 17 00:00:00 2001 From: DineshKumar Kalva Date: Tue, 17 Nov 2026 13:32:22 +0530 Subject: [PATCH] tools: topology: use volume/switch capture pipeline for ACP PDM The ACP PDM capture pipeline (PCM 3, pipeline 6) used pipe-passthrough-capture.m4, which exposes no capture controls. Switch it to pipe-volume-switch-capture.m4 so the topology exposes " Master Capture Volume" and " Master Capture Switch" (for pipeline 6: "PGA6.0 6 Master Capture Switch" on the card). The capture volume uses the existing 80-step TLV (-50 dB to +30 dB). Signed-off-by: DineshKumar Kalva --- tools/topology/topology1/sof-acp_7_x_sdw_pdm.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/topology/topology1/sof-acp_7_x_sdw_pdm.m4 b/tools/topology/topology1/sof-acp_7_x_sdw_pdm.m4 index 1ade5d55be45..f837c593ea4a 100644 --- a/tools/topology/topology1/sof-acp_7_x_sdw_pdm.m4 +++ b/tools/topology/topology1/sof-acp_7_x_sdw_pdm.m4 @@ -101,7 +101,10 @@ PCM_PLAYBACK_ADD(ACP-SW0-PIN4-Playback-SPK, 2, PIPELINE_PCM_2) #/**********************************************************************************/ # Capture pipeline 6 on PCM 3 using max 2 channels of s32le. # DAI index PDM_INDEX (0 = PDM0, 1 = PDM1), BE acp-dmic-codec, DAI link id 5. -PIPELINE_PCM_ADD(sof/pipe-passthrough-capture.m4, +# Uses the volume/switch pipeline so the "Master Capture Switch" kcontrol can +# mute the PDM capture stream from user-space (amixer) without stopping the +# DMA, avoiding boot/transient noise being recorded. +PIPELINE_PCM_ADD(sof/pipe-volume-switch-capture.m4, 6, 3, 2, s32le, 2000, 0, 0, PDM_RATE, PDM_RATE, PDM_RATE)