From nobody Thu Dec 18 20:22:22 2025 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 AB6B317165B for ; Tue, 25 Jun 2024 16:06:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719331582; cv=none; b=eiKUZRwQT6xiAKLBArB+w0HM+O6F+X6yRDyuTdPVkIxvNDUJAMOKTz+5HNZFgZA9h3qkwGiK2RFmn7D/D+ThxDnludWjgfb9bxrJY/0+KiMx7TIA/u4iNKvvYWZfcS+eFVrBiiYgDuA6cVGJTl8KGrGHsXRk21gGmeJr2qhlJ1w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719331582; c=relaxed/simple; bh=LVjZ47687PxS3iFKdhrNIBTElhvjuA83Mgge5wOGN3k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mjA+RVSaEUB9Jn1EfDwv1pxnGreibMDHA988mjxYH5dc7DeBOXBC+9YqyvbP56d8CWvnSUV0qyFzSTZUCrTKtrepF1fa4qT8JdeKjI5eooAyeG0pMUq4x9g67YBLKsg/qTLevOPYvieFpJOtwSjPigqoL5v1kDXQcmHFUHy7FGM= 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=kgpudbNA; arc=none smtp.client-ip=209.85.218.43 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="kgpudbNA" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a725a918edaso77125566b.3 for ; Tue, 25 Jun 2024 09:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719331578; x=1719936378; 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; bh=DbBz/UlSDHmmQE9XJzoYyy6K5428MNeACZ+/dAMQ9N8=; b=kgpudbNAW+GxftY75GUMRhkTXF2HsogfroBZm+zhHvc3ZgvGFgqivTAUfzSYCErDRL YMPMzs9tmxQbXrf9qYVK8ap4AtWGvV83bDXRrChldnSol5dGiCy8dFtipg9Olx6BpgRc 8egD5gMHF89tD2queGI/FE/SuzXmifgW6Xf3q4IY6HuHwhtjE46Yd2z1mET+Vh8TP44H BlT1LECP1LxEH8vSQKZz2uA4K8hYlUqUaQOm48/Hrtncsahky5YaAn0V5eawMW4yUyYx pB0uNbNpMYdSRss+2/TG2IA3hTmnVu7JGO8G8CmIGHoZHsfRs9D6selsdB3kFBBCQvnw 0PbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719331578; x=1719936378; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DbBz/UlSDHmmQE9XJzoYyy6K5428MNeACZ+/dAMQ9N8=; b=c4ZtIYZ+zFDJmVUsg8kX2kQ+ila3pEJ0sdOqbBsDM/siI+zlFNLmBc7I09PHD+du0m pKbtfhHOBOxhYqbaUfwVVdaSykmTZr8kc17dx96EzYTh6YApuXPHlgRANbbcU8tBKzYf Pa5nqzsdTo58b3xEZciansf2lLqhFrNx4xDDw6om38gnoe7KdXzOd3irLvtgncvYimBB on5kegwBert1txZkgd0nx1rUmUgewYYY3bJwihGvcbExdsl7PPziIEwGpB0B9fG7rF// Rwj2kqrMBjvR5O+kKa6wW5P4SLdy1i3PEqRe7GSVhJizVuc3N4/saGKA+vK5Wmz9vEn0 RkyA== X-Forwarded-Encrypted: i=1; AJvYcCUrzZNIA21rdR7FABBLfA6sqwpjDvB0EWuG6WGRHEuhqIlAqsHh9ESJZYypiKIvDxaukY8V65WitAQmHsVCqJ8ESleet/BfGE61m95b X-Gm-Message-State: AOJu0Yx5d+llIy8pDmLbUxsrS160NEi9JSMWvnhpdJgEtJx+i+y89vB4 8719cqYeWBIRQZJS07WiBm4BVdlLPMxa+tN4/UrHM68PteRD2fRMYFc6At5uk4A= X-Google-Smtp-Source: AGHT+IG5pxrjRiSGtKXXcaujES4bHVw1Q9Xh73VMtvmgJPjR5I4xLxhhFfkpqfCUKfVMEnurVpstpw== X-Received: by 2002:a17:907:c787:b0:a6f:b6c3:fb30 with SMTP id a640c23a62f3a-a7245b84f56mr796716166b.7.1719331578008; Tue, 25 Jun 2024 09:06:18 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57d30535010sm6066987a12.59.2024.06.25.09.06.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 09:06:17 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] ASoC: codecs: lpass-rx-macro: add missing handling of v2.1 codec Date: Tue, 25 Jun 2024 18:06:14 +0200 Message-ID: <20240625160614.450506-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@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" We have also v2.1 version of the codec (see 'enum lpass_codec_version'), so handle it as well in all switch cases. Fixes: dbacef05898d ("ASoC: codec: lpass-rx-macro: prepare driver to accomd= ate new codec versions") Signed-off-by: Krzysztof Kozlowski Reviewed-by: Dmitry Baryshkov Reviewed-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-= macro.c index 00ecc470ba8b..1c3429f004ed 100644 --- a/sound/soc/codecs/lpass-rx-macro.c +++ b/sound/soc/codecs/lpass-rx-macro.c @@ -1601,6 +1601,7 @@ static bool rx_is_rw_register(struct device *dev, uns= igned int reg) case LPASS_CODEC_VERSION_1_1: case LPASS_CODEC_VERSION_1_2: case LPASS_CODEC_VERSION_2_0: + case LPASS_CODEC_VERSION_2_1: return rx_pre_2_5_is_rw_register(dev, reg); case LPASS_CODEC_VERSION_2_5: case LPASS_CODEC_VERSION_2_6: @@ -3639,6 +3640,7 @@ static int rx_macro_component_probe(struct snd_soc_co= mponent *component) case LPASS_CODEC_VERSION_1_1: case LPASS_CODEC_VERSION_1_2: case LPASS_CODEC_VERSION_2_0: + case LPASS_CODEC_VERSION_2_1: controls =3D rx_macro_def_snd_controls; num_controls =3D ARRAY_SIZE(rx_macro_def_snd_controls); widgets =3D rx_macro_def_dapm_widgets; @@ -3812,6 +3814,7 @@ static int rx_macro_probe(struct platform_device *pde= v) case LPASS_CODEC_VERSION_1_1: case LPASS_CODEC_VERSION_1_2: case LPASS_CODEC_VERSION_2_0: + case LPASS_CODEC_VERSION_2_1: rx->rxn_reg_stride =3D 0x80; def_count =3D ARRAY_SIZE(rx_defaults) + ARRAY_SIZE(rx_pre_2_5_defaults); reg_defaults =3D kmalloc_array(def_count, sizeof(struct reg_default), GF= P_KERNEL); --=20 2.43.0