diff options
Diffstat (limited to 'sound/isa/cmi8330.c')
-rw-r--r-- | sound/isa/cmi8330.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/sound/isa/cmi8330.c b/sound/isa/cmi8330.c index 7bd5e337ee93..c707c52268ab 100644 --- a/sound/isa/cmi8330.c +++ b/sound/isa/cmi8330.c | |||
@@ -193,7 +193,7 @@ MODULE_DEVICE_TABLE(pnp_card, snd_cmi8330_pnpids); | |||
193 | #endif | 193 | #endif |
194 | 194 | ||
195 | 195 | ||
196 | static struct snd_kcontrol_new snd_cmi8330_controls[] __devinitdata = { | 196 | static struct snd_kcontrol_new snd_cmi8330_controls[] = { |
197 | WSS_DOUBLE("Master Playback Volume", 0, | 197 | WSS_DOUBLE("Master Playback Volume", 0, |
198 | CMI8330_MASTVOL, CMI8330_MASTVOL, 4, 0, 15, 0), | 198 | CMI8330_MASTVOL, CMI8330_MASTVOL, 4, 0, 15, 0), |
199 | WSS_SINGLE("Loud Playback Switch", 0, | 199 | WSS_SINGLE("Loud Playback Switch", 0, |
@@ -249,7 +249,7 @@ WSS_SINGLE(SNDRV_CTL_NAME_IEC958("Input ", PLAYBACK, SWITCH), 0, | |||
249 | }; | 249 | }; |
250 | 250 | ||
251 | #ifdef ENABLE_SB_MIXER | 251 | #ifdef ENABLE_SB_MIXER |
252 | static struct sbmix_elem cmi8330_sb_mixers[] __devinitdata = { | 252 | static struct sbmix_elem cmi8330_sb_mixers[] = { |
253 | SB_DOUBLE("SB Master Playback Volume", SB_DSP4_MASTER_DEV, (SB_DSP4_MASTER_DEV + 1), 3, 3, 31), | 253 | SB_DOUBLE("SB Master Playback Volume", SB_DSP4_MASTER_DEV, (SB_DSP4_MASTER_DEV + 1), 3, 3, 31), |
254 | SB_DOUBLE("Tone Control - Bass", SB_DSP4_BASS_DEV, (SB_DSP4_BASS_DEV + 1), 4, 4, 15), | 254 | SB_DOUBLE("Tone Control - Bass", SB_DSP4_BASS_DEV, (SB_DSP4_BASS_DEV + 1), 4, 4, 15), |
255 | SB_DOUBLE("Tone Control - Treble", SB_DSP4_TREBLE_DEV, (SB_DSP4_TREBLE_DEV + 1), 4, 4, 15), | 255 | SB_DOUBLE("Tone Control - Treble", SB_DSP4_TREBLE_DEV, (SB_DSP4_TREBLE_DEV + 1), 4, 4, 15), |
@@ -267,7 +267,7 @@ SB_DOUBLE("SB Playback Volume", SB_DSP4_OGAIN_DEV, (SB_DSP4_OGAIN_DEV + 1), 6, 6 | |||
267 | SB_SINGLE("SB Mic Auto Gain", SB_DSP4_MIC_AGC, 0, 1), | 267 | SB_SINGLE("SB Mic Auto Gain", SB_DSP4_MIC_AGC, 0, 1), |
268 | }; | 268 | }; |
269 | 269 | ||
270 | static unsigned char cmi8330_sb_init_values[][2] __devinitdata = { | 270 | static unsigned char cmi8330_sb_init_values[][2] = { |
271 | { SB_DSP4_MASTER_DEV + 0, 0 }, | 271 | { SB_DSP4_MASTER_DEV + 0, 0 }, |
272 | { SB_DSP4_MASTER_DEV + 1, 0 }, | 272 | { SB_DSP4_MASTER_DEV + 1, 0 }, |
273 | { SB_DSP4_PCM_DEV + 0, 0 }, | 273 | { SB_DSP4_PCM_DEV + 0, 0 }, |
@@ -281,7 +281,7 @@ static unsigned char cmi8330_sb_init_values[][2] __devinitdata = { | |||
281 | }; | 281 | }; |
282 | 282 | ||
283 | 283 | ||
284 | static int __devinit cmi8330_add_sb_mixers(struct snd_sb *chip) | 284 | static int cmi8330_add_sb_mixers(struct snd_sb *chip) |
285 | { | 285 | { |
286 | int idx, err; | 286 | int idx, err; |
287 | unsigned long flags; | 287 | unsigned long flags; |
@@ -306,7 +306,7 @@ static int __devinit cmi8330_add_sb_mixers(struct snd_sb *chip) | |||
306 | } | 306 | } |
307 | #endif | 307 | #endif |
308 | 308 | ||
309 | static int __devinit snd_cmi8330_mixer(struct snd_card *card, struct snd_cmi8330 *acard) | 309 | static int snd_cmi8330_mixer(struct snd_card *card, struct snd_cmi8330 *acard) |
310 | { | 310 | { |
311 | unsigned int idx; | 311 | unsigned int idx; |
312 | int err; | 312 | int err; |
@@ -329,9 +329,9 @@ static int __devinit snd_cmi8330_mixer(struct snd_card *card, struct snd_cmi8330 | |||
329 | } | 329 | } |
330 | 330 | ||
331 | #ifdef CONFIG_PNP | 331 | #ifdef CONFIG_PNP |
332 | static int __devinit snd_cmi8330_pnp(int dev, struct snd_cmi8330 *acard, | 332 | static int snd_cmi8330_pnp(int dev, struct snd_cmi8330 *acard, |
333 | struct pnp_card_link *card, | 333 | struct pnp_card_link *card, |
334 | const struct pnp_card_device_id *id) | 334 | const struct pnp_card_device_id *id) |
335 | { | 335 | { |
336 | struct pnp_dev *pdev; | 336 | struct pnp_dev *pdev; |
337 | int err; | 337 | int err; |
@@ -437,7 +437,7 @@ static int snd_cmi8330_capture_open(struct snd_pcm_substream *substream) | |||
437 | return chip->streams[SNDRV_PCM_STREAM_CAPTURE].open(substream); | 437 | return chip->streams[SNDRV_PCM_STREAM_CAPTURE].open(substream); |
438 | } | 438 | } |
439 | 439 | ||
440 | static int __devinit snd_cmi8330_pcm(struct snd_card *card, struct snd_cmi8330 *chip) | 440 | static int snd_cmi8330_pcm(struct snd_card *card, struct snd_cmi8330 *chip) |
441 | { | 441 | { |
442 | struct snd_pcm *pcm; | 442 | struct snd_pcm *pcm; |
443 | const struct snd_pcm_ops *ops; | 443 | const struct snd_pcm_ops *ops; |
@@ -532,7 +532,7 @@ static int snd_cmi8330_card_new(int dev, struct snd_card **cardp) | |||
532 | return 0; | 532 | return 0; |
533 | } | 533 | } |
534 | 534 | ||
535 | static int __devinit snd_cmi8330_probe(struct snd_card *card, int dev) | 535 | static int snd_cmi8330_probe(struct snd_card *card, int dev) |
536 | { | 536 | { |
537 | struct snd_cmi8330 *acard; | 537 | struct snd_cmi8330 *acard; |
538 | int i, err; | 538 | int i, err; |
@@ -613,8 +613,8 @@ static int __devinit snd_cmi8330_probe(struct snd_card *card, int dev) | |||
613 | return snd_card_register(card); | 613 | return snd_card_register(card); |
614 | } | 614 | } |
615 | 615 | ||
616 | static int __devinit snd_cmi8330_isa_match(struct device *pdev, | 616 | static int snd_cmi8330_isa_match(struct device *pdev, |
617 | unsigned int dev) | 617 | unsigned int dev) |
618 | { | 618 | { |
619 | if (!enable[dev] || is_isapnp_selected(dev)) | 619 | if (!enable[dev] || is_isapnp_selected(dev)) |
620 | return 0; | 620 | return 0; |
@@ -629,8 +629,8 @@ static int __devinit snd_cmi8330_isa_match(struct device *pdev, | |||
629 | return 1; | 629 | return 1; |
630 | } | 630 | } |
631 | 631 | ||
632 | static int __devinit snd_cmi8330_isa_probe(struct device *pdev, | 632 | static int snd_cmi8330_isa_probe(struct device *pdev, |
633 | unsigned int dev) | 633 | unsigned int dev) |
634 | { | 634 | { |
635 | struct snd_card *card; | 635 | struct snd_card *card; |
636 | int err; | 636 | int err; |
@@ -647,8 +647,8 @@ static int __devinit snd_cmi8330_isa_probe(struct device *pdev, | |||
647 | return 0; | 647 | return 0; |
648 | } | 648 | } |
649 | 649 | ||
650 | static int __devexit snd_cmi8330_isa_remove(struct device *devptr, | 650 | static int snd_cmi8330_isa_remove(struct device *devptr, |
651 | unsigned int dev) | 651 | unsigned int dev) |
652 | { | 652 | { |
653 | snd_card_free(dev_get_drvdata(devptr)); | 653 | snd_card_free(dev_get_drvdata(devptr)); |
654 | dev_set_drvdata(devptr, NULL); | 654 | dev_set_drvdata(devptr, NULL); |
@@ -673,7 +673,7 @@ static int snd_cmi8330_isa_resume(struct device *dev, unsigned int n) | |||
673 | static struct isa_driver snd_cmi8330_driver = { | 673 | static struct isa_driver snd_cmi8330_driver = { |
674 | .match = snd_cmi8330_isa_match, | 674 | .match = snd_cmi8330_isa_match, |
675 | .probe = snd_cmi8330_isa_probe, | 675 | .probe = snd_cmi8330_isa_probe, |
676 | .remove = __devexit_p(snd_cmi8330_isa_remove), | 676 | .remove = snd_cmi8330_isa_remove, |
677 | #ifdef CONFIG_PM | 677 | #ifdef CONFIG_PM |
678 | .suspend = snd_cmi8330_isa_suspend, | 678 | .suspend = snd_cmi8330_isa_suspend, |
679 | .resume = snd_cmi8330_isa_resume, | 679 | .resume = snd_cmi8330_isa_resume, |
@@ -685,8 +685,8 @@ static struct isa_driver snd_cmi8330_driver = { | |||
685 | 685 | ||
686 | 686 | ||
687 | #ifdef CONFIG_PNP | 687 | #ifdef CONFIG_PNP |
688 | static int __devinit snd_cmi8330_pnp_detect(struct pnp_card_link *pcard, | 688 | static int snd_cmi8330_pnp_detect(struct pnp_card_link *pcard, |
689 | const struct pnp_card_device_id *pid) | 689 | const struct pnp_card_device_id *pid) |
690 | { | 690 | { |
691 | static int dev; | 691 | static int dev; |
692 | struct snd_card *card; | 692 | struct snd_card *card; |
@@ -717,7 +717,7 @@ static int __devinit snd_cmi8330_pnp_detect(struct pnp_card_link *pcard, | |||
717 | return 0; | 717 | return 0; |
718 | } | 718 | } |
719 | 719 | ||
720 | static void __devexit snd_cmi8330_pnp_remove(struct pnp_card_link * pcard) | 720 | static void snd_cmi8330_pnp_remove(struct pnp_card_link *pcard) |
721 | { | 721 | { |
722 | snd_card_free(pnp_get_card_drvdata(pcard)); | 722 | snd_card_free(pnp_get_card_drvdata(pcard)); |
723 | pnp_set_card_drvdata(pcard, NULL); | 723 | pnp_set_card_drvdata(pcard, NULL); |
@@ -740,7 +740,7 @@ static struct pnp_card_driver cmi8330_pnpc_driver = { | |||
740 | .name = "cmi8330", | 740 | .name = "cmi8330", |
741 | .id_table = snd_cmi8330_pnpids, | 741 | .id_table = snd_cmi8330_pnpids, |
742 | .probe = snd_cmi8330_pnp_detect, | 742 | .probe = snd_cmi8330_pnp_detect, |
743 | .remove = __devexit_p(snd_cmi8330_pnp_remove), | 743 | .remove = snd_cmi8330_pnp_remove, |
744 | #ifdef CONFIG_PM | 744 | #ifdef CONFIG_PM |
745 | .suspend = snd_cmi8330_pnp_suspend, | 745 | .suspend = snd_cmi8330_pnp_suspend, |
746 | .resume = snd_cmi8330_pnp_resume, | 746 | .resume = snd_cmi8330_pnp_resume, |