From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81A814D990C for ; Wed, 14 Oct 2026 09:13:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791969235; cv=none; b=YGeEvzJD/CD/s5n6lRH5R03gAlcIY7FnSpmsdB9FtO+bG1NNG0IQ1tk/9oLvwAAkpvZPUA0A6vIck1qma9fmkmVvBkBzKbXDr1TSyQxcR9W7t1r7eIBRgNUaPkfPlvh9MPjZ75+6SCWuBdCrzddFxhKUKc3/Nedxvq54L+ZxVhc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791969235; c=relaxed/simple; bh=WxCivatIRPVzBZsQisoxpngzgdeJTocrTsujIWS0mVs=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=CALJcpL5PVMjqWxt9zgx5XHdCGj1j2puiAn1fQqIK5HotPh7DwwWvHyrhieZIAzsYSpOahQkmkGFkIVq1JxYOkzubk8/3BHOb9a6xz9gfAISk2rWGMBJvrlcCK+tuO5W60yiBjQugOingYxdwN2RmlZYpQYr91dmfxyEdwmqzIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=XZO6bDki; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=iuBT4sNn; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="XZO6bDki"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="iuBT4sNn" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69E67u1e2686042 for ; Wed, 14 Oct 2026 09:13:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=hdVOyqMh7r1r1h93ssUJyh PR+EVkqKi7lHq6bNk3+XM=; b=XZO6bDkikaQmGHRkP5HDtfXvV4C7MJR5zGknWG dbrAXogQLr8L6+6Qyd1is8/2dZwcSFPHVbmPTueA/RADDSmyouAuhwGyU9mU9q9t HVv5aYJnpg8m3wxBgxfE05DFOUTrnJDwPYNDQ76fDY1FeMOSg7dghve3ZRz1cDtn VGdB5ot2tny00K1ShsRmbzua93gc+gyD7AI8nLXI97OxM/3wTQQdBVrvzT87PnOO wlQXAbShDhMORcNhfRQj9DlepZexIp1tspaUDDBkvfznFGVsxDr9FWOtMcMcPgh8 9S0EaVH7zIHbbwM0rZlp41Dy9NM+nkfBJ3O+3NtVLVj1Pspg== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha46u0rfx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 09:13:50 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2e818ca61bfso7832095ad.2 for ; Wed, 14 Oct 2026 02:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1791969230; x=1792574030; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=hdVOyqMh7r1r1h93ssUJyhPR+EVkqKi7lHq6bNk3+XM=; b=iuBT4sNnuYJSL/Uqcx6vkq+YE+Gcfhep8Jyxy0Hj6NJ7LHoMWD8Cb4jbJX1CKofAhC x+lMXWK2fgXNGcArQbZtjxRFLZ2UEtPRRJY/WtF4ziDCWyORR2jJS95wRvQr2dtyMB8J R2/vP4P0x1RffNfUkJNciWsDn5g8xjlUfoIX1A53asjO2yZ7FHkcNjSsPcrxBwNWDWXB oSIzpF3ZFYzBRCorShRG/Tmz5FNV3sOgk+PY9CSTHlpX2ndHC03SgBPo3NCIikUwtj9P 0p0rqsqnpr1k6H5iAsBFktUlj6yW/xn5LxU61Nmt5a2ZYWKmwLlfwh4MJMe81iR4/QTD gNAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791969230; x=1792574030; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=hdVOyqMh7r1r1h93ssUJyhPR+EVkqKi7lHq6bNk3+XM=; b=R45xHfC2EDipiMKMaiMV2A/Ri3G40DUaOHrBasWNP9y1BdzfGWcMrfZXEyxNpYyU/f v8ZN9AiMXOvVJsLx1a1Oh7mr8TWfxfqppXueOSFKYvEpZ0tsAKcS7DtTDjIHoB8mXi4R qn6px6aLqGo69Pg8OewZQlzhcggyrTHrRqsDwbK/NIpezqKKXyOGL6HMYQzJqjqKc7jk aocAm42uz5a1HB8MiKVxx49mL/ZFYWvMaQFoXOKs5ljOg/3Mq+uzaUo8voZXA7DhccWy eOzZo94Bw1hGbl0C+dqEYDnuiiU4CWOWsZgOIY62chwrEShwqkwj8YAfu36aM26VEiJF kz0Q== X-Forwarded-Encrypted: i=1; AKwUvBxaab8w+hmINZEf9E5lo/pPGoYEik68lT0uMBuKrBUeS4SYQk/BGOw76sEx3fqvTc7APwev0cfsXoGbRVk=@vger.kernel.org X-Gm-Message-State: AFq9FYJtl3NLO55ZrHy/YOlmYNO33s9lu1V3PTkCvlFX4UmUGMIwykoc 52dxsP5Yv+Q1YHS0ZPmOHslW8cRh738LSfsG45T1xzO+3Z84/PkUfy8ER7PYNVlzZBHp+ZFLnj4 piEGun7B/4HKD3CiP69aefHGhbU8hV4j6LXVHMfe5rsrxpkNFcVeNl4mugJKhsqAoJSs= X-Gm-Gg: AYBFou1ekpL86jeMSEYcZ3j0Wsa8nYcy4vOKMDIavDUnQi/z4YkqHpitToRi0GVTe+8 eIbAxKWpb0P5R4c5sbnYmkZ1ncLcGdRU6Oa0vHNJD2lFHkRY/6C7Moip/589pWyHAIqznlTBMSQ m3CzHoRgsZBCxOcL7WtKzrJKXuGWbJcsmoM/xBvwg7tutmUe0ElEeUOxYSY5ved6Q14SWOWseCN 33lFTPpNwzeALD96F49cgQXuvsjK/PaBJZb48JgAuok65UwY+cgaEpvj3MBr+14SZGhnQhOonz4 lOqmkqvAnfhUCMoKbw5sd6hDmaMfHfdcvZ4piLnUKmHRSKV895o4opersODVwIBAixu/406blst Oh8LOwQJaycQHpAs079IvITmd7OpIoMYhihc= X-Received: by 2002:a17:903:950:b0:2e6:136e:f264 with SMTP id d9443c01a7336-2e842dfd193mr126549975ad.50.1791969229531; Wed, 14 Oct 2026 02:13:49 -0700 (PDT) X-Received: by 2002:a17:903:950:b0:2e6:136e:f264 with SMTP id d9443c01a7336-2e842dfd193mr126549645ad.50.1791969228964; Wed, 14 Oct 2026 02:13:48 -0700 (PDT) Received: from hu-mohs-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e8421b16b3sm67088595ad.30.2026.10.14.02.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 02:13:47 -0700 (PDT) From: Mohammad Rafi Shaik Subject: [PATCH v5 0/9] ASoC: qcom: Add shikra and Hawi LPASS macro support Date: Wed, 14 Oct 2026 14:42:46 +0530 Message-Id: <20261014-add_shikra_support_v5-v5-0-fb9f0667e613@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAI5Hz2oC/yXMQQqDMBBA0avIrBvQ0NjYqxQJ02RapwUNMyoF8 e5N7fIt/t9ASZgUrtUGQisrT2OBO1UQBxyfZDgVg61t29TN2WBKQQd+CwZdcp5kDqszl4idtc5 77DyUNgs9+HN8b/3futxfFOffDPb9C5pDfhN5AAAA X-Change-ID: 20261014-add_shikra_support_v5-7ca922588a98 To: Srinivas Kandagatla , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai Cc: Mohammad Rafi Shaik , linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Srinivas Kandagatla , Ajay Kumar Nandam , Prasad Kumpatla , Sarath Ganapathiraju X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1791969222; l=6390; i=mohammad.rafi.shaik@oss.qualcomm.com; s=20260424; h=from:subject:message-id; bh=WxCivatIRPVzBZsQisoxpngzgdeJTocrTsujIWS0mVs=; b=izd+QbqLx5AWNxLauoGe/kuX0Z9gXFAGCvaE6CKgIjJGqFAwxBc0+wsa6aivYm4Y51XmhZfOV /5q/ioSUQMwC5iTlWaSC3qw0FF8GBHiwd9EQTszuQdrPF/sxtR514/J X-Developer-Key: i=mohammad.rafi.shaik@oss.qualcomm.com; a=ed25519; pk=KZedmYgMGYOzuTpLG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F5vgAbqM n5KyOQrsoBv8kHqp3CxVMnaOqO93sDE1c+ms9fw7PrDvxjPYdb0V5nuk24sXkbUqlnYR3kL//T1 0/43lDd5zmpF/jr+9LEr2P6tkMSY1eztw89O6zzDiMuQwzUl2AFxnXHnxGmD7Dj7X5veWyoCk93 Ih/cZy5qv79VaCdlRVg== X-Proofpoint-ORIG-GUID: PMKH4Gy9cAq25Uq18Ab7gIOhfcV5C1fO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-09_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 adultscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 suspectscore=0 bulkscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140036 This series adds audio support for two Qualcomm SoC platforms — Shikra and Hawi — by extending the LPASS codec macro drivers for version 4.1 and 4.0 respectively, and by adding SoundWire microphone capture support to the VA macro. Shikra (LPASS codec v4.1) -------------------------- The first part of the series targets the Shikra platform, which integrates LPASS codec version 4.1. This is not backwards-compatible with previously described compatibles, so new DT bindings and standalone compatibles are introduced for the RX and VA macros. Driver changes include version detection enhancements (including a fix for the missing v2.9 version string in the common helper), FS counter bypass programming required before the codec is enabled, and a v4.1 specific regmap configuration covering the additional adaptive filter (ADPT) blocks at 0x0800..0x09a4. SoundWire microphone support (VA macro) ---------------------------------------- The VA decimators previously only supported DMIC inputs. A new patch extends them to accept SoundWire microphone (SMIC) sources as well, updating the ADC_DMIC_SEL mux programming to be resolved at decimator enable time rather than at mixer write time, ensuring correct operation regardless of the order in which userspace restores controls. DMIC- specific HPF programming is skipped when an SMIC source is active. Hawi (LPASS codec v4.0) ------------------------ The final three patches, add support for the Hawi (and Maili) platform which integrates LPASS codec v4.0. While v4.0 shares the same RX and VA macro register layout as the existing v2.5+ path and reuses those helpers, the TX macro is based on Bolero v4.0 — an extension of the v9.x TX macro that adds a port-select stage in the SWR microphone input path and an adaptive filter (ADPT) block. The ADPT block must be disabled before a decimator is enabled; this is gated on a new has_adpt flag in match data since the register does not exist on earlier versions. New DT bindings document the RX, TX and VA macro compatibles for Hawi, noting the clock differences: the RX macro uses the 'lpr' clock rather than 'macro', and the VA macro takes an additional 'heartbeatpulse' clock sourced from the LPASS VA CSR rate generator. Signed-off-by: Mohammad Rafi Shaik --- Changes in v5: - dt-bindings: rx-macro: drop the redundant clocks "minItems" from the shikra conditional, it is already set at the top level suggested by Krzysztof. - va-macro: shikra: do not hardcode the codec version in match data, read it back from the hardware and cross check it against the register layout selected by the compatible, reported by Ajay, Sashiko. - va-macro: SoundWire mic: do not let a write to the DMIC/SMIC mux that is not part of the active path reprogram the shared ADC_DMIC_SEL bit of a running capture, reported by Sashiko. - va-macro: SoundWire mic: clarify that only the HPF zero gate assertion is specific to the DMIC path, in both the commit message and the code as suggested by Ajay. - Add device tree bindings for Maili. - Prevent duplicate registration of TX DECn MUX controls as suggested by Mark. - Add v4.0-specific regmap_config and default register table. - Link to v4: https://lore.kernel.org/all/20260922-add_shikra_support-v1-0-6c6cb6444caf@oss.qualcomm.com/ Changes in v4: - Added three new patches for Hawi / LPASS codec v4.0 support (DT bindings, TX macro Bolero v4.0, RX/VA macro v4.0) - Fixed all issues reported by Sashiko in v3. - Link to v3: https://lore.kernel.org/all/20260917-add_shikra_support-v3-0-fc0e79c341aa@oss.qualcomm.com/ Changes in v3: - Added Shikra-specific clock constraints for RX and VA Macro DT bindings. - Restricted clock and clock-names properties to align with Shikra hardware requirements. - Removed dead code from patch 3 of v2, as suggested by Krzysztof. - Replaced open-coded checks with a flag-based conditional for LPASS codec v4.1 specific configurations. - Reused existing SoundWire microphone widgets, as suggested by Srinivas. - Switched the regmap cache type to REGCACHE_MAPLE. - Link to v2: https://patch.msgid.link/20260910-add_shikra_support-v2-0-fdd2129c696c@oss.qualcomm.com Changes in v2: - Updated FS CONTROL and ADPT only for version 4.1, as suggested by Krzysztof. - Addressed Konrad's review comments from v1 by replacing magic numbers and lower hex reg values where appropriate. - Link to v1: https://patch.msgid.link/20260608172023.2965292-1-mohammad.rafi.shaik@oss.qualcomm.com To: Srinivas Kandagatla To: Liam Girdwood To: Mark Brown To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Jaroslav Kysela To: Takashi Iwai Cc: linux-arm-msm@vger.kernel.org Cc: linux-sound@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Mohammad Rafi Shaik (5): ASoC: dt-bindings: qcom: Add Shikra RX and VA macro codecs ASoC: qcom: lpass-macro-common: Add missing v2.9 version string ASoC: qcom: lpass-rx-macro: Add shikra compatible ASoC: qcom: lpass-va-macro: Add shikra compatible ASoC: qcom: lpass-va-macro: Add SoundWire microphone support Prasad Kumpatla (4): ASoC: dt-bindings: qcom: Add Hawi LPASS macro codecs ASoC: dt-bindings: qcom: Add Maili LPASS macro codecs ASoC: qcom: lpass-tx-macro: Add support for Bolero v4.0 ASoC: qcom: lpass: Add support for LPASS codec v4.0 .../bindings/sound/qcom,lpass-rx-macro.yaml | 39 ++ .../bindings/sound/qcom,lpass-tx-macro.yaml | 23 + .../bindings/sound/qcom,lpass-va-macro.yaml | 40 ++ sound/soc/codecs/lpass-macro-common.h | 9 + sound/soc/codecs/lpass-rx-macro.c | 19 + sound/soc/codecs/lpass-tx-macro.c | 576 ++++++++++++++++++++- sound/soc/codecs/lpass-va-macro.c | 442 +++++++++++++++- 7 files changed, 1122 insertions(+), 26 deletions(-) --- base-commit: 631a161db2c5168dd836242571724baba3561a1f change-id: 20261014-add_shikra_support_v5-7ca922588a98 Best regards, -- Mohammad Rafi Shaik