diff options
Diffstat (limited to 'sound/isa/als100.c')
| -rw-r--r-- | sound/isa/als100.c | 37 | 
1 files changed, 18 insertions, 19 deletions
diff --git a/sound/isa/als100.c b/sound/isa/als100.c index 20becc89f6f..32d01525211 100644 --- a/sound/isa/als100.c +++ b/sound/isa/als100.c @@ -7,7 +7,7 @@      Thanks to Pierfrancesco 'qM2' Passerini.      Generalised for soundcards based on DT-0196 and ALS-007 chips -    by Jonathan Woithe <jwoithe@physics.adelaide.edu.au>: June 2002. +    by Jonathan Woithe <jwoithe@just42.net>: June 2002.      This program is free software; you can redistribute it and/or modify      it under the terms of the GNU General Public License as published by @@ -28,7 +28,7 @@  #include <linux/wait.h>  #include <linux/time.h>  #include <linux/pnp.h> -#include <linux/moduleparam.h> +#include <linux/module.h>  #include <sound/core.h>  #include <sound/initval.h>  #include <sound/mpu401.h> @@ -54,7 +54,7 @@ MODULE_LICENSE("GPL");  static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;	/* Index 0-MAX */  static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;	/* ID for this card */ -static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE;	/* Enable this card */ +static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE;	/* Enable this card */  static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT;	/* PnP setup */  static long mpu_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT;	/* PnP setup */  static long fm_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT;	/* PnP setup */ @@ -117,9 +117,9 @@ static struct pnp_card_device_id snd_als100_pnpids[] = {  MODULE_DEVICE_TABLE(pnp_card, snd_als100_pnpids); -static int __devinit snd_card_als100_pnp(int dev, struct snd_card_als100 *acard, -					 struct pnp_card_link *card, -					 const struct pnp_card_device_id *id) +static int snd_card_als100_pnp(int dev, struct snd_card_als100 *acard, +			       struct pnp_card_link *card, +			       const struct pnp_card_device_id *id)  {  	struct pnp_dev *pdev;  	int err; @@ -183,9 +183,9 @@ static int __devinit snd_card_als100_pnp(int dev, struct snd_card_als100 *acard,  	return 0;  } -static int __devinit snd_card_als100_probe(int dev, -					struct pnp_card_link *pcard, -					const struct pnp_card_device_id *pid) +static int snd_card_als100_probe(int dev, +				 struct pnp_card_link *pcard, +				 const struct pnp_card_device_id *pid)  {  	int error;  	struct snd_sb *chip; @@ -193,8 +193,9 @@ static int __devinit snd_card_als100_probe(int dev,  	struct snd_card_als100 *acard;  	struct snd_opl3 *opl3; -	error = snd_card_create(index[dev], id[dev], THIS_MODULE, -				sizeof(struct snd_card_als100), &card); +	error = snd_card_new(&pcard->card->dev, +			     index[dev], id[dev], THIS_MODULE, +			     sizeof(struct snd_card_als100), &card);  	if (error < 0)  		return error;  	acard = card->private_data; @@ -203,7 +204,6 @@ static int __devinit snd_card_als100_probe(int dev,  		snd_card_free(card);  		return error;  	} -	snd_card_set_dev(card, &pcard->card->dev);  	if (pid->driver_data == SB_HW_DT019X)  		dma16[dev] = -1; @@ -233,7 +233,7 @@ static int __devinit snd_card_als100_probe(int dev,  			irq[dev], dma8[dev], dma16[dev]);  	} -	if ((error = snd_sb16dsp_pcm(chip, 0, NULL)) < 0) { +	if ((error = snd_sb16dsp_pcm(chip, 0, &chip->pcm)) < 0) {  		snd_card_free(card);  		return error;  	} @@ -256,7 +256,6 @@ static int __devinit snd_card_als100_probe(int dev,  					mpu_type,  					mpu_port[dev], 0,   					mpu_irq[dev], -					mpu_irq[dev] >= 0 ? IRQF_DISABLED : 0,  					NULL) < 0)  			snd_printk(KERN_ERR PFX "no MPU-401 device at 0x%lx\n", mpu_port[dev]);  	} @@ -287,10 +286,10 @@ static int __devinit snd_card_als100_probe(int dev,  	return 0;  } -static unsigned int __devinitdata als100_devices; +static unsigned int als100_devices; -static int __devinit snd_als100_pnp_detect(struct pnp_card_link *card, -					   const struct pnp_card_device_id *id) +static int snd_als100_pnp_detect(struct pnp_card_link *card, +				 const struct pnp_card_device_id *id)  {  	static int dev;  	int res; @@ -308,7 +307,7 @@ static int __devinit snd_als100_pnp_detect(struct pnp_card_link *card,  	return -ENODEV;  } -static void __devexit snd_als100_pnp_remove(struct pnp_card_link * pcard) +static void snd_als100_pnp_remove(struct pnp_card_link *pcard)  {  	snd_card_free(pnp_get_card_drvdata(pcard));  	pnp_set_card_drvdata(pcard, NULL); @@ -345,7 +344,7 @@ static struct pnp_card_driver als100_pnpc_driver = {  	.name		= "als100",          .id_table       = snd_als100_pnpids,          .probe          = snd_als100_pnp_detect, -        .remove         = __devexit_p(snd_als100_pnp_remove), +	.remove		= snd_als100_pnp_remove,  #ifdef CONFIG_PM  	.suspend	= snd_als100_pnp_suspend,  	.resume		= snd_als100_pnp_resume,  | 
