Re: [PATCH] Keymap compression and budget-ci IR conversion (update)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I demand that I definitely did write...

> The patch set can be downloaded here:
> <URL:http://www.youmustbejoking.demon.co.uk/progs/linux/dvb-ir-20060206.patch.tar.gz>

> Reference changeset is 3316.

I've updated that patch set - part of patch 4 was missing.

-- 
| Darren Salt | nr. Ashington, | d youmustbejoking,demon,co,uk
| Debian,     | Northumberland | s zap,tartarus,org
| RISC OS     | Toon Army      | @
|   Retrocomputing: a PC card in a Risc PC

Force has no place where there is need of skill.
diff -ur linux/drivers/media/common/ir-keymaps-make.pl~ linux/drivers/media/common/ir-keymaps-make.pl
--- linux/drivers/media/common/ir-keymaps-make.pl~	2006-01-19 16:00:27.000000000 +0000
+++ linux/drivers/media/common/ir-keymaps-make.pl	2006-01-20 16:38:23.000000000 +0000
@@ -5,6 +5,8 @@
 # Written by Darren Salt <linux@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
 # Licence: GPL v2 or later (see below).
 
+use POSIX;
+
 print <<'EOF';
 /*  Keytables for supported remote controls.
     This file is automatically generated.
@@ -82,7 +84,8 @@
     print "\nconst s16 ${label}[] = {";
     my $i = -1;
     my $prev = 0;
-    my $col = 0;
+    # default to 128 entries if the keymap is empty
+    my $col = output (0, $max > 0 ? 1 << ceil (log ($max)/log 2) : 128);
     while (++$i <= $max)
     {
       next unless defined $mapping{$i};
_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux