Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Srinivas Kandagatla <srini@kernel.org>
To: Luca Weiss <luca.weiss@fairphone.com>,
	Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>,
	Srinivas Kandagatla <srini@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
	Takashi Iwai <tiwai@suse.com>,
	Dmitry Baryshkov <lumag@kernel.org>
Cc: ~postmarketos/upstreaming@lists.sr.ht,
	phone-devel@vger.kernel.org, linux-sound@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ASoC: codecs: lpass-va-macro: Fix LPASS Codec Version for SC7280
Date: Sun, 14 Jun 2026 22:40:20 +0100	[thread overview]
Message-ID: <04c39f6d-e01b-4336-b077-c744f8a85c07@kernel.org> (raw)
In-Reply-To: <DJ654FFH3T09.1VKAT493JUWP3@fairphone.com>



On 6/11/26 11:16 AM, Luca Weiss wrote:
> On Wed Jun 10, 2026 at 12:52 PM CEST, Srinivas Kandagatla wrote:
>>
>> Thanks Luca for the patch,
>>
>> On 5/26/26 4:03 PM, Luca Weiss wrote:
>>> According to both the static definition in downstream...
>>>
>>>   yupik-audio-overlay.dtsi: qcom,bolero-version = <4>;
>>>   #define BOLERO_VERSION_2_0 0x0004)
>>>
>>> and the runtime detection:
>>>
>>>   CDC_VA_TOP_CSR_CORE_ID_0=0x1
>>>   CDC_VA_TOP_CSR_CORE_ID_1=0xf
>>>
>>> SC7280 has LPASS Codec Version 2.0 and not, as declared with
>>> sm8250_va_data LPASS_CODEC_VERSION_1_0.
>>>
>>> Create new va_macro_data with .version not set to use the runtime
>>> detection and correctly get .version = LPASS_CODEC_VERSION_2_0.
>>>
>>> Fixes: 77212f300bfd ("ASoC: codecs: lpass-va-macro: set the default codec version for sm8250")
>>
>> Can you help me understand if this change was fixing any issue, if so
>> can you pl add CC stable
> 
> I'm pretty sure that just came around because I was looking at the
> different parts of the audio stack and trying to figure out if there's
> something wrong somewhere, and how the different versions floating
> around downstream & upstream & documentation match up.
> 
> I'm not aware of a situation where this change makes a difference -
> apart from the dev_dbg() print.
> 
>>
>>> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
>>> ---
>>> I'm fairly confident this is correct, but please someone double check
>>> this if they can.
>>
>> Yes, you are correct, this is actually Bolero 1.1.0 Version where things
>> have changed in codec. if you read major number it will be 1
>> This has been artificially tagged as 2.0 in the driver.
>> So the change that you are doing is correct.
>>
>> Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
> 
> Thanks a lot for checking! Opens even more questions in my mind, why
> 1.1.0 == 2.0 but somebody somewhere decided that at some point I guess.

I have no idea why this was done, Looking at the downstream drivers, am
guessing that there were two different variants of lpass codec drivers
in downstream one is less than v1 and other one is v2. 1.1.0 is
supported in v2 driver.

--srini
> 
> Regards
> Luca


      reply	other threads:[~2026-06-14 21:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-26 15:03 [PATCH] ASoC: codecs: lpass-va-macro: Fix LPASS Codec Version for SC7280 Luca Weiss
2026-06-09 14:52 ` Konrad Dybcio
2026-06-10 10:52 ` Srinivas Kandagatla
2026-06-11 10:16   ` Luca Weiss
2026-06-14 21:40     ` Srinivas Kandagatla [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=04c39f6d-e01b-4336-b077-c744f8a85c07@kernel.org \
    --to=srini@kernel.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=luca.weiss@fairphone.com \
    --cc=lumag@kernel.org \
    --cc=perex@perex.cz \
    --cc=phone-devel@vger.kernel.org \
    --cc=srinivas.kandagatla@oss.qualcomm.com \
    --cc=tiwai@suse.com \
    --cc=~postmarketos/upstreaming@lists.sr.ht \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox