[alsa-devel] [PATCH] ALSA: pcm_dmaengine: correct the error handler of dmaengine_prep_dma_cyclic

Lars-Peter Clausen lars at metafoo.de
Thu Dec 25 10:02:33 CET 2014


On 12/25/2014 05:41 AM, Barry Song wrote:
> From: Barry Song <Baohua.Song at csr.com>
>
> preparing cyclic DMA description can fail either due to DMA desc list
> is full(-ENOMEM), or due to the coming DMA configuration is illegal or
> not supported by the acting DMA hardware(other ERR codes).

According to the API definition this returns either NULL or a valid 
descriptor, so the behavior in pcm_dmaengine is correct. Maybe your 
particular dmaengine driver as a incorrect implementation.

- Lars


More information about the Alsa-devel mailing list