• Mauro Carvalho Chehab's avatar
    V4L/DVB (7552): videbuf-vmalloc: Corrects mmap code · 968ced78
    Mauro Carvalho Chehab authored
    There were some bugs on videobuf-vmalloc.
    
    Basically, remap were called with a wrong parameter. Due to that, a later remap
    were needed, generating the need of some hacks on videobuf-vmalloc and
    videobuf-core.
    
    This patch fixes the remap and removes the hacks.
    
    TODO:
    
    - V4L2_MEMORY_USERPTR is not implemented yet. This method should be
      properly implemented, in order to work with a few userspace applications.
    
    - The driver also doesn't implement V4L2_MEMORY_OVERLAY. This method is used
      only by a few applications, and are becaming obsolete, due to the increment
      of cpu performance. So, most apps prefer to retrieve data to an internal
      buffer, doing some processing like de-interlacing.
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
    968ced78
videobuf-core.c 24.3 KB