From: Shawn Guo <redacted>
ZTE ZX dma driver is not ZX296702 specific. It works for not only
ZX296702 but also other ZTE ZX family platforms like ZX296718. Let's
rename the file to reflect that.
Signed-off-by: Shawn Guo <redacted>
---
drivers/dma/Kconfig | 4 ++--
drivers/dma/Makefile | 2 +-
drivers/dma/{zx296702_dma.c => zx_dma.c} | 0
3 files changed, 3 insertions(+), 3 deletions(-)
rename drivers/dma/{zx296702_dma.c => zx_dma.c} (100%)
diff --git a/drivers/dma/zx296702_dma.c b/drivers/dma/zx_dma.csimilarity index 100%rename from drivers/dma/zx296702_dma.crename to drivers/dma/zx_dma.c
--
1.9.1
From: Shawn Guo <redacted>
The zx_dma driver supports cyclic transfer mode. Let's set DMA_CYCLIC
cap_mask bit to make that clear, and avoid unnecessary failure when
clients request channel via dma_request_chan_by_mask() with DMA_CYCLIC
bit set in mask.
Signed-off-by: Shawn Guo <redacted>
---
drivers/dma/zx_dma.c | 1 +
1 file changed, 1 insertion(+)
From: Shawn Guo <redacted>
The dma residue is defined as the free space to end of transfer buffer,
which could be multiple segments chained together. So the residue
calculation in zx_dma_tx_status() works for both slave_sg and cyclic
case. But unfortunately, the 'index' is wrong. It should plus one,
because the current segment is already occupied and shouldn't be counted
into free space.
This fixes the HDMI audio noise issue we see on ZX296718 with SPDIF
interface.
Signed-off-by: Shawn Guo <redacted>
---
drivers/dma/zx_dma.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Shawn Guo <redacted>
ZTE ZX dma driver is not ZX296702 specific. It works for not only
ZX296702 but also other ZTE ZX family platforms like ZX296718. Let's
rename the file to reflect that.
Signed-off-by: Shawn Guo <redacted>
---
drivers/dma/Kconfig | 4 ++--
drivers/dma/Makefile | 2 +-
drivers/dma/{zx296702_dma.c => zx_dma.c} | 0
3 files changed, 3 insertions(+), 3 deletions(-)
rename drivers/dma/{zx296702_dma.c => zx_dma.c} (100%)
From: Shawn Guo <redacted>
The zx_dma driver supports cyclic transfer mode. Let's set DMA_CYCLIC
cap_mask bit to make that clear, and avoid unnecessary failure when
clients request channel via dma_request_chan_by_mask() with DMA_CYCLIC
bit set in mask.
Signed-off-by: Shawn Guo <redacted>
---
drivers/dma/zx_dma.c | 1 +
1 file changed, 1 insertion(+)
From: Shawn Guo <redacted>
The dma residue is defined as the free space to end of transfer buffer,
which could be multiple segments chained together. So the residue
calculation in zx_dma_tx_status() works for both slave_sg and cyclic
case. But unfortunately, the 'index' is wrong. It should plus one,
because the current segment is already occupied and shouldn't be counted
into free space.
This fixes the HDMI audio noise issue we see on ZX296718 with SPDIF
interface.
Signed-off-by: Shawn Guo <redacted>
---
drivers/dma/zx_dma.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
On Thu, Dec 15, 2016 at 10:03:35PM +0800, Shawn Guo wrote:
From: Shawn Guo <redacted>
ZTE ZX dma driver is not ZX296702 specific. It works for not only
ZX296702 but also other ZTE ZX family platforms like ZX296718. Let's
rename the file to reflect that.