V4L/DVB (12169): em28xx-video: fix VIDIOC_G_FMT and VIDIOC_ENUMFMT with webcams
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 2 Jul 2009 20:34:04 +0000 (17:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 5 Jul 2009 17:30:07 +0000 (14:30 -0300)
commited5f1431ebeeba8cc6739e9cd905a7895b66184c
tree46abb23eee864b1f483322a2c0fd89ef9332b43f
parentf797608cc4f19b44b83ec39c87e14af6fa07826d
V4L/DVB (12169): em28xx-video: fix VIDIOC_G_FMT and VIDIOC_ENUMFMT with webcams

Webcams have different constraints than other v4l devices. This patch
makes the format ioctls to behave better. It also fixes a bug at open()
handler, that were always reseting resolution to the maximum available
one.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-video.c