Re: [PATCH v4] ASoC: qcom: audioreach: support multichannel PCM formats

From: Zhangfei Gao

Date: Tue Nov 17 2026 - 21:42:03 EST


On Wed, Nov 18, 2026 at 5:48 AM Mark Brown <broonie@xxxxxxxxxx> wrote:
>
> On Tue, Nov 17, 2026 at 01:03:28PM +0800, Zhangfei Gao wrote:
> > AudioReach currently rejects PCM streams with more than four channels in
> > the PCM and shared-memory media format paths.
> >
> > This prevents TDM links that expose more channels, such as the 6-channel
> > playback path used on SA8797P Ride, from being configured.
> >
> > Reuse q6dsp_map_channels() to support multichannel PCM formats and use
> > the common PCM channel limit definition.
> >
> > Reviewed-by: Prasad Kumpatla <prasad.kumpatla@xxxxxxxxxxxxxxxx>
> > Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxxxxxxxx>
> > Tested-by: Shawn Guo <shengchao.guo@xxxxxxxxxxxxxxxx>
> > Signed-off-by: Zhangfei Gao <zhangfei.gao@xxxxxxxxxxxxxxxx>
> > ---
> >
> > v4: Rebased onto sound.git/for-next at 7cd6b1fd8f9c
>
> This doesn't apply against current code, please check and resend (there
> were more updates since then).

Sorry, has resend rebased onto sound.git/for-next at fcfcd6db32adbd.

The conflict was caused by commit 347e02073b08
("ASoC: qcom: q6apm-lpass-dais: Reset the codec DMA channel map in hw_params").
The fix remains preserved because q6dsp_map_channels() clears the
channel map before populating it.

I also noticed that q6dsp_map_channels() does not support 7-channel
configurations.
Is this intentional because there is no single default mapping for a
7-channel layout?

Thanks