summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cobalt
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2016-11-11 11:33:05 +0100
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-16 18:28:13 +0100
commit9f750b2b15125e842a2bd0a8c16f06ee65da26a2 (patch)
tree7cd60e3cbc2bb1f99dafa585ed080b3581e2e71e /drivers/media/pci/cobalt
parent[media] mtk-vcodec: add index check in decoder vidioc_qbuf (diff)
downloadlinux-9f750b2b15125e842a2bd0a8c16f06ee65da26a2.tar.xz
linux-9f750b2b15125e842a2bd0a8c16f06ee65da26a2.zip
[media] cobalt: fix copy-and-paste error
The vmr_stat variable was filled with the contents of the control register, not the status register. Classic copy-and-paste error. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/cobalt')
-rw-r--r--drivers/media/pci/cobalt/cobalt-v4l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cobalt/cobalt-v4l2.c b/drivers/media/pci/cobalt/cobalt-v4l2.c
index 3fea24613059..def4a3b37084 100644
--- a/drivers/media/pci/cobalt/cobalt-v4l2.c
+++ b/drivers/media/pci/cobalt/cobalt-v4l2.c
@@ -527,7 +527,7 @@ static void cobalt_video_input_status_show(struct cobalt_stream *s)
cvi_ctrl = ioread32(&cvi->control);
cvi_stat = ioread32(&cvi->status);
vmr_ctrl = ioread32(&vmr->control);
- vmr_stat = ioread32(&vmr->control);
+ vmr_stat = ioread32(&vmr->status);
cobalt_info("rx%d: cvi resolution: %dx%d\n", rx,
ioread32(&cvi->frame_width), ioread32(&cvi->frame_height));
cobalt_info("rx%d: cvi control: %s%s%s\n", rx,