From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796147912; b=n7o/6sTFTlBYFwDK2BGrr50DciqruHvxVexUGlNljprgZHsOxxiaBN5Ss4Zr4JP6uw1O dS8fX+tkMTBkELzWK8c+/3ZHfIM5JHAnbgz1p5Wi8GJ/UpnJXIzzrNKE1s71v/5s1Yjc7 hSfuzz4iA3MIkCU4pzETCq0JBrH978ccl2rEmOjcQSv4XKLHxshZWmCxNBZvmt/VBwz7I nGBaVFBNAquI5K74o/fLqJ6tQ5qHAEuOqyxjoehGXZJjq/GD3UB2tRqymMv62Gd9Ih4by xtO8XbZoQR//kMh6spVjCshwI1De8eHUPFaqjCWDOhAgPGsqsjIJZohmfeereZdq72A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796147912; 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-Spam-Details-Enc: X-Authority-Analysis:X-Proofpoint-Spam-Info:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=HanklDh0FxWShynamLjKjKmCdQ+FEgmvoEvlJNxEsn0=; b=STLib9fAeNb4bRKbKP7ToI/BvbEuX9Qy/eqPd5qjkTEnO629UFXzTFuOeK+P2inSNW9o E8qIYGDJoJMUzwRijLD43E7mHri8Dh5jX+BELVyr6cSBOqfc2qvFiFCCBkZTHkcnIWysK Y/HDf2kZgjL5KxLlHdDbmFeawdU0mTbcJmnEujmzjJKUYsvRYCzSzr9IP+y0kZ9CrJQeM 5LkTvSPMMuhOyx1QbVGDnOXKTPTNbQ31vjEgE3ign0JUoc6e4ywiBg/EvLqk1UVDGO1qV /HcCZiDujdo9Kj6T65I9dBL8uNjFq6+yjfTcNiwg2QmsvDiAjReu6Fq1Mq8SyNZKySg== 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=pwYgYqdr; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=gGKa12Di; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 E3187606A329 for ; Tue, 1 Dec 2026 17:58:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E3187606A329 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=pwYgYqdr; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=gGKa12Di Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B1F7wui2102907 for ; Tue, 1 Dec 2026 17:58:31 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= HanklDh0FxWShynamLjKjKmCdQ+FEgmvoEvlJNxEsn0=; b=pwYgYqdrQ5ym14R5 +S5IF9VFo+o7VWn6DTzuKZzmGwHew2O/QYm83i4MK/QaOpD4PS7lJUI8Wjh73pvP 0ne+CdG8eAkvQBsIiOPE+DizzzBs+N2A7doeZKNvM+XgVDgsPbu/AWsfDvLw+qr0 4ES3LaUsSjB9XVZ+4sxDv0ebL1WgCcoanY+4IVX9hali60DqjT4hNBoM+zuSEMua NoG0YQkSU0AmfSOsf4tWZJxRAbFQrtMAx8gRGGPRLnbAIAa1nV6bXD4xRge1I+Eh E1VbRylJzIjqvoFI24ae9L5edvXvdWgh3WfRwgvvu+QvLWn22/GNAVsrg2fUhfB5 gp6I3g== Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9qn4u9y3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 17:58:30 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-33713e5e6daso17800154eec.0 for ; Tue, 01 Dec 2026 09:58:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796147910; x=1796752710; 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=HanklDh0FxWShynamLjKjKmCdQ+FEgmvoEvlJNxEsn0=; b=gGKa12Di0KTh3Kum6837vT1OpfZhopTuDHLi63pAMLY3h4Xzb5+5aPC1gaSCe4g/2e AF7nMNM92WgiIqZg7HjthQ8+vyP8fwStokTJs4KV9f0DVJOtYlet0Uf76znYGGJnLjj5 Ks2BtBt1MAxVfVtAjwh/JX5WLXaRjwixxxfjm/bNlRBf9pWOHnPec636He8JQjoiZkDe 1smcxqgmcoF6HGr9jjvAyh5+iv5lH8yUI/4pXW6YoY6DW1ENWD9g9f6TuDl84rq6zV/9 xsBJ6zzw7+CsX+wQPLG+c6MsLjx/Lci7AJ2OoGAoMsO+8eKbN6Zmjmqq+CYhkIeYi3Nh 54Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796147910; x=1796752710; 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=HanklDh0FxWShynamLjKjKmCdQ+FEgmvoEvlJNxEsn0=; b=OuVwlmxNLkqgpk/y9YkLWAKowD/03tlxsSxm/zU6R3sH4OGefxIOMe0qp/Pff5xOoW HfJdo0RP/EkBExKCxTvp4rNLMO84QJyx8N4OEvhrsIxszWqSSLpd205O0imHmGHVq8g0 eFDGNLibwaeBdNalu+hlLBkFqi9kWe1J5MyRk36K8OQ1Fummq4W1FZeBLFsfHi8qKCeF Xe341qpavz/+62RgCC9qOGUTeQ19BxYKtesMjFIxX9oyMbC0xFmcHMcYgCFKAt5THDUB hwmL5ASViX6ew/Uq2SjCvFVSW+WHW3cy4lEqAWAGRopugFyiSAhxcg44jerZgQiu4tNJ Kvng== X-Forwarded-Encrypted: i=1; AL+hErGLvP+aYrFrMlPOrwafPBWlGYGc+kL9O0GCl5xe8m4rKvv5UNsVYv4KhiTfByQXYbImRFsGPUPbQHxYqMw=@vger.kernel.org X-Gm-Message-State: APuU4Z99XxLbB+5t5ZFAR7R89sOvdKEXVpW0tFNhgcaBqtv4eAwGoMSx ffe/RQTZ43KUxm3vpFPXIRmmKXaK16ZZbc/kylGsSnhhsroEqzlC3m7PTc80RqvtfYlL8p+dxRi CZa6MSa7OqKsmdkVV756MNTIoqDrOxsZiwU1xcO4nPbyXHP+lUFjm5M81ikioWgpzkDI= X-Gm-Gg: AZFdTZeratmefKhLIUGhajj+jAxCCB3TEEmg+LZLF2F5boe2M1eMa3uYtI1UnUOdpxl kEpSGj5Hln0pNLtKjVstUMV7ADYG6KbS/4dku3BncKtJAQLYkVCEUO14i1MMRi6vO+IHDy/WD1I amZFth3X8kV3G3llt5wrh++UYI85OWtaBofEwwgagTdPac06znUJvz4Gn3UpEGvdkz5/2QaS8FT uWGuGRcd83mcnCehxLhNZEylVThF8FkswyXWomt+57S2liCndY1d+wW14hlHMY8ZoKwBeyGfT+j 57UqkHLYp2c8d6Ppe5uexZGs1Dw6UnoTaTNshQPOKCX8WvJcYqn6+7QYCxkT6NQQ5MazdF0uvT9 IWNvqKlsfx7C2qry/gHI9BLc+JAPDy/IEMOWgEQs6NL8AgswAngazY28PxXJjvKlfBeQJnB5Kur g= X-Received: by 2002:a05:693c:87d8:b0:386:b896:319c with SMTP id 5a478bee46e88-386b8963d3amr26175046eec.35.1796147909378; Tue, 01 Dec 2026 09:58:29 -0800 (PST) X-Received: by 2002:a05:693c:87d8:b0:386:b896:319c with SMTP id 5a478bee46e88-386b8963d3amr26174986eec.35.1796147908614; Tue, 01 Dec 2026 09:58:28 -0800 (PST) Received: from [192.168.1.5] ([122.174.131.37]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd46c5sm139743356eec.11.2026.12.01.09.58.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 09:58:28 -0800 (PST) Message-ID: Date: Tue, 1 Dec 2026 23:28:20 +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 , Prasad Kumpatla , Sarath Ganapathiraju References: <20261201-add_shikra_support-v8-0-5e56d0ad3810@oss.qualcomm.com> Content-Language: en-US From: Ajay Kumar Nandam 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-Spam-Details-Enc: AW1haW4tMjYxMjAxMDA3MSBTYWx0ZWRfX9jS3uo3N9SIG wbYaNYJa6PBtJuAEDfsxY+NYKXASUvNBiqg8BwQqp2+zkl+k6s/A+IC3yS5xPbZ8JhF3AYrJ8wP pPgNEjRfb0Q2N2/ulrv3LxbhdApbxUbD7mPF0tFPPTIUtQt6424TLxNkSGHm9Y7AwLpwBYiShoY iUuZFOcmIMxYmrepw5xMB++BYmJbPNoiPdKAPEKSdmqkSe+2sBT9iKc3Vldecmh6T9bsBPbcavS BtmDhY9tTUE7euf25RuKNRoX4Jq1YKYkHrblT2oebIJc2jUVpV2IZXYzFJtMJMOaWubfkxyTfF1 ZqhFF6lDiNmCsVZtMmIsjUyASmqvMPv3coyrBrraM9sSD73cynseNkd3ObG+dlss0w0AHyaug7g zFFF8krzrmFb9FSuyduM9FVbREzjAg7Xf9W+awm1AJHDfaPydULyFbeB2EvL1LhlqY3UgwL34y9 f45E2WUXrmUQ+Vzrlmw== X-Authority-Analysis: v=2.4 cv=JoBkP84C c=1 sm=1 tr=0 ts=6b0f0ac6 cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=8tQdC96mLMEc35AQ+/utVg==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump: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=scEy_gLbYbu1JhEsrz4S:22 a=FO4_E8m0qiDe52t0p3_H:22 a=WzC6qhA0u3u7Ye7llzcV:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDA3MSBTYWx0ZWRfXxut7FWplBXmv W0kVEwEk6ygcsdHUnpkjbE6IAyWRs0PRZ8TEP7doMi40Q4vEnO428xAOWDoFYwoA0HlqUshVktQ cNYK2zxPhahNSs/BmDNbk4OGCSl4tcM= X-Proofpoint-GUID: b2U256SB1y3noy6gyG2BKWeAwuJWrRF_ X-Proofpoint-ORIG-GUID: b2U256SB1y3noy6gyG2BKWeAwuJWrRF_ 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_03,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 phishscore=0 suspectscore=0 spamscore=0 bulkscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010071 Thanks for the Patch rafi Tested on shikra-cqs board, Working as expected. LGTM, Reviewed-by: Ajay Kumar Nandam Tested-by: Ajay Kumar Nandam 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 > --- > 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 >