linux/drivers/media/usb/em28xx
Frank Schaefer 4078d625c9 [media] em28xx: move caching of pointer to vmalloc memory in videobuf to struct em28xx_buffer
In the current code em28xx_urb_data_copy() caches the pointer to the vmalloc
memory in videobuf locally.
The alternative would be to call videobuf_to_vmalloc() for each processed USB
data packet (isoc USB transfers => 64 times per URB) in the em28xx_copy_*()
functions.
With the next commits, the data processing code will be split into functions
for serveral reasons:
- em28xx_urb_data_copy() is generally way to long, making it less readable
- there is code duplication between VBI and video data processing
- support for em25xx data processing (uses a different header and frame
  end signaling mechanism) will be added
This would require extensive usage of pointer-pointers, which usually makes the
code less readable and prone to bugs.
The better solution is to cache the pointer in struct em28xx_buffer.
This also improves consistency, because we already track the buffer fill count there.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-12-22 20:55:01 -02:00
..
em28xx-audio.c
em28xx-cards.c [media] em28xx: add module parameter for selection of the preferred USB transfer type 2012-12-22 18:20:03 -02:00
em28xx-core.c [media] em28xx: improve USB endpoint logic, also use bulk transfers 2012-12-22 18:17:52 -02:00
em28xx-dvb.c [media] em28xx: improve USB endpoint logic, also use bulk transfers 2012-12-22 18:17:52 -02:00
em28xx-i2c.c
em28xx-input.c [media] em28xx: input: fix oops on device removal 2012-12-22 16:14:37 -02:00
em28xx-reg.h [media] em28xx: improve USB endpoint logic, also use bulk transfers 2012-12-22 18:17:52 -02:00
em28xx-vbi.c [media] em28xx: rename struct em28xx_usb_isoc_ctl to em28xx_usb_ctl 2012-12-22 17:56:49 -02:00
em28xx-video.c [media] em28xx: move caching of pointer to vmalloc memory in videobuf to struct em28xx_buffer 2012-12-22 20:55:01 -02:00
em28xx.h [media] em28xx: move caching of pointer to vmalloc memory in videobuf to struct em28xx_buffer 2012-12-22 20:55:01 -02:00
Kconfig em28xx: add two missing tuners at the Kconfig file 2012-12-21 21:14:41 -02:00
Makefile