Skip to content

Commit

Permalink
[media] v4l2: sn9c102 incorrectly blocks FMT_SN9C10X
Browse files Browse the repository at this point in the history
Missing break

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Alan Cox authored and Mauro Carvalho Chehab committed Nov 21, 2012
1 parent 6c058fb commit 9001a4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/usb/sn9c102/sn9c102_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2481,11 +2481,13 @@ sn9c102_vidioc_enum_framesizes(struct sn9c102_device* cam, void __user * arg)
if (frmsize.pixel_format != V4L2_PIX_FMT_SN9C10X &&
frmsize.pixel_format != V4L2_PIX_FMT_SBGGR8)
return -EINVAL;
break;
case BRIDGE_SN9C105:
case BRIDGE_SN9C120:
if (frmsize.pixel_format != V4L2_PIX_FMT_JPEG &&
frmsize.pixel_format != V4L2_PIX_FMT_SBGGR8)
return -EINVAL;
break;
}

frmsize.type = V4L2_FRMSIZE_TYPE_STEPWISE;
Expand Down

0 comments on commit 9001a4b

Please sign in to comment.