mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-01 06:42:31 +00:00
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>
This commit is contained in:
parent
71bf2e08ce
commit
07f7db4ce7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user