Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 704a84cc authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Mauro Carvalho Chehab
Browse files

[media] media: Support Intersil/Techwell TW686x-based video capture cards



This commit introduces the support for the Techwell TW686x video
capture IC. This hardware supports a few DMA modes, including
scatter-gather and frame (contiguous).

This commit makes little use of the DMA engine and instead has
a memcpy based implementation. DMA frame and scatter-gather modes
support may be added in the future.

Currently supported chips:
- TW6864 (4 video channels),
- TW6865 (4 video channels, not tested, second generation chip),
- TW6868 (8 video channels but only 4 first channels using
           built-in video decoder are supported, not tested),
- TW6869 (8 video channels, second generation chip).

[mchehab@osg.samsung.com: make checkpatch happy by using "unsigned int"
  instead  of just "unsigned"]
Cc: Krzysztof Halasa <khalasa@piap.pl>
Signed-off-by: default avatarEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Tested-by: default avatarHans Verkuil <hans.verkuil@cisco.com>

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 0ff59f31
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -11258,6 +11258,14 @@ W: https://linuxtv.org
S:	Odd Fixes
F:	drivers/media/pci/tw68/

TW686X VIDEO4LINUX DRIVER
M:	Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
L:	linux-media@vger.kernel.org
T:	git git://linuxtv.org/media_tree.git
W:	http://linuxtv.org
S:	Maintained
F:	drivers/media/pci/tw686x/

TPM DEVICE DRIVER
M:	Peter Huewe <peterhuewe@gmx.de>
M:	Marcel Selhorst <tpmdd@selhorst.net>
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ source "drivers/media/pci/meye/Kconfig"
source "drivers/media/pci/solo6x10/Kconfig"
source "drivers/media/pci/sta2x11/Kconfig"
source "drivers/media/pci/tw68/Kconfig"
source "drivers/media/pci/tw686x/Kconfig"
source "drivers/media/pci/zoran/Kconfig"
endif

+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ obj-$(CONFIG_VIDEO_BT848) += bt8xx/
obj-$(CONFIG_VIDEO_SAA7134) += saa7134/
obj-$(CONFIG_VIDEO_SAA7164) += saa7164/
obj-$(CONFIG_VIDEO_TW68) += tw68/
obj-$(CONFIG_VIDEO_TW686X) += tw686x/
obj-$(CONFIG_VIDEO_DT3155) += dt3155/
obj-$(CONFIG_VIDEO_MEYE) += meye/
obj-$(CONFIG_STA2X11_VIP) += sta2x11/
+18 −0
Original line number Diff line number Diff line
config VIDEO_TW686X
	tristate "Intersil/Techwell TW686x video capture cards"
	depends on PCI && VIDEO_DEV && VIDEO_V4L2 && SND
	depends on HAS_DMA
	select VIDEOBUF2_VMALLOC
	select SND_PCM
	help
	  Support for Intersil/Techwell TW686x-based frame grabber cards.

	  Currently supported chips:
	  - TW6864 (4 video channels),
	  - TW6865 (4 video channels, not tested, second generation chip),
	  - TW6868 (8 video channels but only 4 first channels using
	    built-in video decoder are supported, not tested),
	  - TW6869 (8 video channels, second generation chip).

	  To compile this driver as a module, choose M here: the module
	  will be named tw686x.
+3 −0
Original line number Diff line number Diff line
tw686x-objs := tw686x-core.o tw686x-video.o tw686x-audio.o

obj-$(CONFIG_VIDEO_TW686X) += tw686x.o
Loading