summaryrefslogtreecommitdiff
path: root/drivers/media/video/pwc/Kconfig
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-06-06 18:33:44 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 20:53:43 (GMT)
commit885fe18f5542fe283a17f70583383c6cadcba1c3 (patch)
tree26b4ce7a0ae7910c1cf46d4ffc0c42edbf0713dc /drivers/media/video/pwc/Kconfig
parent5f40d915521f5a8ae4551a21871a062201ba9981 (diff)
downloadlinux-fsl-qoriq-885fe18f5542fe283a17f70583383c6cadcba1c3.tar.xz
[media] pwc: Replace private buffer management code with videobuf2
Looking at the pwc buffer management code has made it clear to me it needed some serious fixing. Not only was there a ton of code duplication even internally to pwc (read and mmap wait for frame code was duplicated), the code also was outright buggy. With the worst offender being dqbuf, which just round robin returned all the mmap buffers, without paying any attention to them being queued by the app with qbuf or not. And qbuf itself was a noop. So I set out to fix this and already had some cleanups in place when I read Jonathan Corbet's lwn article on videobuf2, this inspired me to just rip out the buffer management code and replace it with videobuf2, greatly reducing the amount of code, and fixing all bugs in one go: Many thanks to Jonathan for the timely article on this ! Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pwc/Kconfig')
-rw-r--r--drivers/media/video/pwc/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/pwc/Kconfig b/drivers/media/video/pwc/Kconfig
index 8da42e4..d63d0a8 100644
--- a/drivers/media/video/pwc/Kconfig
+++ b/drivers/media/video/pwc/Kconfig
@@ -1,6 +1,7 @@
config USB_PWC
tristate "USB Philips Cameras"
depends on VIDEO_V4L2
+ select VIDEOBUF2_VMALLOC
---help---
Say Y or M here if you want to use one of these Philips & OEM
webcams: