* [PATCH] SoundScape tweaks
@ 2002-10-22 22:58 Chris Rankin
2002-10-23 9:57 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Chris Rankin @ 2002-10-22 22:58 UTC (permalink / raw)
To: alsa-devel
Hi,
It really is safe to declare these parameters as __initdata because their values are never referenced again once the module loads. (All values are copied.) And there's also a whitespace fix.
Cheers,
Chris
Index: sscape.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/isa/sscape.c,v
retrieving revision 1.10
diff -u -u -r1.10 sscape.c
--- sscape.c 22 Oct 2002 10:45:19 -0000 1.10
+++ sscape.c 22 Oct 2002 22:55:21 -0000
@@ -52,12 +52,12 @@
MODULE_DESCRIPTION("ENSONIQ SoundScape PnP driver");
MODULE_LICENSE("GPL");
-static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
-static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
-static long port[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_PORT };
-static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ;
-static int mpu_irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ;
-static int dma[SNDRV_CARDS] = SNDRV_DEFAULT_DMA;
+static int __initdata index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
+static char* __initdata id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
+static long __initdata port[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_PORT };
+static int __initdata irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ;
+static int __initdata mpu_irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ;
+static int __initdata dma[SNDRV_CARDS] = SNDRV_DEFAULT_DMA;
MODULE_PARM(index, "1-" __MODULE_STRING(SNDRV_CARDS) "i");
MODULE_PARM_DESC(index, "Index number for SoundScape soundcard");
@@ -1418,7 +1418,7 @@
*/
if ( !is_port_known(this->port, data->params, data->cards) ) {
++(data->cards);
- ++(data->idx);
+ ++(data->idx);
ret = 0;
}
}
-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] SoundScape tweaks
2002-10-22 22:58 [PATCH] SoundScape tweaks Chris Rankin
@ 2002-10-23 9:57 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2002-10-23 9:57 UTC (permalink / raw)
To: Chris Rankin; +Cc: alsa-devel
At Tue, 22 Oct 2002 23:58:54 +0100 (BST),
Chris Rankin wrote:
>
> Hi,
>
> It really is safe to declare these parameters as __initdata because
> their values are never referenced again once the module loads. (All
> values are copied.) And there's also a whitespace fix.
thanks, applied.
Takashi
-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-23 9:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-22 22:58 [PATCH] SoundScape tweaks Chris Rankin
2002-10-23 9:57 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.