1
0
Fork 0

V4L/DVB (10291): em28xx: fix VIDIOC_G_CTRL when there is no msp34xx device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
hifive-unleashed-5.1
Hans Verkuil 2009-01-21 17:06:42 -03:00 committed by Mauro Carvalho Chehab
parent 71bf2e08ce
commit 07f7db4ce7
1 changed files with 6 additions and 1 deletions

View File

@ -1008,8 +1008,13 @@ static int vidioc_g_ctrl(struct file *file, void *priv,
if (dev->board.has_msp34xx)
em28xx_i2c_call_clients(dev, VIDIOC_G_CTRL, ctrl);
else
else {
rc = em28xx_get_ctrl(dev, ctrl);
if (rc < 0) {
em28xx_i2c_call_clients(dev, VIDIOC_G_CTRL, ctrl);
rc = 0;
}
}
mutex_unlock(&dev->lock);
return rc;