summaryrefslogtreecommitdiff
path: root/openwrt/target/linux/linux-2.4/patches/generic/222-sound.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-01-10 19:43:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-01-10 19:43:00 +0000
commitea35a1edbebfa01ee51e625e670a65fa985fc1b5 (patch)
treedbdaf951693481c46030073d2fe14fe6b87b2d88 /openwrt/target/linux/linux-2.4/patches/generic/222-sound.patch
parent60cc7e45d753052032679a2ce4f4e323ee1da8f6 (diff)
downloadmtk-20170518-ea35a1edbebfa01ee51e625e670a65fa985fc1b5.zip
mtk-20170518-ea35a1edbebfa01ee51e625e670a65fa985fc1b5.tar.gz
mtk-20170518-ea35a1edbebfa01ee51e625e670a65fa985fc1b5.tar.bz2
large target/linux cleanup
SVN-Revision: 2877
Diffstat (limited to 'openwrt/target/linux/linux-2.4/patches/generic/222-sound.patch')
-rw-r--r--openwrt/target/linux/linux-2.4/patches/generic/222-sound.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/openwrt/target/linux/linux-2.4/patches/generic/222-sound.patch b/openwrt/target/linux/linux-2.4/patches/generic/222-sound.patch
deleted file mode 100644
index 351e8c2..0000000
--- a/openwrt/target/linux/linux-2.4/patches/generic/222-sound.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff -rNu linux-2.4.30/drivers/sound/sound_core.c linux-2.4.30.new/drivers/sound/sound_core.c
---- linux-2.4.30/drivers/sound/sound_core.c 2001-10-01 05:26:08.000000000 +1000
-+++ linux-2.4.30.new/drivers/sound/sound_core.c 2005-08-27 22:52:55.061719968 +1000
-@@ -174,9 +174,9 @@
- }
-
- if (r == low)
-- sprintf (name_buf, "%s", name);
-+ snprintf (name_buf, sizeof(name_buf), "%s", name);
- else
-- sprintf (name_buf, "%s%d", name, (r - low) / SOUND_STEP);
-+ snprintf (name_buf, sizeof(name_buf), "%s%d", name, (r - low) / SOUND_STEP);
- s->de = devfs_register (devfs_handle, name_buf,
- DEVFS_FL_NONE, SOUND_MAJOR, s->unit_minor,
- S_IFCHR | mode, fops, NULL);
-@@ -507,9 +507,9 @@
- * ALSA toplevel modules for soundcards, thus we need
- * load them at first. [Jaroslav Kysela <perex@jcu.cz>]
- */
-- sprintf(mod, "sound-slot-%i", unit>>4);
-+ snprintf(mod, sizeof(mod), "sound-slot-%i", unit>>4);
- request_module(mod);
-- sprintf(mod, "sound-service-%i-%i", unit>>4, chain);
-+ snprintf(mod, sizeof(mod), "sound-service-%i-%i", unit>>4, chain);
- request_module(mod);
- spin_lock(&sound_loader_lock);
- s = __look_for_unit(chain, unit);