]> git.baikalelectronics.ru Git - kernel.git/commit
[media] gspca_main: Allow switching from read to mmap / userptr mode
authorHans de Goede <hdegoede@redhat.com>
Fri, 31 Dec 2010 10:41:54 +0000 (07:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:44:59 +0000 (11:44 -0200)
commit67be83bfec97d8e5bd49ce70b21029e7e9770c15
tree18d3c2db4f357767e8d189e68e8089b524d7230b
parent9ef14adcead8dc7eedc90162940487028f8a4bc0
[media] gspca_main: Allow switching from read to mmap / userptr mode

Some applications (xawtv, qv4l2) mix read and mmap calls. Allow switching
from read mode back to mmap mode (by doing a reqbufs).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c