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 056C736F8FE for ; Mon, 13 Jul 2026 07:28:50 +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=1783927733; cv=none; b=m3zs71r5p3cG1galY75s+5DwwnS1boEAi6TBV1p8C6DIqmtGRuDXNQpziozNObKszO1uP6bhefxqgtfaKH+0n+UKuTvsJ8phVBQeqFYCDTjx9AimrSN0BLxQf80oCR6GXXVI24wdPrMMAk8701UBVp4AY6DqS3SupRR68t9ICdM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783927733; c=relaxed/simple; bh=rGDsrjx6/tEefZaGByxTg7MZGD+3gZaunHci4Ij2f20=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dE/mFFb8i8+DXYLOcj8syBWtaNLLiNqpDNZSFjf5Jh8/WySKXt29MHrheb6uxjA1jKqtuMGs60o+yaiyx6ByORp+SyLuz1KV5arLOl5weJUdF/spP+iEtUdLO6XAnuWv0jvDdCeVmpaOJHaL7Zyw76ZhNqFcvjg95cOnA1NO7cY= 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=k3BCZdCm; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=CyhWVq44; 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="k3BCZdCm"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="CyhWVq44" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66D6NlkU668676 for ; Mon, 13 Jul 2026 07:28:49 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= rOCzC1B5qGhA0DDlrlvVv19f/QDxmZmVqlO5kCPP8do=; b=k3BCZdCmCzGgeTAI bEUoMtrGCwWJGfuUqy946ZPHK/PmRpxmbJsjcpySR+SyFYCGRiXBBdoRZP/q5FzA yEiL+ecuNVCDOHmtY+mS9QnL77qT3C1ycou5tPUPhmw8wp9/tYDQK9FHJculwhh1 TWu3Hzw1QER5CDwBrGlv8IHs4vGBUGliOCmzLmqlY2CfttsYg7Nu6cyf59X0IvTw dLI8M5Q/Xp3ijTwEWGhrCGVo6/IKJdqWmT85/wUluOgCnbYvia+hkwL8rBtgOgUH DmARoohC3Hut6PYyyVM2GGYAbYIkQVlpJ6Si6gvXRP3vjIkXhf9mwQnXyaFSpwiv QTPIpw== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fcjnm1e4h-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 13 Jul 2026 07:28:49 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-51c1a97644aso46302921cf.2 for ; Mon, 13 Jul 2026 00:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783927728; x=1784532528; 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=rOCzC1B5qGhA0DDlrlvVv19f/QDxmZmVqlO5kCPP8do=; b=CyhWVq44BfHtuvEFjHLqzDCNPjJoKCXAF4K/oroApBKdLo71/lyOT3XFjbm5yqRMNJ f/LQQcA1xg9DPKKMRXf8/NZK0smQcToV7cHcVFbkg1FPvGcT1agWCmi6JolHwpHIruSk Z+ThML2NZRqPWVJVQXViU/CRuqyYHAC+OtTJSk8VztZjPOR4bekIbdHDnzb4Y8us25ig VC/+1vYCpMgVm4s85lIeZEwAp3mP8DSnVm2yqiBqFpoHO2x26c4XrqK6Nx2WHrKhP5X5 lPz1w3XmZxyLIYtHdAwOVBIvlidrww/UNGnLociaJoRBG9XNFHayhe/Z96g1CHV3P7jY N6vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783927728; x=1784532528; 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=rOCzC1B5qGhA0DDlrlvVv19f/QDxmZmVqlO5kCPP8do=; b=N+aowtIq3HqJn2plfZdsz/u576NL8MXZSZTn36cf+z2OUlZ8VsfRt3U8RgE4hzbu9I 82SPnZSOwAEQPPJf+MM3sXRNPYODHS2cyFDwcK5+ecoS5HTtS6hyz8STXvdpYPBGFRRn mGy3G3uCiZAyxcydBS+RUPL3T3215UEfPXF/GIt7jwK9hXnIpPfbjqmtFU6zWI3a9Usi zBcQyAk93JerViuH0KBLtgrGHdcf1pGv4UGNZlFFVuksbBsulzvgcZVhAt0I0UKiexu/ gOtPOY72MxERuZb2hGbcVtRGTwrihI/P2wMk1dPrEaMtevJYWrqFt2vQPAcUZ8uDBDf4 IEwQ== X-Forwarded-Encrypted: i=1; AHgh+RqDaLxajk4cQplHA70a4x+jRV51D19YbqgtN3pM2lTPLJw0JDij1+o3t0/k9O6Adegi1dkxKuxkKH3oFuE=@vger.kernel.org X-Gm-Message-State: AOJu0Ywox2ygXHyO3O/WtL6Abw/2oMqNl+xdZYIMjf6wW7hRLnpd7UhX Ke+uphQ5k57vqgDG0iZqv0PqOq+MAlXgxR0NyWIUvAlMOcFnqg/P4orbxW3ul7rH9j5VEZ9g33m dHwMf6Yvr8jdwLKnY827rsU9A1hXb3ch37zjhuiS+tUZ5Sipq16mYr0BYhoWgOcb+pXc= X-Gm-Gg: AfdE7cmEUyzaRzdLn+CBkkocBKW+egBDahAtNvgtFAXfVkmexx/mbfdAOeKm9mjD2Cd zPsMJcxpsw26IosOx0dzbrsTD1ZkMlnkcvoqbjRm1oiGgMwYLMiC+Ruanzp75GVwM+wq4ucRgKN fhFLXvujnBvqthqgh6lFPIT3Yaty3FZybTpXCMK1L2yZ47frHIQv61hA4W5SC3Uq2edKmmfNAAj rh1c3vOJn81mJp2GiLIsKQACQ97ZeyDszrsWmeFYm+Mu8XGPUqmaKK4atxneXE2+U2JkbqtnUoX mkIC1FWu05et7fQ8gBA0ydbj5BT4Zv0sleC7U9DfbVj8T0jmxYsc49TsrNvfgBfzZ9Yd0T9vSyV qcLRV/MPzAtdE+77Pl9iQMFZtx5ut41m3gHwdfw== X-Received: by 2002:a05:622a:1207:b0:51b:fdbc:86ce with SMTP id d75a77b69052e-51cbf1fb365mr80402041cf.52.1783927728154; Mon, 13 Jul 2026 00:28:48 -0700 (PDT) X-Received: by 2002:a05:622a:1207:b0:51b:fdbc:86ce with SMTP id d75a77b69052e-51cbf1fb365mr80401841cf.52.1783927727629; Mon, 13 Jul 2026 00:28:47 -0700 (PDT) Received: from [192.168.68.120] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id 4fb4d7f45d1cf-69a19d79906sm15112119a12.14.2026.07.13.00.28.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Jul 2026 00:28:45 -0700 (PDT) Message-ID: Date: Mon, 13 Jul 2026 08:28:44 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] ASoC: codecs: wcd9378: add TX/capture codec driver To: Pierre-Louis Bossart , Jorijn van der Graaf , Mark Brown Cc: Srinivas Kandagatla , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Luca Weiss , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Mohammad Rafi Shaik , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260706192229.144137-1-jorijnvdgraaf@catcrafts.net> <20260706192229.144137-4-jorijnvdgraaf@catcrafts.net> Content-Language: en-US From: Srinivas Kandagatla In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: 9sQ_S3zN63OxiZerg04OLLpVsZM3enAt X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzEzMDA3NiBTYWx0ZWRfX6MpHbgxirYqm jRNQufSEYG9PXFDVqgytRy3H6hhpX98c00zFO1YXHSPl5RY569AMK96qroccT5YzJtSAHB+PK80 6f3Ly8Nrpv55GU3gzVHp+ofRFgGJax5BzsniAtUlkr4TzUnZc5v1HFtcK2AlqeLqmv70vSaMm2M 0y6vfSQpeg4xzvodkL4F3rwveN8176fjMhagcK/Sk74rTRjNPMfcuyB1c7Zebu/COiYcuyjV/Eg 3dIEZdMxuIsTrnuhGL4mCTbrZMU7qv/03sPCZfypFDRRJqEv2CrXFdxKjZmGZ5KUwrVYJRHi+c8 ls3zP6lMxxudVIOrGd+Fe9rm7ShD8LtYPHPmrFJy5YqzNKf35BKBKyw0MXwjOA5T3FNJAb/2Oya RpkEVT3QN+EIBjW9kHaw1wAdOoF3u2F+I3ygR4nH5BdpN/ZvRWL5BEiHanq82frOEWnjwrKK6SK J+MLpmJwnjCZjmFl2ig== X-Proofpoint-GUID: 9sQ_S3zN63OxiZerg04OLLpVsZM3enAt X-Authority-Analysis: v=2.4 cv=AfmB2XXG c=1 sm=1 tr=0 ts=6a5493b1 cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=ZsC4DHZuhs/kKio7QBcDoQ==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=et_PxPiEQ3Igji31-sgA:9 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzEzMDA3NiBTYWx0ZWRfXz7ke6o8TKN5M hidrhEJyk6yKkgyOa0cFj9Ar1eptEZvUbru330jjPET1O8lM7WHi7pseiYKhcl+VRVnsGAyTVmH aSIUcyBXTQ2Es59vK28jMu1neGy94eI= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-13_02,2026-07-10_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 clxscore=1015 suspectscore=0 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607130076 On 7/7/26 12:42 PM, Pierre-Louis Bossart wrote: >> + * >> + * Qualcomm WCD9378 audio codec driver. >> + * >> + * The WCD9378 pairs a WCD937x-compatible analog core with SDCA-style > SDCA-style or SDCA-compliant? This codec is SDCA compliant and used on X2 Elite Windows laptops. This Codec can be configured in two modes, Mobile and Compute, and this configuration is fused out. The codec IP is the same in both modes; what changes is how the host-side SoundWire master setup. The codec itself has two modes of working. 1. mobile mode in this mode the codec is enumerated as two slaves(tx and rx) on two different soundwire masters (tx and rx), like any other wcd codecs. 2. compute mode In this mode, where the codec is enumerated as single slave on primary soundwire master. Two Soundwire controllers(primary and dependent i.e tx and rx) are aggregated and they act as one logical SoundWire bus with four data lanes. The primary alone runs the SCP control channel, enumerates the slave, drives the bus clock, the secondary follows. The secondary drives some of the data lanes. There is a hardware sync between these two. This is a new configuration on Qualcomm Soundwire controllers called multi-master. >From Codec pov, its exactly same IP, I have now SDCA drivers working for both playback and capture, so Am hoping that we could use the same SDCA driver for both of these modes. I still have to give it a try on a mobile platform to verify this. Am hoping to send a version of this driver sometime this week. --srini > >> + * function blocks (SmartMIC0/1/2, SmartJACK, SmartAMP) whose built-in >> + * sequencers perform the analog power-up/down autonomously: capture is >> + * started by programming the ADC usage mode (ITxx_USAGE), requesting >> + * power state 0 on the function's PDE, and letting the sequencer ramp >> + * the micbias selected through SMx_MB_SEL. >> + * >> + * TX/capture paths only for now; RX (earpiece/headphone), MBHC and the >> + * SmartAMP function are not implemented. >> + */