summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/coda
diff options
context:
space:
mode:
authorPhilipp Zabel2018-06-28 17:44:12 +0200
committerMauro Carvalho Chehab2018-07-04 14:05:19 +0200
commit18c227af2c90eee06bd90f751a4b1193ee209d56 (patch)
treee845e27daab53bd33195ad03a757689fce40e7ec /drivers/media/platform/coda
parentmedia: v4l2-ctrls: Fix CID base conflict between MAX217X and IMX (diff)
downloadkernel-qcow2-linux-18c227af2c90eee06bd90f751a4b1193ee209d56.tar.gz
kernel-qcow2-linux-18c227af2c90eee06bd90f751a4b1193ee209d56.tar.xz
kernel-qcow2-linux-18c227af2c90eee06bd90f751a4b1193ee209d56.zip
media: coda: fix encoder source stride
The encoder picture run command takes a picture source stride parameter. This must be set to the output queue's bytesperline, not width. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/coda')
-rw-r--r--drivers/media/platform/coda/coda-bit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c
index 68ed2a564ad1..a585b80ca3ac 100644
--- a/drivers/media/platform/coda/coda-bit.c
+++ b/drivers/media/platform/coda/coda-bit.c
@@ -1362,7 +1362,8 @@ static int coda_prepare_encode(struct coda_ctx *ctx)
if (dev->devtype->product == CODA_960) {
coda_write(dev, 4/*FIXME: 0*/, CODA9_CMD_ENC_PIC_SRC_INDEX);
- coda_write(dev, q_data_src->width, CODA9_CMD_ENC_PIC_SRC_STRIDE);
+ coda_write(dev, q_data_src->bytesperline,
+ CODA9_CMD_ENC_PIC_SRC_STRIDE);
coda_write(dev, 0, CODA9_CMD_ENC_PIC_SUB_FRAME_SYNC);
reg = CODA9_CMD_ENC_PIC_SRC_ADDR_Y;