@@ -32,7 +32,6 @@
#include <sound/pcm_params.h>
#include <sound/soc.h>
-#include <plat/dma.h> /* needed just for OMAP_DMA_SYNC_PACKET */
#include "omap-pcm.h"
static const struct snd_pcm_hardware omap_pcm_hardware = {
@@ -83,15 +82,6 @@ static int omap_pcm_hw_params(struct snd_pcm_substream *substream,
return 0;
prtd->dma_data = dma_data;
- /*
- * This is the only parameter we don't handle with DMA
- * engine - so we insist on OMAP_DMA_SYNC_PACKET here.
- */
- if (dma_data->sync_mode != OMAP_DMA_SYNC_PACKET) {
- pr_warn("ALSA: omap-dma: DMA using non-packet mode?\n");
- return -EINVAL;
- }
-
req = dma_data->dma_req;
err = snd_dmaengine_pcm_open(substream, omap_dma_filter_fn, &req);
if (err)
OMAP dmaengine now supports element mode also in cyclic DMA so we do not need to block non PACKET modes. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- sound/soc/omap/omap-pcm.c | 10 ---------- 1 file changed, 10 deletions(-)