Skip to content

em28xx: refactor the frame data processing code

Frank Schäfer linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9em28xx: refactor get_next_buf() and use it for vbi data, toodrivers/media/usb/em28xx/em28xx-video.c+15 -430 replies
2/9em28xx: use common function for video and vbi buffer completiondrivers/media/usb/em28xx/em28xx-video.c+5 -280 replies
3/9em28xx: remove obsolete field 'frame' from struct em28xx_bufferdrivers/media/usb/em28xx/em28xx.h+0 -10 replies
4/9em28xx: move field 'pos' from struct em28xx_dmaqueue to struct em28xx_bufferdrivers/media/usb/em28xx/em28xx-video.c drivers/media/usb/em28xx/em28xx.h+29 -320 replies
5/9em28xx: refactor VBI data processing code in em28xx_urb_data_copy()drivers/media/usb/em28xx/em28xx-video.c+36 -410 replies
6/9em28xx: move caching of pointer to vmalloc memory in videobuf to struct em28xx_bufferdrivers/media/usb/em28xx/em28xx-video.c drivers/media/usb/em28xx/em28xx.h+12 -200 replies
7/9em28xx: em28xx_urb_data_copy(): move duplicate code for capture_type=0 and capture_type=2 to a functiondrivers/media/usb/em28xx/em28xx-video.c+25 -200 replies
8/9em28xx: move the em2710/em2750/em28xx specific frame data processing code to a separate functiondrivers/media/usb/em28xx/em28xx-video.c+90 -800 replies
9/9em28xx: clean up and unify functions em28xx_copy_vbi() em28xx_copy_video()drivers/media/usb/em28xx/em28xx-video.c+20 -450 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] em28xx: refactor the frame data processing code

This patch series refactors the frame data processing code in em28xx-video.c to
- reduce code duplication
- fix a bug in vbi data processing
- prepare for adding em25xx/em276x frame data processing support
- clean up the code and make it easier to understand

It applies on top of my previous patch series
"em28xx: add support fur USB bulk transfers"
"em28xx: use common urb data copying function for vbi and non-vbi data streams"

The changes have been tested with the following devices:
- "SilverCrest 1.3 MPix webcam" (progressive, non-vbi)
- "Hauppauge HVR-900 (65008/A1C0)" (interlaced, vbi enabled and disabled)

Frank Schäfer (9):
em28xx: refactor get_next_buf() and use it for vbi data, too
em28xx: use common function for video and vbi buffer completion
em28xx: remove obsolete field 'frame' from struct em28xx_buffer
em28xx: move field 'pos' from struct em28xx_dmaqueue to struct
em28xx_buffer
em28xx: refactor VBI data processing code in em28xx_urb_data_copy()
em28xx: move caching of pointer to vmalloc memory in videobuf to
struct em28xx_buffer
em28xx: em28xx_urb_data_copy(): move duplicate code for
capture_type=0 and capture_type=2 to a function
em28xx: move the em2710/em2750/em28xx specific frame data processing
code to a separate function
em28xx: clean up and unify functions em28xx_copy_vbi()

    em28xx_copy_video()
 drivers/media/usb/em28xx/em28xx-video.c |  374 ++++++++++++-------------------
 drivers/media/usb/em28xx/em28xx.h       |   12 +-

2 Dateien geändert, 154 Zeilen hinzugefügt(+), 232 Zeilen entfernt(-)

Signature · 1 line
1.7.10.4