aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pwc/pwc-ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/pwc/pwc-ctrl.c')
-rw-r--r--drivers/media/video/pwc/pwc-ctrl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/video/pwc/pwc-ctrl.c b/drivers/media/video/pwc/pwc-ctrl.c
index 6b8fbddc0747..1593f8deb810 100644
--- a/drivers/media/video/pwc/pwc-ctrl.c
+++ b/drivers/media/video/pwc/pwc-ctrl.c
@@ -1386,11 +1386,16 @@ long pwc_ioctl(struct pwc_device *pdev, unsigned int cmd, void *arg)
1386 { 1386 {
1387 ARG_DEF(int, qual) 1387 ARG_DEF(int, qual)
1388 1388
1389 if (pdev->iso_init) {
1390 ret = -EBUSY;
1391 break;
1392 }
1393
1389 ARG_IN(qual) 1394 ARG_IN(qual)
1390 if (ARGR(qual) < 0 || ARGR(qual) > 3) 1395 if (ARGR(qual) < 0 || ARGR(qual) > 3)
1391 ret = -EINVAL; 1396 ret = -EINVAL;
1392 else 1397 else
1393 ret = pwc_try_video_mode(pdev, pdev->view.x, pdev->view.y, pdev->vframes, ARGR(qual), pdev->vsnapshot); 1398 ret = pwc_set_video_mode(pdev, pdev->view.x, pdev->view.y, pdev->vframes, ARGR(qual), pdev->vsnapshot);
1394 if (ret >= 0) 1399 if (ret >= 0)
1395 pdev->vcompression = ARGR(qual); 1400 pdev->vcompression = ARGR(qual);
1396 break; 1401 break;