Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp42677lqs; Thu, 13 Jun 2024 03:18:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKk90Lpo7I1cxfauLfpmaBDIH9/+20g4LGjoVeRzQVgrh8Ft8ZAzUACILSSWGoQkpSCJOD1dlp2wrKFKxF48Cks0zX+m789W882bcUQw== X-Google-Smtp-Source: AGHT+IHZPwgvegbQRonJX8CwEz25W2Xd4kFW36WYudcNY6b63J8LzHtzcJbV3dHiifosOLGCFH9y X-Received: by 2002:a17:902:ea07:b0:1f7:3f66:fc7b with SMTP id d9443c01a7336-1f83b5de9bamr45665355ad.16.1718273932309; Thu, 13 Jun 2024 03:18:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718273932; cv=pass; d=google.com; s=arc-20160816; b=D7dQ9PfZsLD1SXW4UybDAdrkAQ6lDtkrxkcBg07mhij7Ff+WI1ZFj64ZfrQM+xc5eg 4IO43PdFKNu+6g/JY6c494kWDjPuhdzwiqOzE7c47eSiKp7zPaAYp2hlMEm43//v2xqt iDiTrD09ogEh4nipTjo3eGhM7SSfS9CMwEUYsdnu2rGpxEIDNRkC4+HF8plKUzAojPo+ p5Pg5yMYCBnCziyhq6eNJgDAynVG2tnYLLLrzPimfX8VJuPe19QFaxyrwYjkqWLQY1Dp 72Ty2yw4gd/whgGoTGWOfZ2vwRNNaEZA0VifULhobJiPpZoKFN1AY4PQAJkC0MQ5AYNK jdxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=gz8Jr9tAelbj0mz7l81bvUL2cfeH6O4EAvWrEVqr2pk=; fh=oOo7d6Sw+oocIq7bL4oJbRJ2AnrunmNWgxw5pbTvzYc=; b=BKBHNILOi5gb8Gq9vosK0SNw7XfT/XYiZEfji891T3FqOpk8owNQJ/4nHsDESaXYPL 60WrJNxasgwuTHfFQk2wxsoCWj49U5fICKpHssiuSSFpnb0gALD6JOKgKU4BSyLHrZPQ Yyn1XtdNPD76Yh+3PeHulJWouIPWA5cX57usIXX7//oU34Yjs9/hNtBZacLJqC6noYNA yhgICgAvunSw2+FcXQ0auHaWoR+M7ixZ7AQ8Ok81sg/fH2JpMRgIIvAzJ0AY1InF9W9r 1AQs5pmPUpq8U51JHIiJsE+wdprbulSnD09JIVXyn0JIxb9OjibThBS0pErUSnh3a+Lc oXyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Ormup/ZL"; 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-213012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f855e3cbdesi10402715ad.28.2024.06.13.03.18.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 03:18:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Ormup/ZL"; 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-213012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213012-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8255A284C8F for ; Thu, 13 Jun 2024 10:18:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 083BD1422D3; Thu, 13 Jun 2024 10:18:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ormup/ZL" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 6478E14036F for ; Thu, 13 Jun 2024 10:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718273925; cv=none; b=tWQVbw9C9+scJ3CcGqkaQxZ8kQHUVNtQ/HEbn5jyavCd2SdFksX5Oo440K8X87AG+9ZCahGZNvRol0fs9jMf92Drqp7DsC5Yj7iLDSb4e702ANH+bK9SYL8FdSsO3muxu91LmODK1ma7NH4aLk8K97QcWdYVDaN0GXrLojNTju4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718273925; c=relaxed/simple; bh=YUvQFJH1xmyseUhBIv/gGjLJET5MmLDldQznxc2OK4o=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=k588uwZ3DrnfpyP3idOZCg0nhEkpRLvBvyBI1qq0+FVW4EpWmVnAqHFj0XgWzMESZaNK+lcftl/YAk8zprWo4jq+z9Mp59XxeBl7AMIoiUicuqb+PMe3IWRQInzuU13eOo8EYJ6NozbNn+pZ+u5Yr1/jp5I/NA6NXEhzffvdoqM= 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=Ormup/ZL; arc=none smtp.client-ip=209.85.167.53 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-lf1-f53.google.com with SMTP id 2adb3069b0e04-52bc274f438so1143767e87.0 for ; Thu, 13 Jun 2024 03:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718273921; x=1718878721; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=gz8Jr9tAelbj0mz7l81bvUL2cfeH6O4EAvWrEVqr2pk=; b=Ormup/ZLLXr7loOq+hSvF3xgfLnE48kD4+o0l2vT+X2aR0+rYbETkss489YXtlqs/t 7UH+v7l+TvD1UZRnrsrX0tyb3GrfCmSxLZGmli/UGnsT6lcI8VwhqjYXQNhX49FlJzIY qK+8jGg9bJCz+h13tZld3tV7eE0RAn2VoxbEo+Bp6xJWuxBXVXXihPLcBoe0mek3Y05m lwANqX5rE3VPbJpiHBITXvFkfEGLHTIb1BVpSGeu8N+0YJXyHfrYSehqipoOgWufO7c6 VphzQKLVIg9Ywo3PNO/boFyNN74WOOOtbSPQGtu1REO0DvvQpSw4LShTHu2EVzpS4KUG jHFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718273921; x=1718878721; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=gz8Jr9tAelbj0mz7l81bvUL2cfeH6O4EAvWrEVqr2pk=; b=dk0aQCYwFcMlr89Tzo+N34IurIAx+TgWlxMqmZT2Ev9SB7B8BjM4MtOMhvhQLgtD7i h/K7pQC9ZkaAJy2Wpo0PkEoGXsP82KqOJJVHmx/JPq1pGZmqSSoNGo0S8/zWaMYI8ywf nONVp9lCLwIUvIx/OHFqDr/RLRqXPDPeMIsSukkXH/LwFX3D320mhliUjvkxOEYzaGdf aK4NvH4V81pJVwpmTDTcNvbZNf9Owg6k43QLQxwxVPmzOdXhLdKx0+GohaEEQm6nGuU1 DuTBNpR+jWcc+Djxr+W4I82+XFDTpN/MD3CSdFLfLMNuUwFrtwvHUryg/LM9aJzmglcA 27jg== X-Forwarded-Encrypted: i=1; AJvYcCXVJ2HhUH2NZq7RjZy03P9dqDKMbMjCUUS5SU8hgqvAKMyaoiXcHSHooifrqIArtxV3ZsJJcBU1ArDDTeSdAHICBpTV2P2C4aK99w2l X-Gm-Message-State: AOJu0YwHGKCl4rQFGZprOphiGTVtfX8pH1cC3NmS8ibPX/e37eOTKv6t Y77rcWVafog8XWvN4wdcYSkuh/i4N21jIv0E54YOomUxF4bkkvxcNbTZqF7vttc= X-Received: by 2002:ac2:518c:0:b0:52c:247d:2cfa with SMTP id 2adb3069b0e04-52c9a3b8da6mr2924093e87.13.1718273921419; Thu, 13 Jun 2024 03:18:41 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:7d7b:a9a3:893:f3c7? ([2a01:e0a:982:cbb0:7d7b:a9a3:893:f3c7]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-422874e73b1sm57037815e9.45.2024.06.13.03.18.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jun 2024 03:18:41 -0700 (PDT) Message-ID: <9d7285d2-0dec-4d6f-a3f2-1490261c7206@linaro.org> Date: Thu, 13 Jun 2024 12:18:40 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v2 0/2] ASoC: codecs: lpass: add support for v2.5 rx macro To: srinivas.kandagatla@linaro.org, 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, krzysztof.kozlowski@linaro.org References: <20240606122559.116698-1-srinivas.kandagatla@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJ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Organization: Linaro In-Reply-To: <20240606122559.116698-1-srinivas.kandagatla@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 06/06/2024 14:25, srinivas.kandagatla@linaro.org wrote: > 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(-) > Tested-by: Neil Armstrong # on SM8650-HDK Successfully fixes dual channel output on headset, previously I would only hear sound on a single channel. Thanks, Neil