From: Lars-Peter Clausen Date: Sat, 11 Jan 2014 13:02:19 +0000 (+0100) Subject: ASoC: generic-dmaengine-pcm: Check DMA residue granularity X-Git-Tag: v3.14-rc1~143^2^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=478028e088d6a94666d8a776be2cd2291faf3bbd;p=pandora-kernel.git ASoC: generic-dmaengine-pcm: Check DMA residue granularity The dmaengine framework now exposes the granularity with which it is able to report the transfer residue for a certain DMA channel. Check the granularity in the generic dmaengine PCM driver and a) Set the SNDRV_PCM_INFO_BATCH if the granularity is per period or worse. b) Fallback to the (race condition prone) period counting if the driver does not support any residue reporting. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed