Browse Source

[media] sta2x11_vip: convert to videobuf2, control framework, file handler

This patch re-write the driver and use the videobuf2
interface instead of the old videobuf. Moreover, it uses also
the control framework which allows the driver to inherit
controls from its subdevice (ADV7180). Finally the driver does not
implement custom file operation but it uses the generic ones from
videobuf2 and v4l2_fh

Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Federico Vaga 12 years ago
parent
commit
8dc97ea20c
2 changed files with 285 additions and 542 deletions
  1. 1 1
      drivers/media/pci/sta2x11/Kconfig
  2. 284 541
      drivers/media/pci/sta2x11/sta2x11_vip.c

+ 1 - 1
drivers/media/pci/sta2x11/Kconfig

@@ -2,7 +2,7 @@ config STA2X11_VIP
 	tristate "STA2X11 VIP Video For Linux"
 	depends on STA2X11
 	select VIDEO_ADV7180 if MEDIA_SUBDRV_AUTOSELECT
-	select VIDEOBUF_DMA_CONTIG
+	select VIDEOBUF2_DMA_CONTIG
 	depends on PCI && VIDEO_V4L2 && VIRT_TO_BUS
 	help
 	  Say Y for support for STA2X11 VIP (Video Input Port) capture

File diff suppressed because it is too large
+ 284 - 541
drivers/media/pci/sta2x11/sta2x11_vip.c


Some files were not shown because too many files changed in this diff