diff options
Diffstat (limited to 'v4l/scripts/make_config_compat.pl')
-rw-r--r-- | v4l/scripts/make_config_compat.pl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/v4l/scripts/make_config_compat.pl b/v4l/scripts/make_config_compat.pl index be577d247..21dce0126 100644 --- a/v4l/scripts/make_config_compat.pl +++ b/v4l/scripts/make_config_compat.pl @@ -26,9 +26,29 @@ sub check_spin_lock() close INNET; } +sub check_snd_ctl_boolean_mono_info() +{ + my $file = "$kdir/include/sound/control.h"; + my $old_syntax = 1; + + open INNET, "<$file" or die "File not found: $file"; + while (<INNET>) { + if (m/snd_ctl_boolean_mono_info/) { + $old_syntax = 0; + last; + } + } + + if ($old_syntax) { + $out.= "\n#define COMPAT_SND_CTL_BOOLEAN_MONO 1\n"; + } + close INNET; +} + sub check_other_dependencies() { check_spin_lock(); + check_snd_ctl_boolean_mono_info(); } # Do the basic rules |