summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
Diffstat (limited to 'v4l')
-rw-r--r--v4l/Kconfig.sound26
-rw-r--r--v4l/Makefile26
-rw-r--r--v4l/Makefile.sound11
-rwxr-xr-xv4l/scripts/fix_kconfig.pl21
-rwxr-xr-xv4l/scripts/make_config_compat.pl7
-rwxr-xr-xv4l/scripts/make_kconfig.pl5
-rwxr-xr-xv4l/scripts/make_makefile.pl6
-rwxr-xr-xv4l/scripts/strip-trailing-whitespaces.sh2
-rw-r--r--v4l/versions.txt8
9 files changed, 65 insertions, 47 deletions
diff --git a/v4l/Kconfig.sound b/v4l/Kconfig.sound
index 597c9c72b..55be75cce 100644
--- a/v4l/Kconfig.sound
+++ b/v4l/Kconfig.sound
@@ -45,30 +45,4 @@ config SND_FM801_TEA575X
This will enable support for the old V4L1 API.
-# This is part of sound/oss/Kconfig
-comment "OSS sound"
-
-config SOUND_BT878
- tristate "BT878 audio dma"
- depends on SOUND_PRIME && PCI
- ---help---
- Audio DMA support for bt878 based grabber boards. As you might have
- already noticed, bt878 is listed with two functions in /proc/pci.
- Function 0 does the video stuff (bt848 compatible), function 1 does
- the same for audio data. This is a driver for the audio part of
- the chip. If you say 'Y' here you get a oss-compatible dsp device
- where you can record from. If you want just watch TV you probably
- don't need this driver as most TV cards handle sound with a short
- cable from the TV card to your sound card's line-in.
-
- To compile this driver as a module, choose M here: the module will
- be called btaudio.
-
-config SOUND_TVMIXER
- tristate "TV card (bt848) mixer support"
- depends on SOUND_PRIME && I2C && VIDEO_V4L1
- help
- Support for audio mixer facilities on the BT848 TV frame-grabber
- card.
-
endmenu
diff --git a/v4l/Makefile b/v4l/Makefile
index 52ca3ec54..9d194178f 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -48,6 +48,17 @@ default:: config-compat.h Makefile.media links oss
firmware::
$(MAKE) -C firmware
+v4l2-spec::
+ $(MAKE) -C ../v4l2-spec
+
+dvb-spec::
+ $(MAKE) -C ../dvb-spec/dvbapi
+
+spec:: v4l2-spec dvb-spec
+
+apps::
+ $(MAKE) -C ../v4l2-apps
+
#################################################
# Object specific rules
@@ -265,6 +276,7 @@ config-compat.h:: $(obj)/.version .myconfig scripts/make_config_compat.pl
kernel-links makelinks::
cd ..; v4l/scripts/makelinks.sh $(SRCDIR)
+
#################################################
# Cardlist updating rule
@@ -279,7 +291,10 @@ clean::
@find . -name '*.h' -type l -exec rm '{}' \;
-rm -f *~ *.o *.ko .*.o.cmd .*.ko.cmd *.mod.c av7110_firm.h fdump \
config-compat.h Module.symvers Module.markers modules.order
- make -C firmware clean
+ $(MAKE) -C firmware $@
+ $(MAKE) -C ../v4l2-spec $@
+ $(MAKE) -C ../dvb-spec/dvbapi $@
+ $(MAKE) -C ../v4l2-apps $@
distclean:: clean
-rm -f .version .*.o.flags .*.o.d Makefile.media \
@@ -289,7 +304,9 @@ distclean:: clean
-rm -f scripts/lxdialog scripts/kconfig oss
@find .. -name '*.orig' -exec rm '{}' \;
@find .. -name '*.rej' -exec rm '{}' \;
- $(MAKE) -C firmware distclean
+ $(MAKE) -C firmware $@
+ $(MAKE) -C ../v4l2-spec $@
+ $(MAKE) -C ../v4l2-apps $@
#################################################
# Kernel module insert/removal rules
@@ -344,18 +361,23 @@ $(obj)/Kconfig: $(obj)/.version
xconfig:: $(QCONF) $(obj)/Kconfig
$(QCONF) $(obj)/Kconfig
+ ./scripts/fix_kconfig.pl
gconfig:: $(GCONF) $(obj)/Kconfig
$(GCONF) $(obj)/Kconfig
+ ./scripts/fix_kconfig.pl
config:: $(CONF) $(obj)/Kconfig
$(CONF) $(obj)/Kconfig
+ ./scripts/fix_kconfig.pl
menuconfig:: $(MCONF) lxdialog $(obj)/Kconfig
$(MCONF) $(obj)/Kconfig
+ ./scripts/fix_kconfig.pl
allyesconfig allmodconfig:: $(obj)/.version
./scripts/make_kconfig.pl $(OUTDIR) $(SRCDIR) 1
+ ./scripts/fix_kconfig.pl
# rule to build kernel conf programs
KMAKEVARS := config-targets=1 mixed-targets=0 dot-config=0 SRCDIR=$(SRCDIR)
diff --git a/v4l/Makefile.sound b/v4l/Makefile.sound
index 941dbc65c..38e868629 100644
--- a/v4l/Makefile.sound
+++ b/v4l/Makefile.sound
@@ -3,10 +3,6 @@
snd-bt87x-objs := bt87x.o
obj-$(CONFIG_SND_BT87X) += snd-bt87x.o
-# From sound/oss/Makefile
-
-obj-$(CONFIG_SOUND_BT878) += btaudio.o
-
# From sound/i2c/other/Makefile
snd-tea575x-tuner-objs := tea575x-tuner.o
obj-$(CONFIG_SND_FM801_TEA575X) += snd-tea575x-tuner.o
@@ -22,13 +18,6 @@ sound-install install-sound::
for i in $$files;do if [ -e $$i ]; then echo -n "$$i "; \
install -m 644 -c $$i $(KDIRA)/$$dir; fi; done; echo;
- @dir="sound/oss"; \
- files='btaudio.ko'; \
- echo -e "\nInstalling $(KDIRA)/$$dir files:"; \
- install -d $(KDIRA)/$$dir; \
- for i in $$files;do if [ -e $$i ]; then echo -n "$$i "; \
- install -m 644 -c $$i $(KDIRA)/$$dir; fi; done; echo;
-
@dir="sound/i2c/other"; \
files='snd-tea575x-tuner.ko'; \
echo -e "\nInstalling $(KDIRA)/$$dir files:"; \
diff --git a/v4l/scripts/fix_kconfig.pl b/v4l/scripts/fix_kconfig.pl
new file mode 100755
index 000000000..9a448cbc6
--- /dev/null
+++ b/v4l/scripts/fix_kconfig.pl
@@ -0,0 +1,21 @@
+#!/usr/bin/perl
+use strict;
+
+my $need_changes = 0;
+my $out;
+
+open IN,".config";
+while (<IN>) {
+ if (s/CONFIG_VIDEO_CX88_MPEG=y/CONFIG_VIDEO_CX88_MPEG=m/) {
+ $need_changes=1;
+ $out .= $_;
+ }
+}
+close IN;
+
+if ($need_changes) {
+ printf("There's a known bug with the building system with this kernel. Working around.\n");
+ open OUT, ">.config";
+ print OUT $out;
+ close OUT;
+}
diff --git a/v4l/scripts/make_config_compat.pl b/v4l/scripts/make_config_compat.pl
index d24b5f718..423dcff77 100755
--- a/v4l/scripts/make_config_compat.pl
+++ b/v4l/scripts/make_config_compat.pl
@@ -277,6 +277,13 @@ open IN, "<$infile" or die "File not found: $infile";
$out.= "#ifndef __CONFIG_COMPAT_H__\n";
$out.= "#define __CONFIG_COMPAT_H__\n\n";
$out.= "#include <linux/autoconf.h>\n\n";
+
+# mmdebug.h includes autoconf.h. So if this header exists,
+# then include it before our config is set.
+if (-f "$kdir/include/linux/mmdebug.h") {
+ $out.= "#include <linux/mmdebug.h>\n\n";
+}
+
while(<IN>) {
next unless /^(\S+)\s*:= (\S+)$/;
$out.= "#undef $1\n";
diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl
index 7c259eeb6..144325c34 100755
--- a/v4l/scripts/make_kconfig.pl
+++ b/v4l/scripts/make_kconfig.pl
@@ -537,6 +537,11 @@ if (!defined $kernopts{HAS_IOMEM} && cmp_ver($kernver, '2.6.22') < 0) {
$kernopts{HAS_IOMEM} = 2;
}
+# Kernel < 2.6.22 is missing the HAS_DMA option
+if (!defined $kernopts{HAS_DMA} && cmp_ver($kernver, '2.6.22') < 0) {
+ $kernopts{HAS_DMA} = 2;
+}
+
# Kernel < 2.6.23 is missing the VIRT_TO_BUS option
if (!defined $kernopts{VIRT_TO_BUS} && cmp_ver($kernver, '2.6.23') < 0) {
# VIRT_TO_BUS -> !PPC64
diff --git a/v4l/scripts/make_makefile.pl b/v4l/scripts/make_makefile.pl
index 43c563d47..35ab7dddf 100755
--- a/v4l/scripts/make_makefile.pl
+++ b/v4l/scripts/make_makefile.pl
@@ -192,8 +192,6 @@ open_makefile('../linux/drivers/media/Makefile');
# Creating Install rule
print OUT "media-install::\n";
-print OUT "\t\@echo \"Stripping debug info from files\"\n";
-print OUT "\t\@strip --strip-debug \$(inst-m)\n\n";
removeobsolete();
removeubuntu();
@@ -210,7 +208,9 @@ while (my ($dir, $files) = each %instdir) {
print OUT "if [ \$\$n -eq 4 ]; then echo; echo -n \"\t\t\"; n=1; fi; ";
print OUT "echo -n \"\$\$i \"; ";
print OUT "install -m 644 -c \$\$i \$(DESTDIR)\$(KDIR26)/$dir; fi; done; ";
- print OUT "if [ \$\$n -ne 0 ]; then echo; fi;\n\n";
+ print OUT "if [ \$\$n -ne 0 ]; then echo; ";
+ print OUT "strip --strip-debug \$(DESTDIR)\$(KDIR26)/$dir/*.ko; ";
+ print OUT "fi;\n\n";
}
print OUT "\t@echo\n";
print OUT "\t/sbin/depmod -a \$(KERNELRELEASE) \$(if \$(DESTDIR),-b \$(DESTDIR))\n\n";
diff --git a/v4l/scripts/strip-trailing-whitespaces.sh b/v4l/scripts/strip-trailing-whitespaces.sh
index cb341ce76..def48a67d 100755
--- a/v4l/scripts/strip-trailing-whitespaces.sh
+++ b/v4l/scripts/strip-trailing-whitespaces.sh
@@ -21,7 +21,7 @@ fi
for file in `eval $files`; do
case "$file" in
- *.patch)
+ *.gif | *.pdf | *.patch)
continue
;;
esac
diff --git a/v4l/versions.txt b/v4l/versions.txt
index b05ebdb0f..369cbb15d 100644
--- a/v4l/versions.txt
+++ b/v4l/versions.txt
@@ -8,10 +8,6 @@ VIDEO_PXA27x
[2.6.28]
USB_STV06XX
-[2.6.27]
-# Needs struct pxa_dma_desc
-VIDEO_PXA27x
-
[2.6.26]
# Requires struct i2c_device_id
VIDEO_TVP514X
@@ -33,6 +29,8 @@ USB_STKWEBCAM
DVB_DRX397XD
# Assumes struct input_dev has a dev field
DVB_DM1105
+# This driver needs print_hex_dump
+DVB_FIREDTV
[2.6.20]
#This driver requires HID_REQ_GET_REPORT
@@ -41,6 +39,8 @@ USB_SI470X
USB_GSPCA_FINEPIX
# uses linux/hid.h and struct delayed_work
USB_SI470X
+# due to INIT_WORK changes
+USB_GSPCA_SQ905
[2.6.19]
#This driver were developed at kernel 2.6.19, requiring vmalloc_user/remap_vmalloc_range