]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50002b03091fa0a06d351a9432e672a6aa51e3de
tree46abb23eee864b1f483322a2c0fd89ef9332b43f
parentcaae06a91015bd920bdfb84843e035979756e80e
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