Re: [PATCH v2 0/5] ASoC: q6apm: fix under runs and fragment sizes

From: Johan Hovold
Date: Fri Feb 21 2025 - 03:29:47 EST


On Thu, Feb 20, 2025 at 06:38:11PM +0100, Johan Hovold wrote:
> On Thu, Feb 20, 2025 at 04:28:42PM +0000, Srinivas Kandagatla wrote:

> > On Qualcomm Audioreach setup, some of the audio artifacts are seen in
> > both recording and playback. These patches fix issues by
> > 1. Adjusting the fragment size that dsp can service.
> > 2. schedule available playback buffers in time for dsp to not hit under runs
> > 3. remove some of the manual calculations done to get hardware pointer.
> >
> > With these patches, am able to see Audio quality improvements.
> >
> > Any testing would be appreciated.
>
> With this series, the choppy (robotic) capture when using pipewire
> appears to be fixed (pulseaudio worked before).
>
> Playback is still choppy (heavily distorted), though, and now it also
> appears to be too slow.
>
> I tested using pw-record and pw-play (and mpv) on the T14s (6.14-rc3).

Retested this morning and realised that playback is only choppy (and too
slow) while I have pavucontrol open. That would be nice to fix if
possible, but this is still a great improvement since pipewire was not
usable at all before these changes.

Tested-by: Johan Hovold <johan+linaro@xxxxxxxxxx>

Johan