[alsa-devel] [PATCH] sscape: force AD1848 codec mode on old Soundscape

Takashi Iwai tiwai at suse.de
Mon Oct 5 09:17:04 CEST 2009


At Sun, 4 Oct 2009 18:23:20 +0200,
Krzysztof Helt wrote:
> 
> diff --git a/sound/isa/sscape.c b/sound/isa/sscape.c
> index c739374..e348f8b 100644
> --- a/sound/isa/sscape.c
> +++ b/sound/isa/sscape.c
> @@ -54,6 +54,7 @@ static int irq[SNDRV_CARDS] __devinitdata = SNDRV_DEFAULT_IRQ;
>  static int mpu_irq[SNDRV_CARDS] __devinitdata = SNDRV_DEFAULT_IRQ;
>  static int dma[SNDRV_CARDS] __devinitdata = SNDRV_DEFAULT_DMA;
>  static int dma2[SNDRV_CARDS] __devinitdata = SNDRV_DEFAULT_DMA;
> +static bool joystick[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = false };

You don't need to initialize zeros.  Removing the explicit zero
initialization will save some bytes.


thanks,

Takashi


More information about the Alsa-devel mailing list