aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/usb/pwc/pwc-ctrl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/usb/pwc/pwc-ctrl.c b/drivers/media/usb/pwc/pwc-ctrl.c
index 1f506fde97d0..3a1618580ed6 100644
--- a/drivers/media/usb/pwc/pwc-ctrl.c
+++ b/drivers/media/usb/pwc/pwc-ctrl.c
@@ -179,6 +179,8 @@ static int set_video_mode_Nala(struct pwc_device *pdev, int size, int pixfmt,
179 return -EINVAL; 179 return -EINVAL;
180 if (frames < 4) 180 if (frames < 4)
181 frames = 4; 181 frames = 4;
182 else if (size > PSZ_QCIF && frames > 15)
183 frames = 15;
182 else if (frames > 25) 184 else if (frames > 25)
183 frames = 25; 185 frames = 25;
184 frames = frames2frames[frames]; 186 frames = frames2frames[frames];