Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp339074lqt; Thu, 6 Jun 2024 05:26:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW92XF5O/77RKA2YZac8kozVQkkgX9VMpqaBo94maUty6gB2tsNpBWznuz2iQNVwNyzCdds/DJqAaaeSjR5c/bMyqIl2nfdEgtIwdGmXA== X-Google-Smtp-Source: AGHT+IFRXXxQAe4zokThm5c8kiG1x4xoC6PgXp7Itdtl+3Pgk+sZlrCKKoAhxWn+qIU5tL2+dqWF X-Received: by 2002:a05:6830:116:b0:6f8:f355:8c08 with SMTP id 46e09a7af769-6f9434669cfmr5618007a34.21.1717676790812; Thu, 06 Jun 2024 05:26:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717676790; cv=pass; d=google.com; s=arc-20160816; b=m1df7z2joj5E5Ye32yot3nud60o868ZTVoAzRIyjMOjkRX2AH9sI1WRAJe6Dd2/qoF 3Fzve3G4KTlX18bEvMuABsFZh+7tQMXcNoH3TxIVcOsLpKNakmH8Lo3ER3lw8b15EkJ2 c8y5UGFyn0EEy7SNOw1o6O6dyP4jPX3EpkJt9Cp1evFfDv2rt5mVviRtpLsDcRUBwSB7 tKOZ1sWOiMb4u7DfP3E9tF00sgEj8rAIhnw7G5de0gz/Gj06+JvnadX7DGCNkWEpRQM2 U7coW22g52n6s1wXujmSUTqxQyZDFMyD5sP76hjO6UYFtyWxzPiSKcz6OZFCy5A9zVtN yevQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=FiI3m8vqYXd8PfuguZOQIaxz1AuCQiEaVMJX02AGxvE=; fh=Uog3suIGFrkluS1uoGnzH9kLYZYzNQu0c7FK78BzYiY=; b=Sp+bdcbzDvOsn5zpnX+GsvC0QkQdDZPol5p0eeDmsQiMvL9j8jvucs2njb+TRKY5dB S72dSqEg04nonsrj7u+umqiYJxWvQBYn+ifhxhkEem+Y0zzbaKUByrWLWw/MOK345MJL LpyAmRUJv/WS424ck75c2X09HGdDWGhhB9JL0ygqpYq05Q/MmecO1blgRhDL1C0Lyny7 YwdpJwNoYFJigv26Blf82IuHaWeed0aYcDmOJiq/PIqYxPbQCk4OAzLpeZyws6iZoryH RC4sC7cOqUj9qgbxyqv6q13I2EHRVzaKacwFvCDbTgwvdxnCZErgLPLWUfNzo3l0TiWO 2FPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eNudmZPJ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204266-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204266-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038b161c7si14028101cf.375.2024.06.06.05.26.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:26:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204266-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eNudmZPJ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204266-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204266-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 857BE1C216EF for ; Thu, 6 Jun 2024 12:26:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F75419598F; Thu, 6 Jun 2024 12:26:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eNudmZPJ" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.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 D6024195808 for ; Thu, 6 Jun 2024 12:26:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717676782; cv=none; b=UwEwNTUUIHe2/9rOuxZP6X4okg4ceHPk1JdPPkFBWdXZZoyvvpw8ckMN1w2CFw6kTzUcpSARiFcUS6WqEbJEf1M73gNxJCAMe8tnWtffrdVh6dLdF5cm3xY7iD9ceGlsoy07MPP8vA0I4b6KZdzO8yvIznpqtFN8oFSrmh5EHTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717676782; c=relaxed/simple; bh=igd2ZMr0xCbNbEsiWofsuTjgVc3ffaGh82okIEZzyM0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=W0IUqHXgkwe6B8744NEB7/VRqp5M4ytO8s9RZoMsqh86TAi/74dL7TH9dRGjLnjyMf/PnIdZjQk1lVESSwsOP40gS9Afy4jRVN2kHBaAJYQ9IBJXkDseJVVEd6+OI5nmBgYKJYxyd3gEuW9exPZrozSU2NjWCn7DSLiWwgTUefA= 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=eNudmZPJ; arc=none smtp.client-ip=209.85.128.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 Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42148c0cb1aso10055315e9.3 for ; Thu, 06 Jun 2024 05:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717676778; x=1718281578; 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=FiI3m8vqYXd8PfuguZOQIaxz1AuCQiEaVMJX02AGxvE=; b=eNudmZPJTLkQnOQ24gt/Skk+1X5/sYUK0Oz0DoCYxfXoFEqMUP0EXp3iofTqpXQJN7 wBf2iRCeppQwBRQpjwTisrVbqemfYvgjDFjy43atXNFWxs3Q6lGqitIJHr4yHDV3sMur iB+lLO5ZpKHZhnyawBNrEykxXi4quMk3u81iLPEyW2pFHdD6GufZXQDgEi03378X0Sg7 AXdCJXbjYGqedFzgpzOvfSOUu4BMEgDlmERVRn2tW+U36DGYz1yN6ICbsaTBgcFg5yMz D4CeOaEIPVhltsCaXU4NNBYq0p9ufXJnJSn0zERf4u9HfI/wNSx+MZGxm7guYeNfbJJa kvwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717676778; x=1718281578; 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=FiI3m8vqYXd8PfuguZOQIaxz1AuCQiEaVMJX02AGxvE=; b=CAmQvfkDzbAIe/K/qmIpD0Pen3sM/hcAXjUYtX3zFYBzZKrcc6217DolUrXKmpyd20 emZddTTi4pf6KArweTZ2GW1qZ0rDmB6ZVZwd/wXzWJpZwU5kQ6heC7iuwkgXyAzjTuTe uLrOiyhciQWd7FthKCgIOxRhlIuu5c0JoSzxX5CJhNsS3nqXYPJXpbmTBX6IUN1DG4z1 qep9c+QhRbo6GgsAi2UYKaawsCYuu9pKuJv2PH3OeSA5dnq0KXhbHz9uaxUsjTg3612f T4J65CitJ56+fZGvlhckdPppd9f9/ML36ekSE5krjCm/9u4s/A52xHuqboLMZJWKY+yg //NA== X-Forwarded-Encrypted: i=1; AJvYcCUCUjopiuHry2Mgqizvj4AqdlVQhcZFLbunIvJmHz5aOtojYtgCYEZj7CzyvIoFHw6l/aEzSSrLJaqYjjsnj4oOjtJUjJrW2D6R3vY0 X-Gm-Message-State: AOJu0YyzRn2nrd2D2KXLi8TJ4z9DT0UQ/ee4WI1BORP2I3rY5DWvxBn+ PLwZ5NdqZV7QyG5UpMlVTuBj1tTPYTm/10yMVSzB7z+136qDE8hg0vhNGRZcsxUBCH6gxXaCIE2 Y X-Received: by 2002:a05:600c:4c27:b0:421:29f2:8e4d with SMTP id 5b1f17b1804b1-421562cf261mr41990315e9.14.1717676778212; Thu, 06 Jun 2024 05:26:18 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4216412972fsm275325e9.47.2024.06.06.05.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:26:17 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: broonie@kernel.org Cc: perex@perex.cz, lgirdwood@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, krzk+dt@kernel.org, neil.armstrong@linaro.org, krzysztof.kozlowski@linaro.org, Srinivas Kandagatla Subject: [PATCH v2 0/2] ASoC: codecs: lpass: add support for v2.5 rx macro Date: Thu, 6 Jun 2024 13:25:57 +0100 Message-Id: <20240606122559.116698-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1039; i=srinivas.kandagatla@linaro.org; h=from:subject; bh=K1mJNZxOIlhm1uxG3APaaUP4eSPSxJUaQjy9GT5ncJw=; b=owEBbQGS/pANAwAKAXqh/VnHNFU3AcsmYgBmYarX3/ZCfd3+897zKJBq147tlwsUVTmwyuPdF LcFsxioHEWJATMEAAEKAB0WIQQi509axvzi9vce3Y16of1ZxzRVNwUCZmGq1wAKCRB6of1ZxzRV Ny/TB/4v2jd5jJxptFB5xKmvnQoU8xf6CUtH8dTh82WLx7FLpAyrkguvQt3F0F+9Lnk3WU+iepf /Q7mJI0PJWgT8Zwc1tazHbXa57U/4tCbGeVNPaCQBIMmHxDCbXena98So/8/XujOaToMWWY+vKX HcY1Q9J6yOdoPGsLbWYO7Xn1N/RRrrnLLT9sTA4nlPYcZc38Zcm2UxQR59CnCFJigmh69NGuIdC 5ZJ3j3wSGrZUykiBgwrmdLcqPh0XuoS2KNvJU/8ULL6k89eYEwu9gozjJeADyCFyHjZheDihm0J oJqBImXFL7Yu1z2yR8oTYWr+oX6z8E8+zTFtpZ119oaQLe1I X-Developer-Key: i=srinivas.kandagatla@linaro.org; a=openpgp; fpr=ED6472765AB36EC43B3EF97AD77E3FC0562560D6 Content-Transfer-Encoding: 8bit From: Srinivas Kandagatla This patchset adds support to reading codec version and also adds support for v2.5 codec version in rx macro. LPASS 2.5 and up versions have changes in some of the rx blocks which are required to get headset functional correctly. Tested this on SM8450, X13s and x1e80100 crd. This changes also fixes issue with sm8450, sm8550, sm8660 and x1e80100. @Neil Armstrong can you pl test it on sm8650 @Krzysztof Kozlowski can you pl test it on sm8550 Thanks, Srini Changes since v1: - renamed all 2_6 variables with 2.5 - expanded checks for versions from 2.5 till 2.8 Srinivas Kandagatla (2): ASoC: codecs: lpass-macro: add helpers to get codec version ASoC: codec: lpass-rx-macro: add suppor for 2.5 codec version sound/soc/codecs/lpass-macro-common.c | 14 + sound/soc/codecs/lpass-macro-common.h | 35 ++ sound/soc/codecs/lpass-rx-macro.c | 565 +++++++++++++++++++------- sound/soc/codecs/lpass-va-macro.c | 29 ++ 4 files changed, 488 insertions(+), 155 deletions(-) -- 2.21.0