From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F68A3446A9 for ; Wed, 12 Nov 2025 17:21:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762968069; cv=none; b=H/dZ3mqIQnbISmKl0y3L/nYnYY0J+UEg6tj9B8HwgcwHj6bt0xJ3cjCvrPldT8Y/kbQs1/0q4nxV/9E0cCFBft9O4SwVHohqDs6e2dmDYUqdzXuX64mXR0cmARTBJwecMiuIoeAXG6DBScMOO49xMpqr9oyVVoPDSfKivTXZvl0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762968069; c=relaxed/simple; bh=zGm3bjPIXNlAXsn923/poaK7/h5DdSgopChHq1KIJug=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:From:To:Cc: References:In-Reply-To; b=MLtp2URSXTOtOh51XY/AMPCX443ckk4RL65/amx2GhU70yidz4QREdnLH684HEUeUdvfK/q9wpb9hkah6vNbA0OAWKY5HkF6M/3O3VpJVI58nNC6Wr0MbabYmIIumhI8/fE4KVfTubq7ir+f5Hcx2tz/Za6yqZ1rV4N+IvX2qlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=S9TrqFbN; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="S9TrqFbN" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-42b3c965df5so753739f8f.1 for ; Wed, 12 Nov 2025 09:21:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1762968064; x=1763572864; darn=vger.kernel.org; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+D8BoUvcqK/7rHl2L0r4XdY6giRmTPN9ngtKeR3ez90=; b=S9TrqFbNcrP3YS5Uc7rdz6PzAL3g54MeF9cHf4b6VqPeDafcgVsOwmw3sVcAxW+SYf +kYZ8G5A1zVPRayt8sMogwJOaPtvzFRjp83uHjY4bmuhyPP/ULvORLZSyu5rRukDMrAv oe4Mtob5tFI/QAhL8K4A08M6tRgspAZr9rFNkqKY1CuEyuwiRzlmha0ipW1jef88mufh HtUdnYZGD29e3ULyHYB1AJmA5sxwYg3TX4ME9YuPK0B3SXLXHMIOCCKL0iDeU7NUoyZc 6RXESpaWDJd3iV94l7X2grwZG3XtoyE+63VFil56xuS/4XFFO9EM+x/SF0Bk/4MevcWB Rh2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762968064; x=1763572864; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+D8BoUvcqK/7rHl2L0r4XdY6giRmTPN9ngtKeR3ez90=; b=EWcArLnLQa0EUGv7ISiF3UzF+++PyVvni8cgqlGYtPCOtiwDYRQE2waVhJQNggv3hd /iZahzJnnR5UJtB9LC1E1kNhjEQRV/v8IEFxk+HO2/hPKVwJ9zxVIzHFEHZLZe9QgG+v HUkOjUvBnvEUKIlLIX35Fp6vi3IsOjWqH4oGGfLO1Fg2SU05kZeaL1LTSZH4mB31905H Crga8K8Ua3iCCaM5XK0BEpuoyjp5HgzdCkpZnrMH1/dR1mmoQjx5igwaPFB3XGF1W/KL Tdn/Csk8HANBARc2kqddq5twaNWk6pCw1h7Wf/imDM0+PQ95TGOsMxSd5GRJg65/J4Ux Ihyw== X-Forwarded-Encrypted: i=1; AJvYcCWIqMRG0hhjjq/ITXNuubDRDkHCuEuO7Wd588jllJpRCv7rPiko78LjptVPXtKdBllOtqICBVN8018b@vger.kernel.org X-Gm-Message-State: AOJu0Ywo5H3zHp1ODmozUrhXg3zeMCBKEEN0b5mnhsIpZltFVo96+beY nWLc6bqmFZzySsLjcRJYACMLs/4FSdPiENPS9GVqd0y6iXpzrESfpqnlUi31Z8OZ4PA= X-Gm-Gg: ASbGncsZon4ygnX5EvAnFXd2Yzlt1Sw9en8yen/B3I6ma/bQiZY9sq/uz3dWOhBZnl4 navFD+vD7Mdd7QbZ/LefkPoWYFj5GA+od8rBDN1Xj/LpKM3tiF7dGbXQjxoehJEp7Ao9lrHHxpH EZNgsyGcECgF+WJ6PMyIJONwk2KHr+5kB6y+TGhmU6lqOVOwe2Gx8CtzrK+mjglNhoV0plbPByB ZZBa8Zcpyz3xFeZuMYHE4zETqTjlXe59OaZAZ+pI4TGyjZGv6+JTkC6J0lv3JqKp/pNrr3bEq9d Sno57Bm4uskr/3O1DW1aThyJa/kvaE/cJcKUwtxlzqwQ7ilrM7C3qrAYhmJdrEqLpXkQMKbvRhX 1JnSqrI7/RS9lHEg4ZwY1PvQC7Oc7IeQr6j+qJDMkqfv+QKfF0TLwJXQieyiG7jmnCp6n5bmIfO MfC2jKj4EnpJcX1Yo= X-Google-Smtp-Source: AGHT+IFOnruwkehrKtiSlIIluNpW1jCcNK6zjknkUp1TXGQBb3IO3OG62+bnEz116c3kPlLyvXv7bg== X-Received: by 2002:a5d:5f53:0:b0:3ec:ea73:a91e with SMTP id ffacd0b85a97d-42b4bb90b60mr3558763f8f.12.1762968064363; Wed, 12 Nov 2025 09:21:04 -0800 (PST) Received: from localhost ([2a02:c7c:7259:a00:4fbd:5c9b:d8a2:ee64]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42b4789896esm9558995f8f.38.2025.11.12.09.21.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Nov 2025 09:21:03 -0800 (PST) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 12 Nov 2025 17:21:03 +0000 Message-Id: Subject: Re: [PATCH v3 05/12] ASoC: codecs: wsa881x: split into common and soundwire drivers From: "Alexey Klimov" To: "Srinivas Kandagatla" , "Srinivas Kandagatla" Cc: "Mark Brown" , , "Liam Girdwood" , "Rob Herring" , "Krzysztof Kozlowski" , "Krzysztof Kozlowski" , "Conor Dooley" , "Bjorn Andersson" , "Dmitry Baryshkov" , "Konrad Dybcio" , "Konrad Dybcio" , "Jaroslav Kysela" , "Takashi Iwai" , , , , X-Mailer: aerc 0.20.0 References: <20250522-rb2_audio_v3-v3-0-9eeb08cab9dc@linaro.org> <20250522-rb2_audio_v3-v3-5-9eeb08cab9dc@linaro.org> In-Reply-To: On Thu May 29, 2025 at 11:05 AM BST, Srinivas Kandagatla wrote: > > > On 5/22/25 6:40 PM, Alexey Klimov wrote: >> This is required in order to introduce wsa881x driver that works >> in analog mode and is configurable via i2c only. >> Functional changes, if any, are kept to be minimal and common >> parts or parts that can be shared are moved into wsa881x-common >> helper driver. >> The regmap config structure now contains 0x3000 offset as required >> by soundwire spec. >>=20 >> While at this, also fix the typo in WSA881X_ADC_EN_SEL_IBIAS >> register name and rename wsa881x_set_sdw_stream() to >> wsa881x_set_stream() and update registers description in the >> header and use the new defines in wsa881x_init_common() and >> in wsa881x_digital_mute(). >>=20 >> Cc: Krzysztof Kozlowski >> Cc: Srinivas Kandagatla >> Signed-off-by: Alexey Klimov >> --- >> sound/soc/codecs/Kconfig | 4 + >> sound/soc/codecs/Makefile | 2 + >> sound/soc/codecs/wsa881x-common.c | 193 +++++++++++++++ >> sound/soc/codecs/wsa881x-common.h | 458 +++++++++++++++++++++++++++++++= ++++ >> sound/soc/codecs/wsa881x.c | 493 +------------------------------= ------- > > How about we have something like wsa881x.c wsa881x-sdw.c wsa881x-i2c.c ? I am totaly open to suggestions. Splitting to wsa881x-{sdw,i2c}.c sounds good to me. I kept the original name to keep the changes minimal. [...] (the rest of the patch was quoted and sent but I didn't find any comments there, please let me know if I missed something there) Best regards, Alexey