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 613C0440655 for ; Mon, 7 Sep 2026 08:38:29 +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=1788770310; cv=none; b=JrV2hORHBl/4C8UHmFtgVdzkXhAJNXtQFFqHr4tRxgQxhBJro9Y+OrE86/cJUhVWnnOYN+6h3v/2F1oJV2jqW/NegXQraT+V7sFEXRWATUdvbL4AeC+e/jfhQtgbdBLT33y+Hky4ZX0xMp+/KBptMWqyscXQhXEs7YUcQjxM9jk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788770310; c=relaxed/simple; bh=d2waHw5hQQta9KrXqkbQ0UYe80riPkC+jSg91Kafgk0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mSzlQKcaXhY5D5+TMcStvXguHfiIVRJBcqY5ZouYEZF0GHjr3aI6j8Awg2txbewd4qGCDjlwjQ5xDDWgdwnyUdx+mtKyi7g5/WhJjIrBch9YydXpXLDKU5k5xGH9Id6SbmHbWSMDnZ1NDI+8bhmGXkO7c5NNmljeISiF0qJ47nM= 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=Omqbr3UD; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=V+kF6qeX; 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="Omqbr3UD"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="V+kF6qeX" 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 6878ZRJ92877922 for ; Mon, 7 Sep 2026 08:38:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=Se+7L1HVUggxXbgDO2sx71Qt+rECVPAGxv+ lE2vxgMo=; b=Omqbr3UDO4uxIFeOOl8zCnENtx3bz63xnmqq/1j7Px99A5f1n1E agreXF1xPYNEJCQvoabjJ+4LcSP6Eft4NDFsvftoFpyUsDV5oHNldCH1aazdR3wU DXFlAzgcrKX5I/fseFphP6hzYwEJ2xRQGxv5aulwIYqiovo75eoPDtxpUc3p3j4H 2RulUzmzmLJ2pkSEk4sCXsdAUfl/utJ0xW4za+wWI+rPwbl+Hl78kKrfav38H6hc Ej29WjKRp3Zv/ivpoh2Fihn/O1gpskvSVNWb5XIRJ0c34NoCwUPudYMEzeTQNqTF gAwCyNzk7+3WZ2ScwMlTNeT3VNVOEpgZ9qg== Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ghsw200d9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 07 Sep 2026 08:38:28 +0000 (GMT) Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-91055aae7f4so13955456d6.1 for ; Mon, 07 Sep 2026 01:38:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788770307; x=1789375107; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=Se+7L1HVUggxXbgDO2sx71Qt+rECVPAGxv+lE2vxgMo=; b=V+kF6qeX4Z7CXP07da0Gp/PE/IqH1S7ExGnGWzcWAgrW+iF6vorj0y9l4KvBF0Kn8c JFExqXhO5zox9iti/rCP4Wh1T9JkUW/OyIbl3URGfRgL5z4kq32SfcTBk5wZXyirSuGR SAVumDp8LTyQtPcoe29W4NECUzwH3yXe7DXU7jo09AhJ1/beFTlRPAddkqXP662nUm8X OUaIBmSedi0omYfnj6xsDXuP3mXMkFF2bkDNC6GuCBORBj7EeqgSaSsj8DVCR7zOcZfC IVvwm1jy7dByLPjKRQAVAcY3RsrZwWtIrEtI/2jo1ecwoNJH4clpCDFvACB/TsR7eD+M e+Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788770307; x=1789375107; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Se+7L1HVUggxXbgDO2sx71Qt+rECVPAGxv+lE2vxgMo=; b=gDoo2WHbhDoN5ZkNFQPcAgWuCzLj9njTzZiUoLpTqA7V3Ote0vow1O3GrqlO2hzQRP hU3Sp9MrzHcnT5YR/29BaMe4zomoHzzRRZse08ksW0YNxaro0uy2cbZcVgpfcAq98W/r up/pJglNX5H/ni7zD5nZjKTusJ+FjQuPRZPjvwwxc5F2tE1z2tgexlF0beWLcuBXRtwD r73kGb5yk4h++XtCprDjXmbb8hsTu1865mmJUqHoFbHR6RQ3xloHXZBAA0x2YjIsVFLK 5dCHIURUIy/AJ2NDDgw+KNiw589pRK8dRd8VP0vOh6a/Y5nwnB9VnTmGTxCq842qAzya eWlg== X-Forwarded-Encrypted: i=1; AKwUvBzCGj8gYGlRnfjjv9PweGZmkHNXFLtKj4gPg7ONt8oQdBoVoZ7863UBNy8aQ28aNzSe17hnNMjYRmYq@vger.kernel.org X-Gm-Message-State: AFuF++n0k3XP6hk6EaakxP+0AjFHh8RQI/xiDQ5SdpLL1gpbzNXJE6Fr 3vWeyAW/aMhmJHDH04CfV6Q6RkFJNWllCX7UjFOxJ0ihAkFUewGv+KgbpmaGbXw5E0YzMxBjVo/ jgFvdg1D+7vgmIOd/ZemTN3u7DEv46am5DDWo+rsoqDQey5PFtqAdoDicdBfdx+Gi X-Gm-Gg: AYBFou3KBxucFGkSQTqTF937Dg3aNWDYQwJzhotjOfTlHF+dg0t0ip6g4y2r4KW71dI GED6GOpAjQyKSI6CkgjZbMuJMitqKQHCln8c8iXCIly+Uqd4UgESD4l30Lb16wvyHedcT/AWt5Q 66/MC4LPSquc/um46DS7QtScRZ22CkrZh3VjCBUidwtd2Ghln+B2m0v6ECgHWuFQxTXH7mekl3n KlJ+wZSz/V9XaHQNkryfaX34X1jndSKszg11XBexWSGGp6aIBTbdN9+kgpT6giBf63+ZrEg50CS qw4lsIW8Eyz+G293zFhI9pIenk3YnF+f+6+oa+MSjv4ZxUzSHfCAefjSR5g2AenIcWu78LeOzdx fmyKsBVpTooI1lg== X-Received: by 2002:a05:620a:2990:b0:939:a5a0:4a08 with SMTP id af79cd13be357-939a5a0627dmr450364985a.8.1788770307257; Mon, 07 Sep 2026 01:38:27 -0700 (PDT) X-Received: by 2002:a05:620a:2990:b0:939:a5a0:4a08 with SMTP id af79cd13be357-939a5a0627dmr450363085a.8.1788770306687; Mon, 07 Sep 2026 01:38:26 -0700 (PDT) Received: from debian ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-485883c6ba4sm30852179f8f.25.2026.09.07.01.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2026 01:38:25 -0700 (PDT) From: Srinivas Kandagatla To: Mark Brown , Rob Herring , Charles Keepax Cc: Krzysztof Kozlowski , Conor Dooley , Bard Liao , Jaroslav Kysela , Liam Girdwood , Maciej Strozek , Pierre-Louis Bossart , Takashi Iwai , Faiz Nabi Kuchay , Jorijn van der Graaf , patches@opensource.cirrus.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v2 00/11] ASoC: SDCA: enable on DT platforms and add Qualcomm WCD9378 (Tambora) codec Date: Mon, 7 Sep 2026 09:37:14 +0100 Message-ID: <20260907083727.733705-1-srinivas.kandagatla@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: JR2UqjlOaWQsPzyn0oUf-D5N3pLvpj1z X-Proofpoint-Spam-Info: AW1haW4tMjYwOTA3MDA5MiBTYWx0ZWRfX1a92pANX1Ojq CB4b3FnSyofQO2moK+VHK23CX+BTPw9gH8+JXHVrv/Vq46/yCwDTb1t0/K88fbP4L1AqcGIIMHo nF1IlNix5+PcrniK17ZrNPqpQj2xJGs= X-Authority-Analysis: v=2.4 cv=eKwjSnp1 c=1 sm=1 tr=0 ts=6a9e7804 cx=c_pps a=oc9J++0uMp73DTRD5QyR2A==:117 a=ZsC4DHZuhs/kKio7QBcDoQ==:17 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=VwQbUJbxAAAA:8 a=w1d2syhTAAAA:8 a=X2GpltJzu40BM-42fCkA:9 a=O8hF6Hzn-FEA:10 a=iYH6xdkBrDN1Jqds4HTS:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTA3MDA5MiBTYWx0ZWRfX5LMdNHkSRLPE tuhmj+eeRW1yH6nUWIHOVBWWRtCwi3VHjeoCXhGF57/ThvHArdL9tf1eB/XfvGuWGn1mZOdgf8b /VejVLys/vQQh+wMopPuNsTR2GPAM9Mwmfb31IZjXIqOac8QPPH8FMFI/apxNrtjTEOp4Xnuv0T CtdU7SFrgQ7rRepv9XLwWWy4xQSdM4jLYNBCgeqrJRvTCECRddjta1Sc0s1y3D3KVv4hegdTewv /FO7phJUCxnJxfe1rwhwLnqs3kC9iriUOb4wFEoGliLWXljXpTcR0pzcIUitK4BVAkhW83aE0nH KT1xfog71MQLw46LxjduY43NSS+i1xFB4FgWx58PFBgTcaRynPk6GC3S820bLuVEFwjwouGMteK +Lw7HEoaz8TcFJmwjkdNtLZUQrWdiFcaCNZS0lxUj/W7ITmA4E3vzBJmhiD/ceC/liUNOa1Mh0a fLL1v6qkj36mIXrKCmg== X-Proofpoint-GUID: JR2UqjlOaWQsPzyn0oUf-D5N3pLvpj1z 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-09-07_02,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 clxscore=1015 adultscore=0 spamscore=0 phishscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609070092 This series extends the SDCA class driver to work on DT / non-ACPI platforms via a codec-provided static topology, and adds the Qualcomm WCD9378 (Tambora) codec as the first user driven in SDCA / compute mode. Tested on the Snapdragon X2 Elite Glymur CRD. Patches 1-9 extend the SDCA class helpers: - Kconfig gate to build the class without ACPI enabled. - PM helpers keyed on a codec-embedded struct sdca_class_drv, so codec drivers can build their own dev_pm_ops. - Class SoundWire probe/remove/read_prop exposed as library functions callable from codec-specific SDW slave drivers. - hw_ops with hw_init (supplies/reset/SCP init) and populate_function (DT-supplied SDCA function data) hooks. - Class function driver registers SDCA_FUNCTION_TYPE_SIMPLE_JACK, and resolves sound-dai cells by entity index. - sdca_apply_default_control_classifiers() applies the same is_volatile / has_reset flags that the DisCo/ACPI parser would. Note: None of these are functional changes in sdca core, all of these are helper functions to allow non-ACPI users to use sdca core. Patches 10-11 add the WCD9378 SDCA / compute-mode codec: - dt-bindings for the SoundWire slave in compute mode, using the qcom,wcd9378c variant compatible alongside the SoundWire class-ID compatible sdw20217011000. - Codec driver split across wcd9378-sdw.c (SoundWire slave driver plumbing) and wcd9378-sdca.c (SDCA topology + hw_ops) with a shared wcd9378-sdca.h header. A future mobile-mode driver can plug into the same module (single MODULE_DEVICE_TABLE, single modalias) by adding its own files and hooking into wcd9378-sdw.c. Testing: HPH playback and headset-mic capture confirmed on the Snapdragon X2 Elite Glymur CRD. Jack detection is not wired up in this series. GE 35 / MBHC stays armed by the transcribed init table but is not consumed; the mode 0/1 aliasing in range_ge35_mode_data is a defensive fallback and has not been tested. Changes since RFC v1 [1]: - Compute-mode identified by qcom,wcd9378c variant compatible instead of the qcom,compute-mode boolean property. - qcom,micbias2-microvolt dropped; MICB2 fixed at 2.75 V by the SimpleJack topology. - Codec split into wcd9378-sdw.c (SDW plumbing) and wcd9378-sdca.c (SDCA topology); module renamed to snd-soc-wcd9378 as preparatory for mobile driver. - Binding is compute-only; qcom,wcd9378 mobile-mode variant will land with the mobile-mode driver. - MODULE_IMPORT_NS("SND_SOC_SDCA") added. - sdca_class.h moved from sound/soc/sdca/ to include/sound/. - qcom,port-mapping missing now returns -EINVAL via dev_err_probe(). - init_table sync up with CRD asl and the T14s DSDT; 8 stray writes dropped. - Six fake IRQ-anchor Controls on PDE 47 dropped; HPH OCP/CNP/SURGE stay codec-local until an SDCA framework interface for standalone status-bit IRQs lands. - .is_volatile dropped from FU 6 CHANNEL_VOLUME (matches MUTE). - dropped pre post pde callbacks, and all of the mixers and mute are exposed as mixer controls. - added sdca_apply_default_control_classifiers, inline with acpi iparsing. [1] https://lore.kernel.org/all/amHqO5pMFmKRNYTT@opensource.cirrus.com/ Srinivas Kandagatla (11): ASoC: SDCA: allow building without ACPI ASoC: SDCA: export PM helpers keyed on sdca_class_drv ASoC: SDCA: expose class SoundWire probe/remove/read_prop as library ASoC: SDCA: add hw_ops with hw_init hook ASoC: SDCA: add populate_function hw_op for DT function data ASoC: SDCA: class_function: xlate sound-dai cell by entity index ASoC: SDCA: register SDCA_FUNCTION_TYPE_SIMPLE_JACK in class function driver ASoC: SDCA: make find_sdca_control_reset() return void ASoC: SDCA: add sdca_apply_default_control_classifiers() helper dt-bindings: sound: qcom: add Tambora WCD9378 SDCA codec ASoC: codecs: add Qualcomm Tambora (WCD9378) SDCA codec .../bindings/sound/qcom,wcd9378-sdw.yaml | 91 ++ include/sound/sdca.h | 23 +- include/sound/sdca_class.h | 80 ++ include/sound/sdca_function.h | 2 + sound/soc/codecs/Kconfig | 11 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/wcd9378-sdca.c | 1010 +++++++++++++++++ sound/soc/codecs/wcd9378-sdca.h | 20 + sound/soc/codecs/wcd9378-sdw.c | 52 + sound/soc/sdca/Kconfig | 6 +- sound/soc/sdca/sdca_class.c | 166 ++- sound/soc/sdca/sdca_class.h | 35 - sound/soc/sdca/sdca_class_function.c | 50 +- sound/soc/sdca/sdca_device.c | 4 + sound/soc/sdca/sdca_functions.c | 43 +- 15 files changed, 1516 insertions(+), 79 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wcd9378-sdw.yaml create mode 100644 include/sound/sdca_class.h create mode 100644 sound/soc/codecs/wcd9378-sdca.c create mode 100644 sound/soc/codecs/wcd9378-sdca.h create mode 100644 sound/soc/codecs/wcd9378-sdw.c delete mode 100644 sound/soc/sdca/sdca_class.h -- 2.53.0