mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
To: Demeter Barna <me@fromdisposition.org>
Cc: Michael McAllister <me@michaelmcallister.org>,
	Srinivas Kandagatla <srini@kernel.org>,
	Mark Brown <broonie@kernel.org>,
	lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com,
	linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] ASoC: qcom: q6asm: Correct the 24-bit PCM format
Date: Thu, 26 Nov 2026 10:04:27 +0000	[thread overview]
Message-ID: <fa4d15c9-8657-486f-bf63-bd1290e4ff39@oss.qualcomm.com> (raw)
In-Reply-To: <b6287bf200500db6b8f358b22bfe99e7@fromdisposition.org>

On 11/16/26 4:49 PM, Demeter Barna wrote:
> On 2026-11-16 15:02, Srinivas Kandagatla wrote:
>> If its easy, Could you try:
> 
> Tried it: mode 0 behaves the same as mode 23 and as without the patch.
> S24_LE playback is still 48 dB below S16_LE (the same samples shifted
> into bits 31:8 play at the S16_LE level), and S24_LE capture still

Thanks Demeter for trying out, am back to desk now, I got hold of db845c
and tested 24 bit playback i hit same issue.
Digging down, I learned that the dsp does support 24 bit in two modes.
1. 24 bit packed mode (S24_3LE)
2. 24 bit packed in 32 bit word but only msb aligned.

However linux does 2 with LSB alignment which is why we are hitting the
-48 DB.
Now I did some hacking and added support for S24_3LE which seems to fix
the -48db issue.

So i removed S24_LE and add S24_3LE rather than removing the total 24
bit support.

I will send the patches in next few mins, I would appreciate if you
could give it a spin and see if it helps.

--srini
> comes back in bits 31:8. So the mode doesn't seem to matter on this DSP.


      reply	other threads:[~2026-11-26 10:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-01 19:05 [PATCH] ASoC: qcom: q6asm: Correct the 24-bit capture format Michael McAllister
2026-11-04 20:47 ` Demeter Barna
2026-11-08 18:03   ` [PATCH v2] ASoC: qcom: q6asm: Correct the 24-bit PCM format Michael McAllister
2026-11-15 13:12     ` Srinivas Kandagatla
2026-11-16  9:20       ` Demeter Barna
2026-11-16 15:02         ` Srinivas Kandagatla
2026-11-16 16:49           ` Demeter Barna
2026-11-26 10:04             ` 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=fa4d15c9-8657-486f-bf63-bd1290e4ff39@oss.qualcomm.com \
    --to=srinivas.kandagatla@oss.qualcomm.com \
    --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=me@fromdisposition.org \
    --cc=me@michaelmcallister.org \
    --cc=perex@perex.cz \
    --cc=srini@kernel.org \
    --cc=tiwai@suse.com \
    /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

all inboxes | Powered by JetHome®