Re: [PATCH v2] ASoC: qcom: q6asm: Correct the 24-bit PCM format

From: Srinivas Kandagatla

Date: Thu Nov 26 2026 - 05:04:38 EST


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.