提交 720b3dfa 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] cx231xx: don't reset width/height on first open

The last set width/height must be preserved as per the spec.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 b31077a8
...@@ -1871,9 +1871,6 @@ static int cx231xx_v4l2_open(struct file *filp) ...@@ -1871,9 +1871,6 @@ static int cx231xx_v4l2_open(struct file *filp)
v4l2_fh_init(&fh->fh, vdev); v4l2_fh_init(&fh->fh, vdev);
if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && dev->users == 0) { if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && dev->users == 0) {
dev->width = norm_maxw(dev);
dev->height = norm_maxh(dev);
/* Power up in Analog TV mode */ /* Power up in Analog TV mode */
if (dev->board.external_av) if (dev->board.external_av)
cx231xx_set_power_mode(dev, cx231xx_set_power_mode(dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册