summaryrefslogtreecommitdiff
path: root/v4l/scripts
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-01 18:52:26 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-01 18:52:26 -0300
commitc9eb88fca53978c15a4beea4bef308178cd1443a (patch)
tree7f1d3538e3a1006ed5c2273daad8bdcc37de5c31 /v4l/scripts
parent49ba95a8ac08643c195b798ae687b2fe663ca01a (diff)
parentb9b51ddc029b64b109b6d9130f6e15876cadca20 (diff)
downloadmediapointer-dvb-s2-c9eb88fca53978c15a4beea4bef308178cd1443a.tar.gz
mediapointer-dvb-s2-c9eb88fca53978c15a4beea4bef308178cd1443a.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/tda18271
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-xv4l/scripts/make_config_compat.pl20
1 files changed, 20 insertions, 0 deletions
diff --git a/v4l/scripts/make_config_compat.pl b/v4l/scripts/make_config_compat.pl
index 785f9ff72..e538c925b 100755
--- a/v4l/scripts/make_config_compat.pl
+++ b/v4l/scripts/make_config_compat.pl
@@ -26,6 +26,25 @@ sub check_spin_lock()
close INNET;
}
+sub check_sound_driver_h()
+{
+ my $file = "$kdir/include/sound/driver.h";
+ my $old_syntax = 1;
+
+ open INNET, "<$file" or return;
+ while (<INNET>) {
+ if (m/This file is deprecated/) {
+ $old_syntax = 0;
+ last;
+ }
+ }
+
+ if ($old_syntax) {
+ $out.= "\n#define NEED_SOUND_DRIVER_H 1\n";
+ }
+ close INNET;
+}
+
sub check_snd_pcm_rate_to_rate_bit()
{
my $file = "$kdir/include/sound/pcm.h";
@@ -67,6 +86,7 @@ sub check_snd_ctl_boolean_mono_info()
sub check_other_dependencies()
{
check_spin_lock();
+ check_sound_driver_h();
check_snd_ctl_boolean_mono_info();
check_snd_pcm_rate_to_rate_bit();
}