* [ALSA STABLE 1/3] a few more -- fix the "enable" module parameter behaviour
@ 2006-04-13 1:44 Rene Herman
0 siblings, 0 replies; only message in thread
From: Rene Herman @ 2006-04-13 1:44 UTC (permalink / raw)
To: Takashi Iwai; +Cc: ALSA devel, Linux Kernel
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
Hi Takashi.
The !enable[i] patch is also applicable to sound/drivers. This gets them
all.
sound/drivers/dummy.c | 4 +++-
sound/drivers/mpu401/mpu401.c | 4 +++-
sound/drivers/serial-u16550.c | 4 +++-
sound/drivers/virmidi.c | 4 +++-
4 files changed, 12 insertions(+), 4 deletions(-)
Signed-off-by: Rene Herman <rene.herman@keyaccess.nl>
[-- Attachment #2: alsa_platform_enable_remainder.diff --]
[-- Type: text/plain, Size: 2407 bytes --]
Index: local/sound/drivers/dummy.c
===================================================================
--- local.orig/sound/drivers/dummy.c 2006-03-20 06:53:29.000000000 +0100
+++ local/sound/drivers/dummy.c 2006-04-13 03:02:43.000000000 +0200
@@ -669,8 +669,10 @@ static int __init alsa_card_dummy_init(v
return err;
cards = 0;
- for (i = 0; i < SNDRV_CARDS && enable[i]; i++) {
+ for (i = 0; i < SNDRV_CARDS; i++) {
struct platform_device *device;
+ if (!enable[i])
+ continue;
device = platform_device_register_simple(SND_DUMMY_DRIVER,
i, NULL, 0);
if (IS_ERR(device)) {
Index: local/sound/drivers/mpu401/mpu401.c
===================================================================
--- local.orig/sound/drivers/mpu401/mpu401.c 2006-03-20 06:53:29.000000000 +0100
+++ local/sound/drivers/mpu401/mpu401.c 2006-04-13 03:03:18.000000000 +0200
@@ -240,8 +240,10 @@ static int __init alsa_card_mpu401_init(
return err;
devices = 0;
- for (i = 0; i < SNDRV_CARDS && enable[i]; i++) {
+ for (i = 0; i < SNDRV_CARDS; i++) {
struct platform_device *device;
+ if (!enable[i])
+ continue;
#ifdef CONFIG_PNP
if (pnp[i])
continue;
Index: local/sound/drivers/serial-u16550.c
===================================================================
--- local.orig/sound/drivers/serial-u16550.c 2006-03-20 06:53:29.000000000 +0100
+++ local/sound/drivers/serial-u16550.c 2006-04-13 03:03:50.000000000 +0200
@@ -989,8 +989,10 @@ static int __init alsa_card_serial_init(
return err;
cards = 0;
- for (i = 0; i < SNDRV_CARDS && enable[i]; i++) {
+ for (i = 0; i < SNDRV_CARDS; i++) {
struct platform_device *device;
+ if (!enable[i])
+ continue;
device = platform_device_register_simple(SND_SERIAL_DRIVER,
i, NULL, 0);
if (IS_ERR(device)) {
Index: local/sound/drivers/virmidi.c
===================================================================
--- local.orig/sound/drivers/virmidi.c 2006-03-20 06:53:29.000000000 +0100
+++ local/sound/drivers/virmidi.c 2006-04-13 03:04:17.000000000 +0200
@@ -163,8 +163,10 @@ static int __init alsa_card_virmidi_init
return err;
cards = 0;
- for (i = 0; i < SNDRV_CARDS && enable[i]; i++) {
+ for (i = 0; i < SNDRV_CARDS; i++) {
struct platform_device *device;
+ if (!enable[i])
+ continue;
device = platform_device_register_simple(SND_VIRMIDI_DRIVER,
i, NULL, 0);
if (IS_ERR(device)) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-13 1:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-13 1:44 [ALSA STABLE 1/3] a few more -- fix the "enable" module parameter behaviour Rene Herman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox