Skip to contentSkip to conversation

media: au0828 - convert to use videobuf2

PATCH In review Shuah Khan 2 participants 2 messages Jan 29, 2015 – Feb 2, 2015 Media (V4L/DVB)

lore
Share & tools
lore

Shuah Khan

author
#0 lore raw

PATCH v6 1/1 media: au0828 - convert to use videobuf2

Convert au0828 to use videobuf2. Tested with NTSC. Tested video and vbi devices with xawtv, tvtime, and vlc. Ran v4l2-compliance to ensure there are no failures.

Video compliance test results summary:
Total: 75, Succeeded: 75, Failed: 0, Warnings: 18

Vbi compliance test results summary:
Total: 75, Succeeded: 75, Failed: 0, Warnings: 0

---
Changes sunce patch v5:
- Fixed lock warning in au0828_stop_streaming() caused by calling v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); while holding slock. Removed call to audio_setup which causes audio glitch.
- Fixed au0828_analog_register() error paths to release vb2 queues.
Changes since patch v4:
- Updated commit log with correct compliance test results.
Changes since patch v3:
- Removed unnecessary ret = 0 in au0828_v4l2_open()
- Rest of the patches in the v3 series are good. No need to resend them.

 drivers/media/usb/au0828/Kconfig        |   2 +-
 drivers/media/usb/au0828/au0828-vbi.c   | 122 ++--
 drivers/media/usb/au0828/au0828-video.c | 963 ++++++++++++--------------------
 drivers/media/usb/au0828/au0828.h       |  61 +-
 4 files changed, 442 insertions(+), 706 deletions(-)
drivers/media/usb/au0828/Kconfig +1 -1
index 1d410ac..78b797e 100644
@@ -4,7 +4,7 @@ config VIDEO_AU0828
 	depends on I2C && INPUT && DVB_CORE && USB
 	select I2C_ALGOBIT
 	select VIDEO_TVEEPROM
-	select VIDEOBUF_VMALLOC
+	select VIDEOBUF2_VMALLOC
 	select DVB_AU8522_DTV if MEDIA_SUBDRV_AUTOSELECT
 	select MEDIA_TUNER_XC5000 if MEDIA_SUBDRV_AUTOSELECT
 	select MEDIA_TUNER_MXL5007T if MEDIA_SUBDRV_AUTOSELECT
drivers/media/usb/au0828/au0828-vbi.c +39 -83

150 lines not on this page · raw message

drivers/media/usb/au0828/au0828-video.c +370 -593

1,442 lines not on this page · raw message

drivers/media/usb/au0828/au0828.h +32 -29

124 lines not on this page · raw message

Signature · 1 line
2.1.0
Reviewed-by on v6 1/1
#1 lore raw
Quoted 5 lines · Shuah Khan

Convert au0828 to use videobuf2. Tested with NTSC. Tested video and vbi devices with xawtv, tvtime, and vlc. Ran v4l2-compliance to ensure there are no failures.

Quoted 7 lines

Video compliance test results summary:
Total: 75, Succeeded: 75, Failed: 0, Warnings: 18

Vbi compliance test results summary:
Total: 75, Succeeded: 75, Failed: 0, Warnings: 0

Regards,
--Prabhakar Lad