All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-media@vger.kernel.org
Cc: Michal Simek <michal.simek@xilinx.com>,
	Chris Kohn <christian.kohn@xilinx.com>,
	Hyun Kwon <hyun.kwon@xilinx.com>,
	Srikanth Thokala <sthokal@xilinx.com>,
	dmaengine@vger.kernel.org
Subject: [PATCH 08/11] dma: xilinx: vdma: icg should be difference of stride and hsize
Date: Mon, 29 Sep 2014 23:27:54 +0300	[thread overview]
Message-ID: <1412022477-28749-9-git-send-email-laurent.pinchart@ideasonboard.com> (raw)
In-Reply-To: <1412022477-28749-1-git-send-email-laurent.pinchart@ideasonboard.com>

From: Srikanth Thokala <srikanth.thokala@xilinx.com>

This patch modifies the icg field to match the description
as mentioned in the DMA Linux framework.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---
 drivers/dma/xilinx/xilinx_vdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Cc: dmaengine@vger.kernel.org

diff --git a/drivers/dma/xilinx/xilinx_vdma.c b/drivers/dma/xilinx/xilinx_vdma.c
index b3b8761..a67ced1 100644
--- a/drivers/dma/xilinx/xilinx_vdma.c
+++ b/drivers/dma/xilinx/xilinx_vdma.c
@@ -963,7 +963,7 @@ xilinx_vdma_dma_prep_interleaved(struct dma_chan *dchan,
 	hw = &segment->hw;
 	hw->vsize = xt->numf;
 	hw->hsize = xt->sgl[0].size;
-	hw->stride = xt->sgl[0].icg <<
+	hw->stride = (xt->sgl[0].icg + xt->sgl[0].size) <<
 			XILINX_VDMA_FRMDLY_STRIDE_STRIDE_SHIFT;
 	hw->stride |= chan->config.frm_dly <<
 			XILINX_VDMA_FRMDLY_STRIDE_FRMDLY_SHIFT;
-- 
1.8.5.5


  parent reply	other threads:[~2014-09-29 20:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29 20:27 [PATCH 00/11] Xilinx Video IP Core support Laurent Pinchart
2014-09-29 20:27 ` [PATCH 01/11] media: entity: Document the media_entity_ops structure Laurent Pinchart
2014-09-29 20:27 ` [PATCH 02/11] v4l: Add RBG and RGB 8:8:8 media bus formats on 24 and 32 bit busses Laurent Pinchart
2014-09-29 20:27 ` [PATCH 03/11] v4l: Sort YUV formats of v4l2_mbus_pixelcode Laurent Pinchart
2014-09-29 20:27 ` [PATCH 04/11] v4l: Add VUY8 24 bits bus format Laurent Pinchart
2014-09-29 20:27 ` [PATCH 05/11] v4l: of: Add v4l2_of_parse_link() function Laurent Pinchart
2014-09-29 20:27 ` [PATCH 06/11] dma: xilinx: vdma: Check if the segment list is empty in a descriptor Laurent Pinchart
2014-09-29 20:27 ` [PATCH 07/11] dma: xilinx: vdma: Allow only one chunk in a line Laurent Pinchart
2014-09-29 20:27 ` Laurent Pinchart [this message]
     [not found] ` <1412022477-28749-1-git-send-email-laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>
2014-09-29 20:27   ` [PATCH 09/11] v4l: xilinx: Add Xilinx Video IP core Laurent Pinchart
2014-09-29 20:27     ` Laurent Pinchart
2014-09-30 14:03     ` Hans Verkuil
2014-11-01 13:24       ` Laurent Pinchart
2014-11-03  9:47         ` Hans Verkuil
2014-11-05 15:31           ` Laurent Pinchart
2014-09-29 20:27 ` [PATCH 10/11] v4l: xilinx: Add Video Timing Controller driver Laurent Pinchart
2014-09-29 20:27 ` [PATCH 11/11] v4l: xilinx: Add Test Pattern Generator driver Laurent Pinchart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1412022477-28749-9-git-send-email-laurent.pinchart@ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=christian.kohn@xilinx.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=hyun.kwon@xilinx.com \
    --cc=linux-media@vger.kernel.org \
    --cc=michal.simek@xilinx.com \
    --cc=sthokal@xilinx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.