MLK-11530-04 dmaengine: imx-sdma: add hdmi audio support
authorZidan Wang <zidan.wang@freescale.com>
Fri, 11 Sep 2015 09:03:00 +0000 (17:03 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:32 +0000 (14:48 -0500)
No need to alloc bd for hdmi audio, and the period len of hdmi audio is
0, so add constraint for it.

And correct per_address and per_address2 for hdmi audio.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
drivers/dma/imx-sdma.c

index 71ec6c5..2d3098e 100644 (file)
@@ -1628,8 +1628,8 @@ static int sdma_config(struct dma_chan *chan,
                        SDMA_WATERMARK_LEVEL_HWML;
                sdmac->word_size = dmaengine_cfg->dst_addr_width;
        } else if (sdmac->peripheral_type == IMX_DMATYPE_HDMI) {
-                       sdmac->per_address = dmaengine_cfg->src_addr;
-                       sdmac->per_address2 = dmaengine_cfg->dst_addr;
+                       sdmac->per_address = dmaengine_cfg->dst_addr;
+                       sdmac->per_address2 = dmaengine_cfg->src_addr;
                        sdmac->watermark_level = 0;
        } else if (dmaengine_cfg->direction == DMA_MEM_TO_MEM) {
                        sdmac->word_size = dmaengine_cfg->dst_addr_width;