From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796107901; b=3JWkRLJ5Y5LsAbLdw4OLyBXSY1u1XtPgtYcqP15zW2L4yt9EQBgGcW3K0OprwjMGhnoQ z5g4LdDk5dbiBgn9gInIYcgWg2msaxZ3R/ohyc3EN2RjHTMA/myZ7iRfD7g1vtgAjxDia RPpdbwYSpV49UkUBbCiu5cc2UFhZuUhzdLWx+QDDKi/gRBXZkwZ8lb5Cz+xxp8KY+ua3e izPDuJJr20n2sAJ1rnPKgpdjxohbLrHNyoKktoSFDl6z3qICsAqz8dlHLVqHmN95JKjKL Nnbym7bmtvDKtqEta75tdfF4iuuUTbR0elGA50E8y08Z4tLlNjynbr6FXljl5mFMTAQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796107901; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Info:X-Authority-Analysis: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=DZytAmWuBmwE4sduRFGKJ67TFWeHc49rfUiewvac2tQ=; b=mJS/iEpYfrZ0g0DvC0Y2BBRje7PovG4ZvQbLPUuA35SZX9Kyuv0TSNFE6HMefreG0zGb bAB9E7XMqQUAGvAlqgjC8/pbmxqLtB8sfIowKlY9HJZg4dMqO5eAL1VQApTLPdZ/H5f9k vmAxZFVW85EF96QLRDe/9lVEsn+/dQCD3lRkWCdUubZ3YqiGVsRsphFeQDlKFnWa8RSA+ LE5xLwcZPpHwm5EpwMp9Z/9x2MKZvvpO6o9SXgliPjN6hoDTwE0pGG6aUrXp4RgOMXmrD 8OVj126JHzG1h5Tpe9Etle9CZqiaedLH5/FY3Ke1Iq9E2EXeMXVSfHzXqNHTfSEwhUQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=PrAwdLbr; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=eDOfeQXx; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45ED8606A696 for ; Tue, 1 Dec 2026 06:51:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 45ED8606A696 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=PrAwdLbr; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=eDOfeQXx Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B16nUss1232527 for ; Tue, 1 Dec 2026 06:51:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= DZytAmWuBmwE4sduRFGKJ67TFWeHc49rfUiewvac2tQ=; b=PrAwdLbr5spqrkB7 FkjDnDJv5kS0ZBY5d99GGLLbQ47pUjPyKqehzmoI8CCdifpBIlWzQcCwYclPYN/s lEAZf9LLZep1cCIHzJLvPhVHo1fsvTfruCci/mmKcoUyEpTbnNw+j5lrxax31Pr2 uc3+u5ceEQFCaYNmffzxk7J/2vPLVTtkwJ/UHkLChQtsXpWJvUEkf/GXxqUQZmGm 2blXyydrN5Yxrk4w2JQmqa2jwZRmGI6Sq08bzo4ACKxXhd3du+bvVkAqUnt0qX/o UTUoWRWq4HOTGLmh8wiO97/TgV3anhyBdvFG4QukyY5VvT31Mu0lYKJhki4eSGd1 jKwtMw== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9sadg0cg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 06:51:36 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2f0a5868265so79746135ad.1 for ; Mon, 30 Nov 2026 22:51:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796107896; x=1796712696; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=DZytAmWuBmwE4sduRFGKJ67TFWeHc49rfUiewvac2tQ=; b=eDOfeQXxyna8WodwKrhFMPznSH3WYTlEL6zZ78QGsjZECUKx13y8Mp5wHIf0llD62L Bu+xDqelyD0BqXXp0crPTfoop1NXSgBmozMPzQTc3tyKKGNmSWQCmSIC4h516T57JbWw 8J4L5Z7rqSu1m4Ez7KRtwldK30rkTs5BV6OCvyBPu3TA2HCqAMX4drTqkYD40bh7jsxc 3AkdrQAiQumuRMy3ZDIgi08xBcWZr4uM5zw+JEETe0ILzQDyKPfoPJYRwbX30sBkdbSf i1CAqfoyKXwbBRzSEGKMZUPV21Gq6t3EbrJ6Cld5+DnfFmJrjmFHys65gmvlKOm6Mdni APfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796107896; x=1796712696; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=DZytAmWuBmwE4sduRFGKJ67TFWeHc49rfUiewvac2tQ=; b=zaWtP8WinWWmT3EifH2TdzY3+VY34tszl4nKEE+cm6cC2PMFxHIF2B5z4PktwZCy8H zuqKUU4f/HlTE0duLRQDXMyPmtPnWqt0lSiZW5+v/mFqxdR9WbZxyS4vIsZ4n9y0rdqS rjS4ON7bidUJhGb6c5CaCXkmukAk/mTHDP7zTCO4uoaFcLAgtCoqxqBh0kLmMGRm3dLo oTmqYDZgU9zIjD0lX1BU0g0olatq5Q+MdI2inJ4L/A6MfPBoXaEBKUDdldNGepKNxKQD DO9Gln24wI7/fm2ZfzRSoFOa1iSId4iUwbnfcPZ1Wp9meHcnUeWdMibPjU81KAL+NANq HQpw== X-Forwarded-Encrypted: i=1; AL+hErG35Pl4GuOoCpBmUKbrs4I/G9J2PEltP9kyaS17IfEVDalolpia8mjFJFXFnu5k5O44nUEzdU+OFfn7M5g=@vger.kernel.org X-Gm-Message-State: APuU4Z/CnbFKVhAXViOLDUprdlSQQhqinOTN88IAEZBEmxcRc4/3r5JP lswhZxqhmsF/uaftTRLCSeU393MpztzKA3nhjBoz7NBz3/MB7ferO7NEqObAGAogSdFRvlMu+jv EIBAvZgSKiqeRFPHX9MR1ZDfirUYoTkDiedglaOOEZQaP5xZQGpNbORqsM+CS9HtVVjHX1f83hu s= X-Gm-Gg: AZFdTZeq+A70oTcmCpe49M7XRdX/uXkj6oBcTvMpIeECL8KIuTnpK/rYG406meM0j5n ZYhkjH0vVADGPle43Qe10gAw86TitmKHNd4Ffn5TGkl2etFm1DWORI1PpM2csim9PZs3QnZDM3k SE+kLsRI1FxjgfpiEtwHcbWIYq6rCtErkpGXvXHF1KP5xSlS88CcnPs63wjGWKfbRfEVgkADv05 +lSYzGHs5ub+MQtghD6SgHHaRUl3lumJ4RSvyUmXnyXwKFFtYLOHo5KISa+HZHgeqnX5pXGKWFz Dy1jQLyqNDyHcoZH8GHPKwwWSVaWVB8PY50NE2+/ecE/uVyU3gCJXWhbUu7xf8lRqMpAyBzjR2t V8GCIqoOMFjiqmEXR3msFaS+ZlkJgsSdhBgxwaVhV7pVLiKhzeG85spKJ/YlVOiWAzVSx8GAfVQ == X-Received: by 2002:a17:902:fc84:b0:2f0:3c38:914f with SMTP id d9443c01a7336-2f03f2363aemr362500345ad.45.1796107895725; Mon, 30 Nov 2026 22:51:35 -0800 (PST) X-Received: by 2002:a17:902:fc84:b0:2f0:3c38:914f with SMTP id d9443c01a7336-2f03f2363aemr362500255ad.45.1796107895209; Mon, 30 Nov 2026 22:51:35 -0800 (PST) Received: from [10.218.32.149] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f0b58fce71sm124730335ad.45.2026.11.30.22.51.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2026 22:51:34 -0800 (PST) Message-ID: <6dcce1bc-919b-40fc-aa1b-92b9eaac63bc@oss.qualcomm.com> Date: Tue, 1 Dec 2026 12:21:27 +0530 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 0/9] ASoC: qcom: Add shikra and Hawi LPASS macro support To: Mohammad Rafi Shaik , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Krzysztof Kozlowski Cc: linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Krzysztof Kozlowski , Ajay Kumar Nandam , Prasad Kumpatla , Sarath Ganapathiraju References: <20261201-add_shikra_support-v8-0-5e56d0ad3810@oss.qualcomm.com> Content-Language: en-US From: Ravi Hothi In-Reply-To: <20261201-add_shikra_support-v8-0-5e56d0ad3810@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: gxXb8YDbxsaiMn0Mlg9353oZ00lnk8IM X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAyNiBTYWx0ZWRfX6bn9l7XZkgKy if2KPtim8rM+AGph/6U1JAKdKZ+rCXvndO+fqA1H7XtwFwWewprJ2VdTMMPl7AUPdPa/bAb2Cl/ 6tdjV7P+aWmOz9lmlU56bd9qqDWNBa/9PoQ9gv4s5jzXsMSd82Z5VIAfiStGHV1+gDalG4exjJ9 XWERNgUff0O/GR0k2JKKVXaQTUOhFI+etTYN9LTPwmWhdMoF0L5SxrT1dKMbsUM3eB+OjLSXzQZ 2PNo5Qj+0vBhlgw4B1lEZ66Zld+wPR2hgr/DwpL29ShrD+pLuOvJQyWvMWPiQmSbgRUAjp0DzKa ZAL9woRJtZnypKB0/Fb7WIHokQPvTaSNrYKHunkPM+2o5mqOsWqGhDHvInNLtEnLueKGqeopiES tWHQ511Q0rB8y2RXVldXu92NX0jFKdl8DiCUhhAF80rwYD1a8sI8cuhL6qJBOYDQ/3EHm6GkAjB e7eLp7347O8B6QNCqdA== X-Proofpoint-ORIG-GUID: gxXb8YDbxsaiMn0Mlg9353oZ00lnk8IM X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAyNiBTYWx0ZWRfXzwkZ3oK5skCN Rwg937ZsFNYDCXhieOjj96AcKYAKPRj0rUqIgjIgLz/h1IUKUZXPKNKYbPprkQV29g2n8ii3cVc UXuFte5JZIUL1R9SrVfUrAo/CsIN3cQ= X-Authority-Analysis: v=2.4 cv=SpUFe/O0 c=1 sm=1 tr=0 ts=6b0e6e78 cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=bC-a23v3AAAA:8 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=iox4zFpeAAAA:8 a=JBpPHGQ_e1OOPONcFW0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1OuFwYUASf3TG4hYMiVC:22 a=FO4_E8m0qiDe52t0p3_H:22 a=WzC6qhA0u3u7Ye7llzcV:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_01,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 phishscore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010026 On 12/1/2026 3:03 AM, Mohammad Rafi Shaik wrote: > This series adds audio support for two Qualcomm SoC platforms — Shikra > and Hawi — by extending the LPASS codec macro drivers for version 4.0, > and by adding SoundWire microphone capture support to the VA macro. > > Shikra (LPASS codec v4.0) > -------------------------- > The first part of the series targets the Shikra platform, which > integrates LPASS codec version 4.0. 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.0 > 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 is based on the Bolero 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 Thanks for the Patch. Tested on shikra-cqm-evk board, Working as expected. LGTM, Reviewed-by: Ravi Hothi Tested-by: Ravi Hothi > --- > Changes in v8: > - Enable the VA macro heartbeat pulse and the RX/VA macro LPR clocks on Hawi. > - Fixed the issues reported on Sashiko. > - Link to v7: https://patch.msgid.link/20261123-add_shikra_support-v7-0-7bf3aa089fc6@oss.qualcomm.com > > Changes in v7: > - Fixed the register mask to use the correct value, as reported by Mark. > - Dropped v4.1, as Hawi and Shikra both use v4.0 with the required > board-specific configurations. > - Handle FS control and ADPT control through board-specific data while > sharing the same v4.0 version. > - Link to v6: https://patch.msgid.link/20261106-add_shikra_support-v6-0-2cda302237cc@oss.qualcomm.com > > Changes in v6: > - Clarify the LPR vote naming and document why Hawi uses a standalone > compatible instead of the SM8550 fallback. > - Reorder the Maili/Hawi fallback before the SM8550 fallback. > - Link to v5: https://lore.kernel.org/all/20261014-add_shikra_support_v5-v5-0-fb9f0667e613@oss.qualcomm.com/ > > 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 registerlayout > 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 > To: Krzysztof Kozlowski > Cc: linux-sound@vger.kernel.org > Cc: linux-arm-msm@vger.kernel.org > Cc: devicetree@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: Srinivas Kandagatla > > --- > 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 Hawi > ASoC: qcom: lpass: Add support for Hawi > > .../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 | 8 + > sound/soc/codecs/lpass-rx-macro.c | 29 + > sound/soc/codecs/lpass-tx-macro.c | 586 ++++++++++++++++++++- > sound/soc/codecs/lpass-va-macro.c | 473 ++++++++++++++++- > 7 files changed, 1165 insertions(+), 33 deletions(-) > --- > base-commit: 8cb402ec2c746f32b17e1aab14e900e7e45cb025 > change-id: 20261106-add_shikra_support-d4baa39f4442 > > Best regards, > -- > Mohammad Rafi Shaik > >