Re: [PATCH v5] ASoC: loongson: Fix invalid position error in ls_pcm_pointer

From: Mark Brown

Date: Thu Jun 11 2026 - 06:21:37 EST


On Thu, Jun 11, 2026 at 09:00:45AM +0800, Li Jun wrote:
> The "invalid position" error occurred when the DMA position descriptor
> returned an invalid address value (e.g., pos = -1048838144). This happened

> + addr > runtime->dma_addr + runtime->dma_bytes) {
> + dev_warn(dev, "WARNING! dma_addr:0x%llx\n", addr);
> + snd_pcm_stop_xrun(substream);
> x = 0;

Sorry, I shouldn't have suggested adding the _xrun() - it'll deadlock in
pointer(). I'll fix this up myself, no need to resend.

Attachment: signature.asc
Description: PGP signature