summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-03-10 12:40:10 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-03-10 12:40:10 -0300
commit68b04a8f962798f66d06663c1b28d127d2023329 (patch)
tree147b5f69ee289e0c5ffaae46abbf70e1c513b26c /v4l
parent41bcc2d998ea2ff3ed086679f5e203d5cc5eda53 (diff)
downloadmediapointer-dvb-s2-68b04a8f962798f66d06663c1b28d127d2023329.tar.gz
mediapointer-dvb-s2-68b04a8f962798f66d06663c1b28d127d2023329.tar.bz2
Creates a virtual video device driver
From: Mauro Carvalho Chehab <mchehab@infradead.org> The Virtual Video Device Driver (aka vivi) is a device that can be used to: 1) test core v4l functionalities; 2) be a prototype for newer development. Vivi were developed using the best practices for v4l driver. When loaded, it provides a video device that generates a standard color bar, with a timestamp placed at top left corner. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l')
-rw-r--r--v4l/Make.config1
-rw-r--r--v4l/Makefile2
-rwxr-xr-xv4l/scripts/insmod.sh5
3 files changed, 7 insertions, 1 deletions
diff --git a/v4l/Make.config b/v4l/Make.config
index 0dd4365ce..cc4d21e1f 100644
--- a/v4l/Make.config
+++ b/v4l/Make.config
@@ -26,6 +26,7 @@ CONFIG_VIDEO_IVTV := n
CONFIG_DVB_FIRESAT := n
+CONFIG_VIRTUAL_DEVICE := m
CONFIG_VIDEO_CPIA2 := m
# doesn't build on older kernels
diff --git a/v4l/Makefile b/v4l/Makefile
index 1af345804..653b497ca 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -104,6 +104,7 @@ ifeq ($(CONFIG_VIDEO_ALSA),y)
# obj-$(CONFIG_VIDEO_BTTV) += bt87x.o
endif
+obj-$(CONFIG_VIRTUAL_DEVICE) += vivi.o
obj-$(CONFIG_VIDEO_SAA7134) += saa7134.o saa7134-empress.o saa6752hs.o
obj-$(CONFIG_VIDEO_SAA7134) += saa7134-oss.o
obj-$(CONFIG_VIDEO_IR) += ir-common.o
@@ -311,6 +312,7 @@ endif
inst_video += ir-kbd-i2c.ko msp3400.ko
inst_video += tvp5150.ko saa711x.ko saa7134-alsa.ko saa7134-oss.ko
inst_video += saa7115.ko cx25840.ko saa7127.ko compat_ioctl32.ko
+inst_video += vivi.ko
inst_cx88 := cx8800.ko cx8802.ko cx88-alsa.ko
inst_cx88 += cx88-blackbird.ko cx88xx.ko cx88-dvb.ko cx88-vp3054-i2c.ko
inst_saa7134 := saa6752hs.ko saa7134.ko saa7134-empress.ko saa7134-dvb.ko
diff --git a/v4l/scripts/insmod.sh b/v4l/scripts/insmod.sh
index bf22a69ce..e4ebb1494 100755
--- a/v4l/scripts/insmod.sh
+++ b/v4l/scripts/insmod.sh
@@ -122,6 +122,8 @@ case "$1" in
insmod ./saa6752hs.ko
insmod ./em28xx.ko
+ insmod ./vivi.ko
+
echo
;;
debug)
@@ -232,6 +234,7 @@ case "$1" in
insmod ./saa6752hs.ko
insmod ./em28xx.ko
+ insmod ./vivi.ko
echo
;;
unload)
@@ -246,7 +249,7 @@ case "$1" in
# video4linux cards
rmmod cx88-alsa cx88-blackbird cx88-dvb cx88-vp3054-i2c cx8802 cx8800 \
cx88xx saa7134-oss saa7134-alsa saa7134-empress saa7134-dvb \
- saa7134 dvb-bt8xx dst_ca dst bt878 bttv em28xx
+ saa7134 dvb-bt8xx dst_ca dst bt878 bttv em28xx vivi
# frontends
rmmod dib3000mb dib3000mc dib3000_common nxt200x ves1x93 \