summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Knorr <devnull@localhost>2004-02-22 01:59:35 +0000
committerGerd Knorr <devnull@localhost>2004-02-22 01:59:35 +0000
commitbf27ea1722664c76261b5f3c11f6310fe6c8bef4 (patch)
tree42324df12864253409fb4935a67431e45436186e
parent229b130306c830b9f1c410ccd6060b65aa68dcec (diff)
downloadmediapointer-dvb-s2-bf27ea1722664c76261b5f3c11f6310fe6c8bef4.tar.gz
mediapointer-dvb-s2-bf27ea1722664c76261b5f3c11f6310fe6c8bef4.tar.bz2
- import video4linux drivers.
-rw-r--r--linux/Documentation/video4linux/README.ir72
-rw-r--r--linux/Documentation/video4linux/bttv/MAKEDEV28
-rw-r--r--v4l/.bp/2.4/20_v4l25
-rw-r--r--v4l/.bp/2.4/30_video-buf2
-rw-r--r--v4l/.bp/2.4/31_bt8322
-rw-r--r--v4l/.bp/2.4/31_i2c10
-rw-r--r--v4l/.bp/2.4/31_ir-input2
-rw-r--r--v4l/.bp/2.4/31_tuner2
-rw-r--r--v4l/.bp/2.4/32_bttv13
-rw-r--r--v4l/.bp/2.4/33_saa713416
-rw-r--r--v4l/.bp/2.4/35_documentation12
-rw-r--r--v4l/scripts/config.bttv9
-rw-r--r--v4l/scripts/config.cx889
-rw-r--r--v4l/scripts/config.saa71349
-rw-r--r--v4l/scripts/modules.sh51
15 files changed, 242 insertions, 0 deletions
diff --git a/linux/Documentation/video4linux/README.ir b/linux/Documentation/video4linux/README.ir
new file mode 100644
index 000000000..0da47a847
--- /dev/null
+++ b/linux/Documentation/video4linux/README.ir
@@ -0,0 +1,72 @@
+
+infrared remote control support in video4linux drivers
+======================================================
+
+
+basics
+------
+
+Current versions use the linux input layer to support infrared
+remote controls. I suggest to download my input layer tools
+from http://bytesex.org/snapshot/input-<date>.tar.gz
+
+Modules you have to load:
+
+ saa7134 statically built in, i.e. just the driver :)
+ bttv ir-kbd-gpio or ir-kbd-i2c depending on your
+ card.
+
+ir-kbd-gpio and ir-kbd-i2c don't support all cards lirc supports
+(yet), mainly for the reason that the code of lirc_i2c and lirc_gpio
+was very confusing and I decided to basically start over from scratch.
+Feel free to contact me in case of trouble. Note that the ir-kbd-*
+modules work on 2.6.x kernels only through ...
+
+
+how it works
+------------
+
+The modules register the remote as keyboard within the linux input
+layer, i.e. you'll see the keys of the remote as normal key strokes
+(if CONFIG_INPUT_KEYBOARD is enabled).
+
+Using the event devices (CONFIG_INPUT_EVDEV) it is possible for
+applications to access the remote via /dev/input/event<n> devices.
+You might have to create the special files using "/sbin/MAKEDEV
+input". The input layer tools mentioned above use the event device.
+
+The input layer tools are nice for trouble shooting, i.e. to check
+whenever the input device is really present, which of the devices it
+is, check whenever pressing keys on the remote actually generates
+events and the like. You can also use the kbd utility to change the
+keymaps (2.6.x kernels only through).
+
+
+using with lircd
+================
+
+The cvs version of the lircd daemon supports reading events from the
+linux input layer (via event device). The input layer tools tarball
+comes with a lircd config file.
+
+
+using without lircd
+===================
+
+XFree86 likely can be configured to recognise the remote keys. Once I
+simply tried to configure one of the multimedia keyboards as input
+device, which had the effect that XFree86 recognised some of the keys
+of my remote control and passed volume up/down key presses as
+XF86AudioRaiseVolume and XF86AudioLowerVolume key events to the X11
+clients.
+
+It likely is possible to make that fly with a nice xkb config file,
+I know next to nothing about that through.
+
+
+Have fun,
+
+ Gerd
+
+--
+Gerd Knorr <kraxel@bytesex.org>
diff --git a/linux/Documentation/video4linux/bttv/MAKEDEV b/linux/Documentation/video4linux/bttv/MAKEDEV
new file mode 100644
index 000000000..6c29ba43b
--- /dev/null
+++ b/linux/Documentation/video4linux/bttv/MAKEDEV
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+function makedev () {
+
+ for dev in 0 1 2 3; do
+ echo "/dev/$1$dev: char 81 $[ $2 + $dev ]"
+ rm -f /dev/$1$dev
+ mknod /dev/$1$dev c 81 $[ $2 + $dev ]
+ chmod 666 /dev/$1$dev
+ done
+
+ # symlink for default device
+ rm -f /dev/$1
+ ln -s /dev/${1}0 /dev/$1
+}
+
+# see http://roadrunner.swansea.uk.linux.org/v4lapi.shtml
+
+echo "*** new device names ***"
+makedev video 0
+makedev radio 64
+makedev vtx 192
+makedev vbi 224
+
+#echo "*** old device names (for compatibility only) ***"
+#makedev bttv 0
+#makedev bttv-fm 64
+#makedev bttv-vbi 224
diff --git a/v4l/.bp/2.4/20_v4l2 b/v4l/.bp/2.4/20_v4l2
new file mode 100644
index 000000000..e723cd8ed
--- /dev/null
+++ b/v4l/.bp/2.4/20_v4l2
@@ -0,0 +1,5 @@
+srcdiff videodev.h include/linux/videodev.h
+srcdiff videodev2.h include/linux/videodev2.h
+#srcdiff videodev.c drivers/media/video/videodev.c
+srcdiff v4l1-compat.c drivers/media/video/v4l1-compat.c
+srcdiff v4l2-common.c drivers/media/video/v4l2-common.c
diff --git a/v4l/.bp/2.4/30_video-buf b/v4l/.bp/2.4/30_video-buf
new file mode 100644
index 000000000..2093f8b68
--- /dev/null
+++ b/v4l/.bp/2.4/30_video-buf
@@ -0,0 +1,2 @@
+srcdiff video-buf.h drivers/media/video/video-buf.h
+srcdiff video-buf.c drivers/media/video/video-buf.c
diff --git a/v4l/.bp/2.4/31_bt832 b/v4l/.bp/2.4/31_bt832
new file mode 100644
index 000000000..c79f408f2
--- /dev/null
+++ b/v4l/.bp/2.4/31_bt832
@@ -0,0 +1,2 @@
+srcdiff bt832.c drivers/media/video/bt832.c
+srcdiff bt832.h drivers/media/video/bt832.h
diff --git a/v4l/.bp/2.4/31_i2c b/v4l/.bp/2.4/31_i2c
new file mode 100644
index 000000000..f16dc543d
--- /dev/null
+++ b/v4l/.bp/2.4/31_i2c
@@ -0,0 +1,10 @@
+srcdiff audiochip.h drivers/media/video/audiochip.h
+srcdiff id.h drivers/media/video/id.h
+srcdiff msp3400.c drivers/media/video/msp3400.c
+srcdiff msp3400.h drivers/media/video/msp3400.h
+srcdiff tda7432.c drivers/media/video/tda7432.c
+srcdiff tda9875.c drivers/media/video/tda9875.c
+srcdiff tda9887.c drivers/media/video/tda9887.c
+srcdiff tvaudio.h drivers/media/video/tvaudio.h
+srcdiff tvaudio.c drivers/media/video/tvaudio.c
+srcdiff tvmixer.c drivers/media/video/tvmixer.c
diff --git a/v4l/.bp/2.4/31_ir-input b/v4l/.bp/2.4/31_ir-input
new file mode 100644
index 000000000..1bfdb8f01
--- /dev/null
+++ b/v4l/.bp/2.4/31_ir-input
@@ -0,0 +1,2 @@
+srcdiff ir-common.h drivers/media/video/ir-common.h
+srcdiff ir-common.c drivers/media/video/ir-common.c
diff --git a/v4l/.bp/2.4/31_tuner b/v4l/.bp/2.4/31_tuner
new file mode 100644
index 000000000..c16cc99c2
--- /dev/null
+++ b/v4l/.bp/2.4/31_tuner
@@ -0,0 +1,2 @@
+srcdiff tuner.h drivers/media/video/tuner.h
+srcdiff tuner.c drivers/media/video/tuner.c
diff --git a/v4l/.bp/2.4/32_bttv b/v4l/.bp/2.4/32_bttv
new file mode 100644
index 000000000..08e87761d
--- /dev/null
+++ b/v4l/.bp/2.4/32_bttv
@@ -0,0 +1,13 @@
+srcdiff bt848.h drivers/media/video/bt848.h
+srcdiff bttv.h drivers/media/video/bttv.h
+srcdiff bttvp.h drivers/media/video/bttvp.h
+srcdiff bttv-driver.c drivers/media/video/bttv-driver.c
+srcdiff bttv-cards.c drivers/media/video/bttv-cards.c
+srcdiff bttv-if.c drivers/media/video/bttv-if.c
+srcdiff bttv-risc.c drivers/media/video/bttv-risc.c
+srcdiff bttv-vbi.c drivers/media/video/bttv-vbi.c
+srcdiff bttv-gpio.c drivers/media/video/bttv-gpio.c
+srcdiff bttv-i2c.c drivers/media/video/bttv-i2c.c
+
+srcdiff btcx-risc.h drivers/media/video/btcx-risc.h
+srcdiff btcx-risc.c drivers/media/video/btcx-risc.c
diff --git a/v4l/.bp/2.4/33_saa7134 b/v4l/.bp/2.4/33_saa7134
new file mode 100644
index 000000000..f3c14babb
--- /dev/null
+++ b/v4l/.bp/2.4/33_saa7134
@@ -0,0 +1,16 @@
+srcdiff saa7134.h drivers/media/video/saa7134.h
+srcdiff saa7134-reg.h drivers/media/video/saa7134-reg.h
+
+srcdiff saa7134-core.c drivers/media/video/saa7134-core.c
+srcdiff saa7134-cards.c drivers/media/video/saa7134-cards.c
+srcdiff saa7134-i2c.c drivers/media/video/saa7134-i2c.c
+srcdiff saa7134-tvaudio.c drivers/media/video/saa7134-tvaudio.c
+srcdiff saa7134-video.c drivers/media/video/saa7134-video.c
+srcdiff saa7134-vbi.c drivers/media/video/saa7134-vbi.c
+srcdiff saa7134-oss.c drivers/media/video/saa7134-oss.c
+srcdiff saa7134-ts.c drivers/media/video/saa7134-ts.c
+srcdiff saa7134-input.c drivers/media/video/saa7134-input.c
+
+srcdiff saa6752hs.h drivers/media/video/saa6752hs.h
+srcdiff saa6752hs.c drivers/media/video/saa6752hs.c
+
diff --git a/v4l/.bp/2.4/35_documentation b/v4l/.bp/2.4/35_documentation
new file mode 100644
index 000000000..234e772ba
--- /dev/null
+++ b/v4l/.bp/2.4/35_documentation
@@ -0,0 +1,12 @@
+srcdiff doc/README.bttv Documentation/video4linux/bttv/README
+srcdiff doc/insmod-options Documentation/video4linux/bttv/Insmod-options
+srcdiff doc/MAKEDEV Documentation/video4linux/bttv/MAKEDEV
+srcdiff doc/CARDLIST.bttv Documentation/video4linux/bttv/CARDLIST
+srcdiff doc/Sound-FAQ Documentation/video4linux/bttv/Sound-FAQ
+srcdiff doc/Specs Documentation/video4linux/bttv/Specs
+srcdiff doc/Tuners Documentation/video4linux/bttv/Tuners
+srcdiff doc/Cards Documentation/video4linux/bttv/Cards
+
+#srcdiff README.freeze Documentation/video4linux/bttv/README.freeze
+#srcdiff README.quirks Documentation/video4linux/bttv/README.quirks
+#srcdiff Modules.conf Documentation/video4linux/bttv/Modules.conf
diff --git a/v4l/scripts/config.bttv b/v4l/scripts/config.bttv
new file mode 100644
index 000000000..29eba6e69
--- /dev/null
+++ b/v4l/scripts/config.bttv
@@ -0,0 +1,9 @@
+MDIR := v4l2
+snap := video4linux
+
+CONFIG_VIDEO_BTTV := m
+CONFIG_VIDEO_CX88 := n
+CONFIG_VIDEO_SAA7134 := n
+CONFIG_VIDEO_IR := m
+CONFIG_VIDEO_TUNER := m
+CONFIG_VIDEO_TVAUDIO := m
diff --git a/v4l/scripts/config.cx88 b/v4l/scripts/config.cx88
new file mode 100644
index 000000000..9e26a4183
--- /dev/null
+++ b/v4l/scripts/config.cx88
@@ -0,0 +1,9 @@
+MDIR := v4l2
+snap := video4linux
+
+CONFIG_VIDEO_BTTV := n
+CONFIG_VIDEO_CX88 := m
+CONFIG_VIDEO_SAA7134 := n
+CONFIG_VIDEO_IR := n
+CONFIG_VIDEO_TUNER := m
+CONFIG_VIDEO_TVAUDIO := n
diff --git a/v4l/scripts/config.saa7134 b/v4l/scripts/config.saa7134
new file mode 100644
index 000000000..286b63aba
--- /dev/null
+++ b/v4l/scripts/config.saa7134
@@ -0,0 +1,9 @@
+MDIR := v4l2
+snap := video4linux
+
+CONFIG_VIDEO_BTTV := n
+CONFIG_VIDEO_CX88 := n
+CONFIG_VIDEO_SAA7134 := m
+CONFIG_VIDEO_IR := m
+CONFIG_VIDEO_TUNER := m
+CONFIG_VIDEO_TVAUDIO := m
diff --git a/v4l/scripts/modules.sh b/v4l/scripts/modules.sh
new file mode 100644
index 000000000..8bbc62253
--- /dev/null
+++ b/v4l/scripts/modules.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+function xrmmod() {
+ local module regex
+ module="$1"
+ regex=`echo $module | sed -e 's/[-_]/[-_]/g'`
+ grep -qe "$regex" /proc/modules || return 0
+ echo "unload $module"
+ if test "$UID" = "0"; then
+ /sbin/rmmod $module
+ else
+ sudo /sbin/rmmod $module
+ fi
+}
+
+function xinsmod() {
+ local module regex file args
+ module="$1"
+ shift
+ args="$*"
+ regex=`echo $module | sed -e 's/[-_]/[-_]/g'`
+ grep -qe "$regex" /proc/modules && return
+ file=""
+ test -f "$module.o" && file="$module.o"
+ test -f "$module.ko" && file="$module.ko"
+ if test "$file" != ""; then
+ echo "load $file $args"
+ if test "$UID" = "0"; then
+ /sbin/insmod $file $args
+ else
+ sudo /sbin/insmod $file $args
+ fi
+ else
+ echo "load $module $args"
+ if test "$UID" = "0"; then
+ /sbin/modprobe $module $args
+ else
+ sudo /sbin/modprobe $module $args
+ fi
+ fi
+}
+
+function v4l2basic() {
+ for module in i2c-core i2c-algo-bit \
+ videodev v4l2-common v4l1-compat \
+ video-buf \
+ soundcore
+ do
+ xinsmod $module
+ done
+}