diff options
Diffstat (limited to 'sound')
105 files changed, 1014 insertions, 1005 deletions
diff --git a/sound/pci/ak4531_codec.c b/sound/pci/ak4531_codec.c index cadf7b962e30..3bf0dc53360a 100644 --- a/sound/pci/ak4531_codec.c +++ b/sound/pci/ak4531_codec.c | |||
@@ -274,7 +274,7 @@ static const DECLARE_TLV_DB_SCALE(db_scale_master, -6200, 200, 0); | |||
274 | static const DECLARE_TLV_DB_SCALE(db_scale_mono, -2800, 400, 0); | 274 | static const DECLARE_TLV_DB_SCALE(db_scale_mono, -2800, 400, 0); |
275 | static const DECLARE_TLV_DB_SCALE(db_scale_input, -5000, 200, 0); | 275 | static const DECLARE_TLV_DB_SCALE(db_scale_input, -5000, 200, 0); |
276 | 276 | ||
277 | static struct snd_kcontrol_new snd_ak4531_controls[] __devinitdata = { | 277 | static struct snd_kcontrol_new snd_ak4531_controls[] = { |
278 | 278 | ||
279 | AK4531_DOUBLE_TLV("Master Playback Switch", 0, | 279 | AK4531_DOUBLE_TLV("Master Playback Switch", 0, |
280 | AK4531_LMASTER, AK4531_RMASTER, 7, 7, 1, 1, | 280 | AK4531_LMASTER, AK4531_RMASTER, 7, 7, 1, 1, |
@@ -383,9 +383,9 @@ static u8 snd_ak4531_initial_map[0x19 + 1] = { | |||
383 | 0x01 /* 19: Mic Amp Setup */ | 383 | 0x01 /* 19: Mic Amp Setup */ |
384 | }; | 384 | }; |
385 | 385 | ||
386 | int __devinit snd_ak4531_mixer(struct snd_card *card, | 386 | int snd_ak4531_mixer(struct snd_card *card, |
387 | struct snd_ak4531 *_ak4531, | 387 | struct snd_ak4531 *_ak4531, |
388 | struct snd_ak4531 **rak4531) | 388 | struct snd_ak4531 **rak4531) |
389 | { | 389 | { |
390 | unsigned int idx; | 390 | unsigned int idx; |
391 | int err; | 391 | int err; |
@@ -483,7 +483,7 @@ static void snd_ak4531_proc_read(struct snd_info_entry *entry, | |||
483 | ak4531->regs[AK4531_MIC_GAIN] & 1 ? "+30dB" : "+0dB"); | 483 | ak4531->regs[AK4531_MIC_GAIN] & 1 ? "+30dB" : "+0dB"); |
484 | } | 484 | } |
485 | 485 | ||
486 | static void __devinit | 486 | static void |
487 | snd_ak4531_proc_init(struct snd_card *card, struct snd_ak4531 *ak4531) | 487 | snd_ak4531_proc_init(struct snd_card *card, struct snd_ak4531 *ak4531) |
488 | { | 488 | { |
489 | struct snd_info_entry *entry; | 489 | struct snd_info_entry *entry; |
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c index c7e3c533316e..136a393b70ab 100644 --- a/sound/pci/ali5451/ali5451.c +++ b/sound/pci/ali5451/ali5451.c | |||
@@ -1678,8 +1678,8 @@ static void snd_ali_pcm_free(struct snd_pcm *pcm) | |||
1678 | } | 1678 | } |
1679 | 1679 | ||
1680 | 1680 | ||
1681 | static int __devinit snd_ali_pcm(struct snd_ali * codec, int device, | 1681 | static int snd_ali_pcm(struct snd_ali *codec, int device, |
1682 | struct ali_pcm_description *desc) | 1682 | struct ali_pcm_description *desc) |
1683 | { | 1683 | { |
1684 | struct snd_pcm *pcm; | 1684 | struct snd_pcm *pcm; |
1685 | int err; | 1685 | int err; |
@@ -1727,7 +1727,7 @@ static struct ali_pcm_description ali_pcms[] = { | |||
1727 | } | 1727 | } |
1728 | }; | 1728 | }; |
1729 | 1729 | ||
1730 | static int __devinit snd_ali_build_pcms(struct snd_ali *codec) | 1730 | static int snd_ali_build_pcms(struct snd_ali *codec) |
1731 | { | 1731 | { |
1732 | int i, err; | 1732 | int i, err; |
1733 | for (i = 0; i < codec->num_of_codecs && i < ARRAY_SIZE(ali_pcms); i++) { | 1733 | for (i = 0; i < codec->num_of_codecs && i < ARRAY_SIZE(ali_pcms); i++) { |
@@ -1832,7 +1832,7 @@ static int snd_ali5451_spdif_put(struct snd_kcontrol *kcontrol, | |||
1832 | return change; | 1832 | return change; |
1833 | } | 1833 | } |
1834 | 1834 | ||
1835 | static struct snd_kcontrol_new snd_ali5451_mixer_spdif[] __devinitdata = { | 1835 | static struct snd_kcontrol_new snd_ali5451_mixer_spdif[] = { |
1836 | /* spdif aplayback switch */ | 1836 | /* spdif aplayback switch */ |
1837 | /* FIXME: "IEC958 Playback Switch" may conflict with one on ac97_codec */ | 1837 | /* FIXME: "IEC958 Playback Switch" may conflict with one on ac97_codec */ |
1838 | ALI5451_SPDIF(SNDRV_CTL_NAME_IEC958("Output ",NONE,SWITCH), 0, 0), | 1838 | ALI5451_SPDIF(SNDRV_CTL_NAME_IEC958("Output ",NONE,SWITCH), 0, 0), |
@@ -1842,7 +1842,7 @@ static struct snd_kcontrol_new snd_ali5451_mixer_spdif[] __devinitdata = { | |||
1842 | ALI5451_SPDIF(SNDRV_CTL_NAME_IEC958("",CAPTURE,SWITCH), 0, 2) | 1842 | ALI5451_SPDIF(SNDRV_CTL_NAME_IEC958("",CAPTURE,SWITCH), 0, 2) |
1843 | }; | 1843 | }; |
1844 | 1844 | ||
1845 | static int __devinit snd_ali_mixer(struct snd_ali * codec) | 1845 | static int snd_ali_mixer(struct snd_ali *codec) |
1846 | { | 1846 | { |
1847 | struct snd_ac97_template ac97; | 1847 | struct snd_ac97_template ac97; |
1848 | unsigned int idx; | 1848 | unsigned int idx; |
@@ -2079,14 +2079,14 @@ static void snd_ali_proc_read(struct snd_info_entry *entry, | |||
2079 | snd_iprintf(buf, "%02x: %08x\n", i, inl(ALI_REG(codec, i))); | 2079 | snd_iprintf(buf, "%02x: %08x\n", i, inl(ALI_REG(codec, i))); |
2080 | } | 2080 | } |
2081 | 2081 | ||
2082 | static void __devinit snd_ali_proc_init(struct snd_ali *codec) | 2082 | static void snd_ali_proc_init(struct snd_ali *codec) |
2083 | { | 2083 | { |
2084 | struct snd_info_entry *entry; | 2084 | struct snd_info_entry *entry; |
2085 | if (!snd_card_proc_new(codec->card, "ali5451", &entry)) | 2085 | if (!snd_card_proc_new(codec->card, "ali5451", &entry)) |
2086 | snd_info_set_text_ops(entry, codec, snd_ali_proc_read); | 2086 | snd_info_set_text_ops(entry, codec, snd_ali_proc_read); |
2087 | } | 2087 | } |
2088 | 2088 | ||
2089 | static int __devinit snd_ali_resources(struct snd_ali *codec) | 2089 | static int snd_ali_resources(struct snd_ali *codec) |
2090 | { | 2090 | { |
2091 | int err; | 2091 | int err; |
2092 | 2092 | ||
@@ -2112,11 +2112,11 @@ static int snd_ali_dev_free(struct snd_device *device) | |||
2112 | return 0; | 2112 | return 0; |
2113 | } | 2113 | } |
2114 | 2114 | ||
2115 | static int __devinit snd_ali_create(struct snd_card *card, | 2115 | static int snd_ali_create(struct snd_card *card, |
2116 | struct pci_dev *pci, | 2116 | struct pci_dev *pci, |
2117 | int pcm_streams, | 2117 | int pcm_streams, |
2118 | int spdif_support, | 2118 | int spdif_support, |
2119 | struct snd_ali ** r_ali) | 2119 | struct snd_ali **r_ali) |
2120 | { | 2120 | { |
2121 | struct snd_ali *codec; | 2121 | struct snd_ali *codec; |
2122 | int i, err; | 2122 | int i, err; |
@@ -2246,8 +2246,8 @@ static int __devinit snd_ali_create(struct snd_card *card, | |||
2246 | return 0; | 2246 | return 0; |
2247 | } | 2247 | } |
2248 | 2248 | ||
2249 | static int __devinit snd_ali_probe(struct pci_dev *pci, | 2249 | static int snd_ali_probe(struct pci_dev *pci, |
2250 | const struct pci_device_id *pci_id) | 2250 | const struct pci_device_id *pci_id) |
2251 | { | 2251 | { |
2252 | struct snd_card *card; | 2252 | struct snd_card *card; |
2253 | struct snd_ali *codec; | 2253 | struct snd_ali *codec; |
@@ -2295,7 +2295,7 @@ static int __devinit snd_ali_probe(struct pci_dev *pci, | |||
2295 | return err; | 2295 | return err; |
2296 | } | 2296 | } |
2297 | 2297 | ||
2298 | static void __devexit snd_ali_remove(struct pci_dev *pci) | 2298 | static void snd_ali_remove(struct pci_dev *pci) |
2299 | { | 2299 | { |
2300 | snd_card_free(pci_get_drvdata(pci)); | 2300 | snd_card_free(pci_get_drvdata(pci)); |
2301 | pci_set_drvdata(pci, NULL); | 2301 | pci_set_drvdata(pci, NULL); |
@@ -2305,7 +2305,7 @@ static struct pci_driver ali5451_driver = { | |||
2305 | .name = KBUILD_MODNAME, | 2305 | .name = KBUILD_MODNAME, |
2306 | .id_table = snd_ali_ids, | 2306 | .id_table = snd_ali_ids, |
2307 | .probe = snd_ali_probe, | 2307 | .probe = snd_ali_probe, |
2308 | .remove = __devexit_p(snd_ali_remove), | 2308 | .remove = snd_ali_remove, |
2309 | .driver = { | 2309 | .driver = { |
2310 | .pm = ALI_PM_OPS, | 2310 | .pm = ALI_PM_OPS, |
2311 | }, | 2311 | }, |
diff --git a/sound/pci/als300.c b/sound/pci/als300.c index 5af3cb6b0c18..864c4310366b 100644 --- a/sound/pci/als300.c +++ b/sound/pci/als300.c | |||
@@ -278,7 +278,7 @@ static irqreturn_t snd_als300plus_interrupt(int irq, void *dev_id) | |||
278 | return IRQ_HANDLED; | 278 | return IRQ_HANDLED; |
279 | } | 279 | } |
280 | 280 | ||
281 | static void __devexit snd_als300_remove(struct pci_dev *pci) | 281 | static void snd_als300_remove(struct pci_dev *pci) |
282 | { | 282 | { |
283 | snd_als300_dbgcallenter(); | 283 | snd_als300_dbgcallenter(); |
284 | snd_card_free(pci_get_drvdata(pci)); | 284 | snd_card_free(pci_get_drvdata(pci)); |
@@ -622,7 +622,7 @@ static struct snd_pcm_ops snd_als300_capture_ops = { | |||
622 | .pointer = snd_als300_pointer, | 622 | .pointer = snd_als300_pointer, |
623 | }; | 623 | }; |
624 | 624 | ||
625 | static int __devinit snd_als300_new_pcm(struct snd_als300 *chip) | 625 | static int snd_als300_new_pcm(struct snd_als300 *chip) |
626 | { | 626 | { |
627 | struct snd_pcm *pcm; | 627 | struct snd_pcm *pcm; |
628 | int err; | 628 | int err; |
@@ -683,9 +683,9 @@ static void snd_als300_init(struct snd_als300 *chip) | |||
683 | snd_als300_dbgcallleave(); | 683 | snd_als300_dbgcallleave(); |
684 | } | 684 | } |
685 | 685 | ||
686 | static int __devinit snd_als300_create(struct snd_card *card, | 686 | static int snd_als300_create(struct snd_card *card, |
687 | struct pci_dev *pci, int chip_type, | 687 | struct pci_dev *pci, int chip_type, |
688 | struct snd_als300 **rchip) | 688 | struct snd_als300 **rchip) |
689 | { | 689 | { |
690 | struct snd_als300 *chip; | 690 | struct snd_als300 *chip; |
691 | void *irq_handler; | 691 | void *irq_handler; |
@@ -815,7 +815,7 @@ static SIMPLE_DEV_PM_OPS(snd_als300_pm, snd_als300_suspend, snd_als300_resume); | |||
815 | #define SND_ALS300_PM_OPS NULL | 815 | #define SND_ALS300_PM_OPS NULL |
816 | #endif | 816 | #endif |
817 | 817 | ||
818 | static int __devinit snd_als300_probe(struct pci_dev *pci, | 818 | static int snd_als300_probe(struct pci_dev *pci, |
819 | const struct pci_device_id *pci_id) | 819 | const struct pci_device_id *pci_id) |
820 | { | 820 | { |
821 | static int dev; | 821 | static int dev; |
@@ -867,7 +867,7 @@ static struct pci_driver als300_driver = { | |||
867 | .name = KBUILD_MODNAME, | 867 | .name = KBUILD_MODNAME, |
868 | .id_table = snd_als300_ids, | 868 | .id_table = snd_als300_ids, |
869 | .probe = snd_als300_probe, | 869 | .probe = snd_als300_probe, |
870 | .remove = __devexit_p(snd_als300_remove), | 870 | .remove = snd_als300_remove, |
871 | .driver = { | 871 | .driver = { |
872 | .pm = SND_ALS300_PM_OPS, | 872 | .pm = SND_ALS300_PM_OPS, |
873 | }, | 873 | }, |
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c index feb2a1436830..61efda2a4d94 100644 --- a/sound/pci/als4000.c +++ b/sound/pci/als4000.c | |||
@@ -694,7 +694,7 @@ static struct snd_pcm_ops snd_als4000_capture_ops = { | |||
694 | .pointer = snd_als4000_capture_pointer | 694 | .pointer = snd_als4000_capture_pointer |
695 | }; | 695 | }; |
696 | 696 | ||
697 | static int __devinit snd_als4000_pcm(struct snd_sb *chip, int device) | 697 | static int snd_als4000_pcm(struct snd_sb *chip, int device) |
698 | { | 698 | { |
699 | struct snd_pcm *pcm; | 699 | struct snd_pcm *pcm; |
700 | int err; | 700 | int err; |
@@ -770,7 +770,7 @@ static void snd_als4000_configure(struct snd_sb *chip) | |||
770 | } | 770 | } |
771 | 771 | ||
772 | #ifdef SUPPORT_JOYSTICK | 772 | #ifdef SUPPORT_JOYSTICK |
773 | static int __devinit snd_als4000_create_gameport(struct snd_card_als4000 *acard, int dev) | 773 | static int snd_als4000_create_gameport(struct snd_card_als4000 *acard, int dev) |
774 | { | 774 | { |
775 | struct gameport *gp; | 775 | struct gameport *gp; |
776 | struct resource *r; | 776 | struct resource *r; |
@@ -847,8 +847,8 @@ static void snd_card_als4000_free( struct snd_card *card ) | |||
847 | pci_disable_device(acard->pci); | 847 | pci_disable_device(acard->pci); |
848 | } | 848 | } |
849 | 849 | ||
850 | static int __devinit snd_card_als4000_probe(struct pci_dev *pci, | 850 | static int snd_card_als4000_probe(struct pci_dev *pci, |
851 | const struct pci_device_id *pci_id) | 851 | const struct pci_device_id *pci_id) |
852 | { | 852 | { |
853 | static int dev; | 853 | static int dev; |
854 | struct snd_card *card; | 854 | struct snd_card *card; |
@@ -981,7 +981,7 @@ out: | |||
981 | return err; | 981 | return err; |
982 | } | 982 | } |
983 | 983 | ||
984 | static void __devexit snd_card_als4000_remove(struct pci_dev *pci) | 984 | static void snd_card_als4000_remove(struct pci_dev *pci) |
985 | { | 985 | { |
986 | snd_card_free(pci_get_drvdata(pci)); | 986 | snd_card_free(pci_get_drvdata(pci)); |
987 | pci_set_drvdata(pci, NULL); | 987 | pci_set_drvdata(pci, NULL); |
@@ -1046,7 +1046,7 @@ static struct pci_driver als4000_driver = { | |||
1046 | .name = KBUILD_MODNAME, | 1046 | .name = KBUILD_MODNAME, |
1047 | .id_table = snd_als4000_ids, | 1047 | .id_table = snd_als4000_ids, |
1048 | .probe = snd_card_als4000_probe, | 1048 | .probe = snd_card_als4000_probe, |
1049 | .remove = __devexit_p(snd_card_als4000_remove), | 1049 | .remove = snd_card_als4000_remove, |
1050 | .driver = { | 1050 | .driver = { |
1051 | .pm = SND_ALS4000_PM_OPS, | 1051 | .pm = SND_ALS4000_PM_OPS, |
1052 | }, | 1052 | }, |
diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c index eedc017c1cd8..3536b076b529 100644 --- a/sound/pci/asihpi/asihpi.c +++ b/sound/pci/asihpi/asihpi.c | |||
@@ -1235,8 +1235,7 @@ static struct snd_pcm_ops snd_card_asihpi_capture_mmap_ops = { | |||
1235 | .pointer = snd_card_asihpi_capture_pointer, | 1235 | .pointer = snd_card_asihpi_capture_pointer, |
1236 | }; | 1236 | }; |
1237 | 1237 | ||
1238 | static int __devinit snd_card_asihpi_pcm_new( | 1238 | static int snd_card_asihpi_pcm_new(struct snd_card_asihpi *asihpi, int device) |
1239 | struct snd_card_asihpi *asihpi, int device) | ||
1240 | { | 1239 | { |
1241 | struct snd_pcm *pcm; | 1240 | struct snd_pcm *pcm; |
1242 | int err; | 1241 | int err; |
@@ -1497,8 +1496,8 @@ static int snd_asihpi_volume_mute_put(struct snd_kcontrol *kcontrol, | |||
1497 | return change; | 1496 | return change; |
1498 | } | 1497 | } |
1499 | 1498 | ||
1500 | static int __devinit snd_asihpi_volume_add(struct snd_card_asihpi *asihpi, | 1499 | static int snd_asihpi_volume_add(struct snd_card_asihpi *asihpi, |
1501 | struct hpi_control *hpi_ctl) | 1500 | struct hpi_control *hpi_ctl) |
1502 | { | 1501 | { |
1503 | struct snd_card *card = asihpi->card; | 1502 | struct snd_card *card = asihpi->card; |
1504 | struct snd_kcontrol_new snd_control; | 1503 | struct snd_kcontrol_new snd_control; |
@@ -1593,8 +1592,8 @@ static int snd_asihpi_level_put(struct snd_kcontrol *kcontrol, | |||
1593 | 1592 | ||
1594 | static const DECLARE_TLV_DB_SCALE(db_scale_level, -1000, 100, 0); | 1593 | static const DECLARE_TLV_DB_SCALE(db_scale_level, -1000, 100, 0); |
1595 | 1594 | ||
1596 | static int __devinit snd_asihpi_level_add(struct snd_card_asihpi *asihpi, | 1595 | static int snd_asihpi_level_add(struct snd_card_asihpi *asihpi, |
1597 | struct hpi_control *hpi_ctl) | 1596 | struct hpi_control *hpi_ctl) |
1598 | { | 1597 | { |
1599 | struct snd_card *card = asihpi->card; | 1598 | struct snd_card *card = asihpi->card; |
1600 | struct snd_kcontrol_new snd_control; | 1599 | struct snd_kcontrol_new snd_control; |
@@ -1715,8 +1714,8 @@ static int snd_asihpi_aesebu_rxstatus_get(struct snd_kcontrol *kcontrol, | |||
1715 | return 0; | 1714 | return 0; |
1716 | } | 1715 | } |
1717 | 1716 | ||
1718 | static int __devinit snd_asihpi_aesebu_rx_add(struct snd_card_asihpi *asihpi, | 1717 | static int snd_asihpi_aesebu_rx_add(struct snd_card_asihpi *asihpi, |
1719 | struct hpi_control *hpi_ctl) | 1718 | struct hpi_control *hpi_ctl) |
1720 | { | 1719 | { |
1721 | struct snd_card *card = asihpi->card; | 1720 | struct snd_card *card = asihpi->card; |
1722 | struct snd_kcontrol_new snd_control; | 1721 | struct snd_kcontrol_new snd_control; |
@@ -1753,8 +1752,8 @@ static int snd_asihpi_aesebu_tx_format_put(struct snd_kcontrol *kcontrol, | |||
1753 | } | 1752 | } |
1754 | 1753 | ||
1755 | 1754 | ||
1756 | static int __devinit snd_asihpi_aesebu_tx_add(struct snd_card_asihpi *asihpi, | 1755 | static int snd_asihpi_aesebu_tx_add(struct snd_card_asihpi *asihpi, |
1757 | struct hpi_control *hpi_ctl) | 1756 | struct hpi_control *hpi_ctl) |
1758 | { | 1757 | { |
1759 | struct snd_card *card = asihpi->card; | 1758 | struct snd_card *card = asihpi->card; |
1760 | struct snd_kcontrol_new snd_control; | 1759 | struct snd_kcontrol_new snd_control; |
@@ -1996,8 +1995,8 @@ static int snd_asihpi_tuner_freq_put(struct snd_kcontrol *kcontrol, | |||
1996 | } | 1995 | } |
1997 | 1996 | ||
1998 | /* Tuner control group initializer */ | 1997 | /* Tuner control group initializer */ |
1999 | static int __devinit snd_asihpi_tuner_add(struct snd_card_asihpi *asihpi, | 1998 | static int snd_asihpi_tuner_add(struct snd_card_asihpi *asihpi, |
2000 | struct hpi_control *hpi_ctl) | 1999 | struct hpi_control *hpi_ctl) |
2001 | { | 2000 | { |
2002 | struct snd_card *card = asihpi->card; | 2001 | struct snd_card *card = asihpi->card; |
2003 | struct snd_kcontrol_new snd_control; | 2002 | struct snd_kcontrol_new snd_control; |
@@ -2100,8 +2099,8 @@ static int snd_asihpi_meter_get(struct snd_kcontrol *kcontrol, | |||
2100 | return 0; | 2099 | return 0; |
2101 | } | 2100 | } |
2102 | 2101 | ||
2103 | static int __devinit snd_asihpi_meter_add(struct snd_card_asihpi *asihpi, | 2102 | static int snd_asihpi_meter_add(struct snd_card_asihpi *asihpi, |
2104 | struct hpi_control *hpi_ctl, int subidx) | 2103 | struct hpi_control *hpi_ctl, int subidx) |
2105 | { | 2104 | { |
2106 | struct snd_card *card = asihpi->card; | 2105 | struct snd_card *card = asihpi->card; |
2107 | struct snd_kcontrol_new snd_control; | 2106 | struct snd_kcontrol_new snd_control; |
@@ -2214,8 +2213,8 @@ static int snd_asihpi_mux_put(struct snd_kcontrol *kcontrol, | |||
2214 | } | 2213 | } |
2215 | 2214 | ||
2216 | 2215 | ||
2217 | static int __devinit snd_asihpi_mux_add(struct snd_card_asihpi *asihpi, | 2216 | static int snd_asihpi_mux_add(struct snd_card_asihpi *asihpi, |
2218 | struct hpi_control *hpi_ctl) | 2217 | struct hpi_control *hpi_ctl) |
2219 | { | 2218 | { |
2220 | struct snd_card *card = asihpi->card; | 2219 | struct snd_card *card = asihpi->card; |
2221 | struct snd_kcontrol_new snd_control; | 2220 | struct snd_kcontrol_new snd_control; |
@@ -2303,8 +2302,8 @@ static int snd_asihpi_cmode_put(struct snd_kcontrol *kcontrol, | |||
2303 | } | 2302 | } |
2304 | 2303 | ||
2305 | 2304 | ||
2306 | static int __devinit snd_asihpi_cmode_add(struct snd_card_asihpi *asihpi, | 2305 | static int snd_asihpi_cmode_add(struct snd_card_asihpi *asihpi, |
2307 | struct hpi_control *hpi_ctl) | 2306 | struct hpi_control *hpi_ctl) |
2308 | { | 2307 | { |
2309 | struct snd_card *card = asihpi->card; | 2308 | struct snd_card *card = asihpi->card; |
2310 | struct snd_kcontrol_new snd_control; | 2309 | struct snd_kcontrol_new snd_control; |
@@ -2471,8 +2470,8 @@ static int snd_asihpi_clkrate_get(struct snd_kcontrol *kcontrol, | |||
2471 | return 0; | 2470 | return 0; |
2472 | } | 2471 | } |
2473 | 2472 | ||
2474 | static int __devinit snd_asihpi_sampleclock_add(struct snd_card_asihpi *asihpi, | 2473 | static int snd_asihpi_sampleclock_add(struct snd_card_asihpi *asihpi, |
2475 | struct hpi_control *hpi_ctl) | 2474 | struct hpi_control *hpi_ctl) |
2476 | { | 2475 | { |
2477 | struct snd_card *card = asihpi->card; | 2476 | struct snd_card *card = asihpi->card; |
2478 | struct snd_kcontrol_new snd_control; | 2477 | struct snd_kcontrol_new snd_control; |
@@ -2548,7 +2547,7 @@ static int __devinit snd_asihpi_sampleclock_add(struct snd_card_asihpi *asihpi, | |||
2548 | Mixer | 2547 | Mixer |
2549 | ------------------------------------------------------------*/ | 2548 | ------------------------------------------------------------*/ |
2550 | 2549 | ||
2551 | static int __devinit snd_card_asihpi_mixer_new(struct snd_card_asihpi *asihpi) | 2550 | static int snd_card_asihpi_mixer_new(struct snd_card_asihpi *asihpi) |
2552 | { | 2551 | { |
2553 | struct snd_card *card = asihpi->card; | 2552 | struct snd_card *card = asihpi->card; |
2554 | unsigned int idx = 0; | 2553 | unsigned int idx = 0; |
@@ -2722,7 +2721,7 @@ snd_asihpi_proc_read(struct snd_info_entry *entry, | |||
2722 | } | 2721 | } |
2723 | } | 2722 | } |
2724 | 2723 | ||
2725 | static void __devinit snd_asihpi_proc_init(struct snd_card_asihpi *asihpi) | 2724 | static void snd_asihpi_proc_init(struct snd_card_asihpi *asihpi) |
2726 | { | 2725 | { |
2727 | struct snd_info_entry *entry; | 2726 | struct snd_info_entry *entry; |
2728 | 2727 | ||
@@ -2764,8 +2763,8 @@ static int snd_asihpi_hpi_ioctl(struct snd_hwdep *hw, struct file *file, | |||
2764 | /* results in /dev/snd/hwC#D0 file for each card with index # | 2763 | /* results in /dev/snd/hwC#D0 file for each card with index # |
2765 | also /proc/asound/hwdep will contain '#-00: asihpi (HPI) for each card' | 2764 | also /proc/asound/hwdep will contain '#-00: asihpi (HPI) for each card' |
2766 | */ | 2765 | */ |
2767 | static int __devinit snd_asihpi_hpi_new(struct snd_card_asihpi *asihpi, | 2766 | static int snd_asihpi_hpi_new(struct snd_card_asihpi *asihpi, |
2768 | int device, struct snd_hwdep **rhwdep) | 2767 | int device, struct snd_hwdep **rhwdep) |
2769 | { | 2768 | { |
2770 | struct snd_hwdep *hw; | 2769 | struct snd_hwdep *hw; |
2771 | int err; | 2770 | int err; |
@@ -2789,8 +2788,8 @@ static int __devinit snd_asihpi_hpi_new(struct snd_card_asihpi *asihpi, | |||
2789 | /*------------------------------------------------------------ | 2788 | /*------------------------------------------------------------ |
2790 | CARD | 2789 | CARD |
2791 | ------------------------------------------------------------*/ | 2790 | ------------------------------------------------------------*/ |
2792 | static int __devinit snd_asihpi_probe(struct pci_dev *pci_dev, | 2791 | static int snd_asihpi_probe(struct pci_dev *pci_dev, |
2793 | const struct pci_device_id *pci_id) | 2792 | const struct pci_device_id *pci_id) |
2794 | { | 2793 | { |
2795 | int err; | 2794 | int err; |
2796 | struct hpi_adapter *hpi; | 2795 | struct hpi_adapter *hpi; |
@@ -2944,7 +2943,7 @@ __nodev: | |||
2944 | 2943 | ||
2945 | } | 2944 | } |
2946 | 2945 | ||
2947 | static void __devexit snd_asihpi_remove(struct pci_dev *pci_dev) | 2946 | static void snd_asihpi_remove(struct pci_dev *pci_dev) |
2948 | { | 2947 | { |
2949 | struct hpi_adapter *hpi = pci_get_drvdata(pci_dev); | 2948 | struct hpi_adapter *hpi = pci_get_drvdata(pci_dev); |
2950 | snd_card_free(hpi->snd_card); | 2949 | snd_card_free(hpi->snd_card); |
@@ -2967,7 +2966,7 @@ static struct pci_driver driver = { | |||
2967 | .name = KBUILD_MODNAME, | 2966 | .name = KBUILD_MODNAME, |
2968 | .id_table = asihpi_pci_tbl, | 2967 | .id_table = asihpi_pci_tbl, |
2969 | .probe = snd_asihpi_probe, | 2968 | .probe = snd_asihpi_probe, |
2970 | .remove = __devexit_p(snd_asihpi_remove), | 2969 | .remove = snd_asihpi_remove, |
2971 | #ifdef CONFIG_PM_SLEEP | 2970 | #ifdef CONFIG_PM_SLEEP |
2972 | /* .suspend = snd_asihpi_suspend, | 2971 | /* .suspend = snd_asihpi_suspend, |
2973 | .resume = snd_asihpi_resume, */ | 2972 | .resume = snd_asihpi_resume, */ |
diff --git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c index 8f9674972376..ef5019fe5193 100644 --- a/sound/pci/asihpi/hpioctl.c +++ b/sound/pci/asihpi/hpioctl.c | |||
@@ -307,8 +307,8 @@ out: | |||
307 | return err; | 307 | return err; |
308 | } | 308 | } |
309 | 309 | ||
310 | int __devinit asihpi_adapter_probe(struct pci_dev *pci_dev, | 310 | int asihpi_adapter_probe(struct pci_dev *pci_dev, |
311 | const struct pci_device_id *pci_id) | 311 | const struct pci_device_id *pci_id) |
312 | { | 312 | { |
313 | int idx, nm; | 313 | int idx, nm; |
314 | int adapter_index; | 314 | int adapter_index; |
@@ -420,7 +420,7 @@ err: | |||
420 | return -ENODEV; | 420 | return -ENODEV; |
421 | } | 421 | } |
422 | 422 | ||
423 | void __devexit asihpi_adapter_remove(struct pci_dev *pci_dev) | 423 | void asihpi_adapter_remove(struct pci_dev *pci_dev) |
424 | { | 424 | { |
425 | int idx; | 425 | int idx; |
426 | struct hpi_message hm; | 426 | struct hpi_message hm; |
diff --git a/sound/pci/asihpi/hpioctl.h b/sound/pci/asihpi/hpioctl.h index 2614aff672e2..0d767e10ac48 100644 --- a/sound/pci/asihpi/hpioctl.h +++ b/sound/pci/asihpi/hpioctl.h | |||
@@ -19,9 +19,9 @@ | |||
19 | Linux HPI ioctl, and shared module init functions | 19 | Linux HPI ioctl, and shared module init functions |
20 | *******************************************************************************/ | 20 | *******************************************************************************/ |
21 | 21 | ||
22 | int __devinit asihpi_adapter_probe(struct pci_dev *pci_dev, | 22 | int asihpi_adapter_probe(struct pci_dev *pci_dev, |
23 | const struct pci_device_id *pci_id); | 23 | const struct pci_device_id *pci_id); |
24 | void __devexit asihpi_adapter_remove(struct pci_dev *pci_dev); | 24 | void asihpi_adapter_remove(struct pci_dev *pci_dev); |
25 | void __init asihpi_init(void); | 25 | void __init asihpi_init(void); |
26 | void __exit asihpi_exit(void); | 26 | void __exit asihpi_exit(void); |
27 | 27 | ||
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index 368df8b0853e..a67743183aaf 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c | |||
@@ -296,7 +296,7 @@ static DEFINE_PCI_DEVICE_TABLE(snd_atiixp_ids) = { | |||
296 | 296 | ||
297 | MODULE_DEVICE_TABLE(pci, snd_atiixp_ids); | 297 | MODULE_DEVICE_TABLE(pci, snd_atiixp_ids); |
298 | 298 | ||
299 | static struct snd_pci_quirk atiixp_quirks[] __devinitdata = { | 299 | static struct snd_pci_quirk atiixp_quirks[] = { |
300 | SND_PCI_QUIRK(0x105b, 0x0c81, "Foxconn RC4107MA-RS2", 0), | 300 | SND_PCI_QUIRK(0x105b, 0x0c81, "Foxconn RC4107MA-RS2", 0), |
301 | SND_PCI_QUIRK(0x15bd, 0x3100, "DFI RS482", 0), | 301 | SND_PCI_QUIRK(0x15bd, 0x3100, "DFI RS482", 0), |
302 | { } /* terminator */ | 302 | { } /* terminator */ |
@@ -561,7 +561,7 @@ static int snd_atiixp_aclink_down(struct atiixp *chip) | |||
561 | ATI_REG_ISR_CODEC2_NOT_READY) | 561 | ATI_REG_ISR_CODEC2_NOT_READY) |
562 | #define CODEC_CHECK_BITS (ALL_CODEC_NOT_READY|ATI_REG_ISR_NEW_FRAME) | 562 | #define CODEC_CHECK_BITS (ALL_CODEC_NOT_READY|ATI_REG_ISR_NEW_FRAME) |
563 | 563 | ||
564 | static int __devinit ac97_probing_bugs(struct pci_dev *pci) | 564 | static int ac97_probing_bugs(struct pci_dev *pci) |
565 | { | 565 | { |
566 | const struct snd_pci_quirk *q; | 566 | const struct snd_pci_quirk *q; |
567 | 567 | ||
@@ -575,7 +575,7 @@ static int __devinit ac97_probing_bugs(struct pci_dev *pci) | |||
575 | return -1; | 575 | return -1; |
576 | } | 576 | } |
577 | 577 | ||
578 | static int __devinit snd_atiixp_codec_detect(struct atiixp *chip) | 578 | static int snd_atiixp_codec_detect(struct atiixp *chip) |
579 | { | 579 | { |
580 | int timeout; | 580 | int timeout; |
581 | 581 | ||
@@ -1183,7 +1183,7 @@ static struct snd_pcm_ops snd_atiixp_spdif_ops = { | |||
1183 | .pointer = snd_atiixp_pcm_pointer, | 1183 | .pointer = snd_atiixp_pcm_pointer, |
1184 | }; | 1184 | }; |
1185 | 1185 | ||
1186 | static struct ac97_pcm atiixp_pcm_defs[] __devinitdata = { | 1186 | static struct ac97_pcm atiixp_pcm_defs[] = { |
1187 | /* front PCM */ | 1187 | /* front PCM */ |
1188 | { | 1188 | { |
1189 | .exclusive = 1, | 1189 | .exclusive = 1, |
@@ -1247,7 +1247,7 @@ static struct atiixp_dma_ops snd_atiixp_spdif_dma_ops = { | |||
1247 | }; | 1247 | }; |
1248 | 1248 | ||
1249 | 1249 | ||
1250 | static int __devinit snd_atiixp_pcm_new(struct atiixp *chip) | 1250 | static int snd_atiixp_pcm_new(struct atiixp *chip) |
1251 | { | 1251 | { |
1252 | struct snd_pcm *pcm; | 1252 | struct snd_pcm *pcm; |
1253 | struct snd_pcm_chmap *chmap; | 1253 | struct snd_pcm_chmap *chmap; |
@@ -1390,7 +1390,7 @@ static irqreturn_t snd_atiixp_interrupt(int irq, void *dev_id) | |||
1390 | * ac97 mixer section | 1390 | * ac97 mixer section |
1391 | */ | 1391 | */ |
1392 | 1392 | ||
1393 | static struct ac97_quirk ac97_quirks[] __devinitdata = { | 1393 | static struct ac97_quirk ac97_quirks[] = { |
1394 | { | 1394 | { |
1395 | .subvendor = 0x103c, | 1395 | .subvendor = 0x103c, |
1396 | .subdevice = 0x006b, | 1396 | .subdevice = 0x006b, |
@@ -1412,8 +1412,8 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = { | |||
1412 | { } /* terminator */ | 1412 | { } /* terminator */ |
1413 | }; | 1413 | }; |
1414 | 1414 | ||
1415 | static int __devinit snd_atiixp_mixer_new(struct atiixp *chip, int clock, | 1415 | static int snd_atiixp_mixer_new(struct atiixp *chip, int clock, |
1416 | const char *quirk_override) | 1416 | const char *quirk_override) |
1417 | { | 1417 | { |
1418 | struct snd_ac97_bus *pbus; | 1418 | struct snd_ac97_bus *pbus; |
1419 | struct snd_ac97_template ac97; | 1419 | struct snd_ac97_template ac97; |
@@ -1560,7 +1560,7 @@ static void snd_atiixp_proc_read(struct snd_info_entry *entry, | |||
1560 | snd_iprintf(buffer, "%02x: %08x\n", i, readl(chip->remap_addr + i)); | 1560 | snd_iprintf(buffer, "%02x: %08x\n", i, readl(chip->remap_addr + i)); |
1561 | } | 1561 | } |
1562 | 1562 | ||
1563 | static void __devinit snd_atiixp_proc_init(struct atiixp *chip) | 1563 | static void snd_atiixp_proc_init(struct atiixp *chip) |
1564 | { | 1564 | { |
1565 | struct snd_info_entry *entry; | 1565 | struct snd_info_entry *entry; |
1566 | 1566 | ||
@@ -1602,9 +1602,9 @@ static int snd_atiixp_dev_free(struct snd_device *device) | |||
1602 | /* | 1602 | /* |
1603 | * constructor for chip instance | 1603 | * constructor for chip instance |
1604 | */ | 1604 | */ |
1605 | static int __devinit snd_atiixp_create(struct snd_card *card, | 1605 | static int snd_atiixp_create(struct snd_card *card, |
1606 | struct pci_dev *pci, | 1606 | struct pci_dev *pci, |
1607 | struct atiixp **r_chip) | 1607 | struct atiixp **r_chip) |
1608 | { | 1608 | { |
1609 | static struct snd_device_ops ops = { | 1609 | static struct snd_device_ops ops = { |
1610 | .dev_free = snd_atiixp_dev_free, | 1610 | .dev_free = snd_atiixp_dev_free, |
@@ -1661,8 +1661,8 @@ static int __devinit snd_atiixp_create(struct snd_card *card, | |||
1661 | } | 1661 | } |
1662 | 1662 | ||
1663 | 1663 | ||
1664 | static int __devinit snd_atiixp_probe(struct pci_dev *pci, | 1664 | static int snd_atiixp_probe(struct pci_dev *pci, |
1665 | const struct pci_device_id *pci_id) | 1665 | const struct pci_device_id *pci_id) |
1666 | { | 1666 | { |
1667 | struct snd_card *card; | 1667 | struct snd_card *card; |
1668 | struct atiixp *chip; | 1668 | struct atiixp *chip; |
@@ -1710,7 +1710,7 @@ static int __devinit snd_atiixp_probe(struct pci_dev *pci, | |||
1710 | return err; | 1710 | return err; |
1711 | } | 1711 | } |
1712 | 1712 | ||
1713 | static void __devexit snd_atiixp_remove(struct pci_dev *pci) | 1713 | static void snd_atiixp_remove(struct pci_dev *pci) |
1714 | { | 1714 | { |
1715 | snd_card_free(pci_get_drvdata(pci)); | 1715 | snd_card_free(pci_get_drvdata(pci)); |
1716 | pci_set_drvdata(pci, NULL); | 1716 | pci_set_drvdata(pci, NULL); |
@@ -1720,7 +1720,7 @@ static struct pci_driver atiixp_driver = { | |||
1720 | .name = KBUILD_MODNAME, | 1720 | .name = KBUILD_MODNAME, |
1721 | .id_table = snd_atiixp_ids, | 1721 | .id_table = snd_atiixp_ids, |
1722 | .probe = snd_atiixp_probe, | 1722 | .probe = snd_atiixp_probe, |
1723 | .remove = __devexit_p(snd_atiixp_remove), | 1723 | .remove = snd_atiixp_remove, |
1724 | .driver = { | 1724 | .driver = { |
1725 | .pm = SND_ATIIXP_PM_OPS, | 1725 | .pm = SND_ATIIXP_PM_OPS, |
1726 | }, | 1726 | }, |
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index 6fc03d9f2cff..d0bec7ba3b0d 100644 --- a/sound/pci/atiixp_modem.c +++ b/sound/pci/atiixp_modem.c | |||
@@ -988,7 +988,7 @@ static struct atiixp_dma_ops snd_atiixp_capture_dma_ops = { | |||
988 | .flush_dma = atiixp_in_flush_dma, | 988 | .flush_dma = atiixp_in_flush_dma, |
989 | }; | 989 | }; |
990 | 990 | ||
991 | static int __devinit snd_atiixp_pcm_new(struct atiixp_modem *chip) | 991 | static int snd_atiixp_pcm_new(struct atiixp_modem *chip) |
992 | { | 992 | { |
993 | struct snd_pcm *pcm; | 993 | struct snd_pcm *pcm; |
994 | int err; | 994 | int err; |
@@ -1061,7 +1061,7 @@ static irqreturn_t snd_atiixp_interrupt(int irq, void *dev_id) | |||
1061 | * ac97 mixer section | 1061 | * ac97 mixer section |
1062 | */ | 1062 | */ |
1063 | 1063 | ||
1064 | static int __devinit snd_atiixp_mixer_new(struct atiixp_modem *chip, int clock) | 1064 | static int snd_atiixp_mixer_new(struct atiixp_modem *chip, int clock) |
1065 | { | 1065 | { |
1066 | struct snd_ac97_bus *pbus; | 1066 | struct snd_ac97_bus *pbus; |
1067 | struct snd_ac97_template ac97; | 1067 | struct snd_ac97_template ac97; |
@@ -1186,7 +1186,7 @@ static void snd_atiixp_proc_read(struct snd_info_entry *entry, | |||
1186 | snd_iprintf(buffer, "%02x: %08x\n", i, readl(chip->remap_addr + i)); | 1186 | snd_iprintf(buffer, "%02x: %08x\n", i, readl(chip->remap_addr + i)); |
1187 | } | 1187 | } |
1188 | 1188 | ||
1189 | static void __devinit snd_atiixp_proc_init(struct atiixp_modem *chip) | 1189 | static void snd_atiixp_proc_init(struct atiixp_modem *chip) |
1190 | { | 1190 | { |
1191 | struct snd_info_entry *entry; | 1191 | struct snd_info_entry *entry; |
1192 | 1192 | ||
@@ -1228,9 +1228,9 @@ static int snd_atiixp_dev_free(struct snd_device *device) | |||
1228 | /* | 1228 | /* |
1229 | * constructor for chip instance | 1229 | * constructor for chip instance |
1230 | */ | 1230 | */ |
1231 | static int __devinit snd_atiixp_create(struct snd_card *card, | 1231 | static int snd_atiixp_create(struct snd_card *card, |
1232 | struct pci_dev *pci, | 1232 | struct pci_dev *pci, |
1233 | struct atiixp_modem **r_chip) | 1233 | struct atiixp_modem **r_chip) |
1234 | { | 1234 | { |
1235 | static struct snd_device_ops ops = { | 1235 | static struct snd_device_ops ops = { |
1236 | .dev_free = snd_atiixp_dev_free, | 1236 | .dev_free = snd_atiixp_dev_free, |
@@ -1287,8 +1287,8 @@ static int __devinit snd_atiixp_create(struct snd_card *card, | |||
1287 | } | 1287 | } |
1288 | 1288 | ||
1289 | 1289 | ||
1290 | static int __devinit snd_atiixp_probe(struct pci_dev *pci, | 1290 | static int snd_atiixp_probe(struct pci_dev *pci, |
1291 | const struct pci_device_id *pci_id) | 1291 | const struct pci_device_id *pci_id) |
1292 | { | 1292 | { |
1293 | struct snd_card *card; | 1293 | struct snd_card *card; |
1294 | struct atiixp_modem *chip; | 1294 | struct atiixp_modem *chip; |
@@ -1331,7 +1331,7 @@ static int __devinit snd_atiixp_probe(struct pci_dev *pci, | |||
1331 | return err; | 1331 | return err; |
1332 | } | 1332 | } |
1333 | 1333 | ||
1334 | static void __devexit snd_atiixp_remove(struct pci_dev *pci) | 1334 | static void snd_atiixp_remove(struct pci_dev *pci) |
1335 | { | 1335 | { |
1336 | snd_card_free(pci_get_drvdata(pci)); | 1336 | snd_card_free(pci_get_drvdata(pci)); |
1337 | pci_set_drvdata(pci, NULL); | 1337 | pci_set_drvdata(pci, NULL); |
@@ -1341,7 +1341,7 @@ static struct pci_driver atiixp_modem_driver = { | |||
1341 | .name = KBUILD_MODNAME, | 1341 | .name = KBUILD_MODNAME, |
1342 | .id_table = snd_atiixp_ids, | 1342 | .id_table = snd_atiixp_ids, |
1343 | .probe = snd_atiixp_probe, | 1343 | .probe = snd_atiixp_probe, |
1344 | .remove = __devexit_p(snd_atiixp_remove), | 1344 | .remove = snd_atiixp_remove, |
1345 | .driver = { | 1345 | .driver = { |
1346 | .pm = SND_ATIIXP_PM_OPS, | 1346 | .pm = SND_ATIIXP_PM_OPS, |
1347 | }, | 1347 | }, |
diff --git a/sound/pci/au88x0/au88x0.c b/sound/pci/au88x0/au88x0.c index ffc376f9f4e4..b157e1fadd8f 100644 --- a/sound/pci/au88x0/au88x0.c +++ b/sound/pci/au88x0/au88x0.c | |||
@@ -78,7 +78,7 @@ static void vortex_fix_agp_bridge(struct pci_dev *via) | |||
78 | } | 78 | } |
79 | } | 79 | } |
80 | 80 | ||
81 | static void __devinit snd_vortex_workaround(struct pci_dev *vortex, int fix) | 81 | static void snd_vortex_workaround(struct pci_dev *vortex, int fix) |
82 | { | 82 | { |
83 | struct pci_dev *via = NULL; | 83 | struct pci_dev *via = NULL; |
84 | 84 | ||
@@ -137,7 +137,7 @@ static int snd_vortex_dev_free(struct snd_device *device) | |||
137 | 137 | ||
138 | // chip-specific constructor | 138 | // chip-specific constructor |
139 | // (see "Management of Cards and Components") | 139 | // (see "Management of Cards and Components") |
140 | static int __devinit | 140 | static int |
141 | snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip) | 141 | snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip) |
142 | { | 142 | { |
143 | vortex_t *chip; | 143 | vortex_t *chip; |
@@ -234,7 +234,7 @@ snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip) | |||
234 | } | 234 | } |
235 | 235 | ||
236 | // constructor -- see "Constructor" sub-section | 236 | // constructor -- see "Constructor" sub-section |
237 | static int __devinit | 237 | static int |
238 | snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | 238 | snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) |
239 | { | 239 | { |
240 | static int dev; | 240 | static int dev; |
@@ -368,7 +368,7 @@ snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
368 | } | 368 | } |
369 | 369 | ||
370 | // destructor -- see "Destructor" sub-section | 370 | // destructor -- see "Destructor" sub-section |
371 | static void __devexit snd_vortex_remove(struct pci_dev *pci) | 371 | static void snd_vortex_remove(struct pci_dev *pci) |
372 | { | 372 | { |
373 | snd_card_free(pci_get_drvdata(pci)); | 373 | snd_card_free(pci_get_drvdata(pci)); |
374 | pci_set_drvdata(pci, NULL); | 374 | pci_set_drvdata(pci, NULL); |
@@ -379,7 +379,7 @@ static struct pci_driver vortex_driver = { | |||
379 | .name = KBUILD_MODNAME, | 379 | .name = KBUILD_MODNAME, |
380 | .id_table = snd_vortex_ids, | 380 | .id_table = snd_vortex_ids, |
381 | .probe = snd_vortex_probe, | 381 | .probe = snd_vortex_probe, |
382 | .remove = __devexit_p(snd_vortex_remove), | 382 | .remove = snd_vortex_remove, |
383 | }; | 383 | }; |
384 | 384 | ||
385 | module_pci_driver(vortex_driver); | 385 | module_pci_driver(vortex_driver); |
diff --git a/sound/pci/au88x0/au88x0_a3d.c b/sound/pci/au88x0/au88x0_a3d.c index 9ae8b3b17651..aad831acbb17 100644 --- a/sound/pci/au88x0/au88x0_a3d.c +++ b/sound/pci/au88x0/au88x0_a3d.c | |||
@@ -594,7 +594,7 @@ static int Vort3DRend_Initialize(vortex_t * v, unsigned short mode) | |||
594 | static int vortex_a3d_register_controls(vortex_t * vortex); | 594 | static int vortex_a3d_register_controls(vortex_t * vortex); |
595 | static void vortex_a3d_unregister_controls(vortex_t * vortex); | 595 | static void vortex_a3d_unregister_controls(vortex_t * vortex); |
596 | /* A3D base support init/shudown */ | 596 | /* A3D base support init/shudown */ |
597 | static void __devinit vortex_Vort3D_enable(vortex_t * v) | 597 | static void vortex_Vort3D_enable(vortex_t *v) |
598 | { | 598 | { |
599 | int i; | 599 | int i; |
600 | 600 | ||
@@ -845,7 +845,7 @@ snd_vortex_a3d_filter_put(struct snd_kcontrol *kcontrol, | |||
845 | return changed; | 845 | return changed; |
846 | } | 846 | } |
847 | 847 | ||
848 | static struct snd_kcontrol_new vortex_a3d_kcontrol __devinitdata = { | 848 | static struct snd_kcontrol_new vortex_a3d_kcontrol = { |
849 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 849 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
850 | .name = "Playback PCM advanced processing", | 850 | .name = "Playback PCM advanced processing", |
851 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, | 851 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, |
@@ -855,7 +855,7 @@ static struct snd_kcontrol_new vortex_a3d_kcontrol __devinitdata = { | |||
855 | }; | 855 | }; |
856 | 856 | ||
857 | /* Control (un)registration. */ | 857 | /* Control (un)registration. */ |
858 | static int __devinit vortex_a3d_register_controls(vortex_t * vortex) | 858 | static int vortex_a3d_register_controls(vortex_t *vortex) |
859 | { | 859 | { |
860 | struct snd_kcontrol *kcontrol; | 860 | struct snd_kcontrol *kcontrol; |
861 | int err, i; | 861 | int err, i; |
diff --git a/sound/pci/au88x0/au88x0_core.c b/sound/pci/au88x0/au88x0_core.c index 2698abf5d05d..ae59dbaa53d9 100644 --- a/sound/pci/au88x0/au88x0_core.c +++ b/sound/pci/au88x0/au88x0_core.c | |||
@@ -2680,7 +2680,7 @@ static void vortex_spdif_init(vortex_t * vortex, int spdif_sr, int spdif_mode) | |||
2680 | 2680 | ||
2681 | /* Initialization */ | 2681 | /* Initialization */ |
2682 | 2682 | ||
2683 | static int __devinit vortex_core_init(vortex_t * vortex) | 2683 | static int vortex_core_init(vortex_t *vortex) |
2684 | { | 2684 | { |
2685 | 2685 | ||
2686 | printk(KERN_INFO "Vortex: init.... "); | 2686 | printk(KERN_INFO "Vortex: init.... "); |
diff --git a/sound/pci/au88x0/au88x0_eq.c b/sound/pci/au88x0/au88x0_eq.c index 278ed8189fca..e7220533ecfc 100644 --- a/sound/pci/au88x0/au88x0_eq.c +++ b/sound/pci/au88x0/au88x0_eq.c | |||
@@ -757,7 +757,7 @@ snd_vortex_eqtoggle_put(struct snd_kcontrol *kcontrol, | |||
757 | return 1; /* Allways changes */ | 757 | return 1; /* Allways changes */ |
758 | } | 758 | } |
759 | 759 | ||
760 | static struct snd_kcontrol_new vortex_eqtoggle_kcontrol __devinitdata = { | 760 | static struct snd_kcontrol_new vortex_eqtoggle_kcontrol = { |
761 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 761 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
762 | .name = "EQ Enable", | 762 | .name = "EQ Enable", |
763 | .index = 0, | 763 | .index = 0, |
@@ -815,7 +815,7 @@ snd_vortex_eq_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucon | |||
815 | return changed; | 815 | return changed; |
816 | } | 816 | } |
817 | 817 | ||
818 | static struct snd_kcontrol_new vortex_eq_kcontrol __devinitdata = { | 818 | static struct snd_kcontrol_new vortex_eq_kcontrol = { |
819 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 819 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
820 | .name = " .", | 820 | .name = " .", |
821 | .index = 0, | 821 | .index = 0, |
@@ -854,7 +854,7 @@ snd_vortex_peaks_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *u | |||
854 | return 0; | 854 | return 0; |
855 | } | 855 | } |
856 | 856 | ||
857 | static struct snd_kcontrol_new vortex_levels_kcontrol __devinitdata = { | 857 | static struct snd_kcontrol_new vortex_levels_kcontrol = { |
858 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 858 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
859 | .name = "EQ Peaks", | 859 | .name = "EQ Peaks", |
860 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, | 860 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, |
@@ -863,7 +863,7 @@ static struct snd_kcontrol_new vortex_levels_kcontrol __devinitdata = { | |||
863 | }; | 863 | }; |
864 | 864 | ||
865 | /* EQ band gain labels. */ | 865 | /* EQ band gain labels. */ |
866 | static char *EqBandLabels[10] __devinitdata = { | 866 | static char *EqBandLabels[10] = { |
867 | "EQ0 31Hz\0", | 867 | "EQ0 31Hz\0", |
868 | "EQ1 63Hz\0", | 868 | "EQ1 63Hz\0", |
869 | "EQ2 125Hz\0", | 869 | "EQ2 125Hz\0", |
@@ -877,7 +877,7 @@ static char *EqBandLabels[10] __devinitdata = { | |||
877 | }; | 877 | }; |
878 | 878 | ||
879 | /* ALSA driver entry points. Init and exit. */ | 879 | /* ALSA driver entry points. Init and exit. */ |
880 | static int __devinit vortex_eq_init(vortex_t * vortex) | 880 | static int vortex_eq_init(vortex_t *vortex) |
881 | { | 881 | { |
882 | struct snd_kcontrol *kcontrol; | 882 | struct snd_kcontrol *kcontrol; |
883 | int err, i; | 883 | int err, i; |
diff --git a/sound/pci/au88x0/au88x0_game.c b/sound/pci/au88x0/au88x0_game.c index 30a456700d89..280f86de2230 100644 --- a/sound/pci/au88x0/au88x0_game.c +++ b/sound/pci/au88x0/au88x0_game.c | |||
@@ -92,7 +92,7 @@ static int vortex_game_open(struct gameport *gameport, int mode) | |||
92 | return 0; | 92 | return 0; |
93 | } | 93 | } |
94 | 94 | ||
95 | static int __devinit vortex_gameport_register(vortex_t * vortex) | 95 | static int vortex_gameport_register(vortex_t *vortex) |
96 | { | 96 | { |
97 | struct gameport *gp; | 97 | struct gameport *gp; |
98 | 98 | ||
diff --git a/sound/pci/au88x0/au88x0_mixer.c b/sound/pci/au88x0/au88x0_mixer.c index fa13efbebdaf..a58298cfe7e0 100644 --- a/sound/pci/au88x0/au88x0_mixer.c +++ b/sound/pci/au88x0/au88x0_mixer.c | |||
@@ -19,7 +19,7 @@ static int remove_ctl(struct snd_card *card, const char *name) | |||
19 | return snd_ctl_remove_id(card, &id); | 19 | return snd_ctl_remove_id(card, &id); |
20 | } | 20 | } |
21 | 21 | ||
22 | static int __devinit snd_vortex_mixer(vortex_t * vortex) | 22 | static int snd_vortex_mixer(vortex_t *vortex) |
23 | { | 23 | { |
24 | struct snd_ac97_bus *pbus; | 24 | struct snd_ac97_bus *pbus; |
25 | struct snd_ac97_template ac97; | 25 | struct snd_ac97_template ac97; |
diff --git a/sound/pci/au88x0/au88x0_mpu401.c b/sound/pci/au88x0/au88x0_mpu401.c index e6c6a0febb75..29e5945eef60 100644 --- a/sound/pci/au88x0/au88x0_mpu401.c +++ b/sound/pci/au88x0/au88x0_mpu401.c | |||
@@ -41,7 +41,7 @@ | |||
41 | #define MPU401_ENTER_UART 0x3f | 41 | #define MPU401_ENTER_UART 0x3f |
42 | #define MPU401_ACK 0xfe | 42 | #define MPU401_ACK 0xfe |
43 | 43 | ||
44 | static int __devinit snd_vortex_midi(vortex_t * vortex) | 44 | static int snd_vortex_midi(vortex_t *vortex) |
45 | { | 45 | { |
46 | struct snd_rawmidi *rmidi; | 46 | struct snd_rawmidi *rmidi; |
47 | int temp, mode; | 47 | int temp, mode; |
diff --git a/sound/pci/au88x0/au88x0_pcm.c b/sound/pci/au88x0/au88x0_pcm.c index b2405020284c..a4184bb27761 100644 --- a/sound/pci/au88x0/au88x0_pcm.c +++ b/sound/pci/au88x0/au88x0_pcm.c | |||
@@ -516,7 +516,7 @@ static int snd_vortex_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_el | |||
516 | } | 516 | } |
517 | 517 | ||
518 | /* spdif controls */ | 518 | /* spdif controls */ |
519 | static struct snd_kcontrol_new snd_vortex_mixer_spdif[] __devinitdata = { | 519 | static struct snd_kcontrol_new snd_vortex_mixer_spdif[] = { |
520 | { | 520 | { |
521 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 521 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
522 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), | 522 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), |
@@ -598,7 +598,7 @@ static int snd_vortex_pcm_vol_put(struct snd_kcontrol *kcontrol, | |||
598 | 598 | ||
599 | static const DECLARE_TLV_DB_MINMAX(vortex_pcm_vol_db_scale, -9600, 2400); | 599 | static const DECLARE_TLV_DB_MINMAX(vortex_pcm_vol_db_scale, -9600, 2400); |
600 | 600 | ||
601 | static struct snd_kcontrol_new snd_vortex_pcm_vol __devinitdata = { | 601 | static struct snd_kcontrol_new snd_vortex_pcm_vol = { |
602 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 602 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
603 | .name = "PCM Playback Volume", | 603 | .name = "PCM Playback Volume", |
604 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | | 604 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | |
@@ -611,7 +611,7 @@ static struct snd_kcontrol_new snd_vortex_pcm_vol __devinitdata = { | |||
611 | }; | 611 | }; |
612 | 612 | ||
613 | /* create a pcm device */ | 613 | /* create a pcm device */ |
614 | static int __devinit snd_vortex_new_pcm(vortex_t *chip, int idx, int nr) | 614 | static int snd_vortex_new_pcm(vortex_t *chip, int idx, int nr) |
615 | { | 615 | { |
616 | struct snd_pcm *pcm; | 616 | struct snd_pcm *pcm; |
617 | struct snd_kcontrol *kctl; | 617 | struct snd_kcontrol *kctl; |
diff --git a/sound/pci/aw2/aw2-alsa.c b/sound/pci/aw2/aw2-alsa.c index 0f804741825f..08e9a4702cbc 100644 --- a/sound/pci/aw2/aw2-alsa.c +++ b/sound/pci/aw2/aw2-alsa.c | |||
@@ -113,11 +113,11 @@ struct aw2 { | |||
113 | * FUNCTION DECLARATIONS | 113 | * FUNCTION DECLARATIONS |
114 | ********************************/ | 114 | ********************************/ |
115 | static int snd_aw2_dev_free(struct snd_device *device); | 115 | static int snd_aw2_dev_free(struct snd_device *device); |
116 | static int __devinit snd_aw2_create(struct snd_card *card, | 116 | static int snd_aw2_create(struct snd_card *card, |
117 | struct pci_dev *pci, struct aw2 **rchip); | 117 | struct pci_dev *pci, struct aw2 **rchip); |
118 | static int __devinit snd_aw2_probe(struct pci_dev *pci, | 118 | static int snd_aw2_probe(struct pci_dev *pci, |
119 | const struct pci_device_id *pci_id); | 119 | const struct pci_device_id *pci_id); |
120 | static void __devexit snd_aw2_remove(struct pci_dev *pci); | 120 | static void snd_aw2_remove(struct pci_dev *pci); |
121 | static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream); | 121 | static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream); |
122 | static int snd_aw2_pcm_playback_close(struct snd_pcm_substream *substream); | 122 | static int snd_aw2_pcm_playback_close(struct snd_pcm_substream *substream); |
123 | static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream); | 123 | static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream); |
@@ -135,7 +135,7 @@ static snd_pcm_uframes_t snd_aw2_pcm_pointer_playback(struct snd_pcm_substream | |||
135 | *substream); | 135 | *substream); |
136 | static snd_pcm_uframes_t snd_aw2_pcm_pointer_capture(struct snd_pcm_substream | 136 | static snd_pcm_uframes_t snd_aw2_pcm_pointer_capture(struct snd_pcm_substream |
137 | *substream); | 137 | *substream); |
138 | static int __devinit snd_aw2_new_pcm(struct aw2 *chip); | 138 | static int snd_aw2_new_pcm(struct aw2 *chip); |
139 | 139 | ||
140 | static int snd_aw2_control_switch_capture_info(struct snd_kcontrol *kcontrol, | 140 | static int snd_aw2_control_switch_capture_info(struct snd_kcontrol *kcontrol, |
141 | struct snd_ctl_elem_info *uinfo); | 141 | struct snd_ctl_elem_info *uinfo); |
@@ -173,7 +173,7 @@ static struct pci_driver aw2_driver = { | |||
173 | .name = KBUILD_MODNAME, | 173 | .name = KBUILD_MODNAME, |
174 | .id_table = snd_aw2_ids, | 174 | .id_table = snd_aw2_ids, |
175 | .probe = snd_aw2_probe, | 175 | .probe = snd_aw2_probe, |
176 | .remove = __devexit_p(snd_aw2_remove), | 176 | .remove = snd_aw2_remove, |
177 | }; | 177 | }; |
178 | 178 | ||
179 | module_pci_driver(aw2_driver); | 179 | module_pci_driver(aw2_driver); |
@@ -202,7 +202,7 @@ static struct snd_pcm_ops snd_aw2_capture_ops = { | |||
202 | .pointer = snd_aw2_pcm_pointer_capture, | 202 | .pointer = snd_aw2_pcm_pointer_capture, |
203 | }; | 203 | }; |
204 | 204 | ||
205 | static struct snd_kcontrol_new aw2_control __devinitdata = { | 205 | static struct snd_kcontrol_new aw2_control = { |
206 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 206 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
207 | .name = "PCM Capture Route", | 207 | .name = "PCM Capture Route", |
208 | .index = 0, | 208 | .index = 0, |
@@ -242,8 +242,8 @@ static int snd_aw2_dev_free(struct snd_device *device) | |||
242 | } | 242 | } |
243 | 243 | ||
244 | /* chip-specific constructor */ | 244 | /* chip-specific constructor */ |
245 | static int __devinit snd_aw2_create(struct snd_card *card, | 245 | static int snd_aw2_create(struct snd_card *card, |
246 | struct pci_dev *pci, struct aw2 **rchip) | 246 | struct pci_dev *pci, struct aw2 **rchip) |
247 | { | 247 | { |
248 | struct aw2 *chip; | 248 | struct aw2 *chip; |
249 | int err; | 249 | int err; |
@@ -332,8 +332,8 @@ static int __devinit snd_aw2_create(struct snd_card *card, | |||
332 | } | 332 | } |
333 | 333 | ||
334 | /* constructor */ | 334 | /* constructor */ |
335 | static int __devinit snd_aw2_probe(struct pci_dev *pci, | 335 | static int snd_aw2_probe(struct pci_dev *pci, |
336 | const struct pci_device_id *pci_id) | 336 | const struct pci_device_id *pci_id) |
337 | { | 337 | { |
338 | static int dev; | 338 | static int dev; |
339 | struct snd_card *card; | 339 | struct snd_card *card; |
@@ -389,7 +389,7 @@ static int __devinit snd_aw2_probe(struct pci_dev *pci, | |||
389 | } | 389 | } |
390 | 390 | ||
391 | /* destructor */ | 391 | /* destructor */ |
392 | static void __devexit snd_aw2_remove(struct pci_dev *pci) | 392 | static void snd_aw2_remove(struct pci_dev *pci) |
393 | { | 393 | { |
394 | snd_card_free(pci_get_drvdata(pci)); | 394 | snd_card_free(pci_get_drvdata(pci)); |
395 | pci_set_drvdata(pci, NULL); | 395 | pci_set_drvdata(pci, NULL); |
@@ -591,7 +591,7 @@ static snd_pcm_uframes_t snd_aw2_pcm_pointer_capture(struct snd_pcm_substream | |||
591 | } | 591 | } |
592 | 592 | ||
593 | /* create a pcm device */ | 593 | /* create a pcm device */ |
594 | static int __devinit snd_aw2_new_pcm(struct aw2 *chip) | 594 | static int snd_aw2_new_pcm(struct aw2 *chip) |
595 | { | 595 | { |
596 | struct snd_pcm *pcm_playback_ana; | 596 | struct snd_pcm *pcm_playback_ana; |
597 | struct snd_pcm *pcm_playback_num; | 597 | struct snd_pcm *pcm_playback_num; |
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c index c03b66b784a3..1204a0fa3368 100644 --- a/sound/pci/azt3328.c +++ b/sound/pci/azt3328.c | |||
@@ -817,7 +817,7 @@ snd_azf3328_mixer_ac97_write(struct snd_ac97 *ac97, | |||
817 | snd_azf3328_mixer_ac97_map_unsupported(reg_ac97, "write"); | 817 | snd_azf3328_mixer_ac97_map_unsupported(reg_ac97, "write"); |
818 | } | 818 | } |
819 | 819 | ||
820 | static int __devinit | 820 | static int |
821 | snd_azf3328_mixer_new(struct snd_azf3328 *chip) | 821 | snd_azf3328_mixer_new(struct snd_azf3328 *chip) |
822 | { | 822 | { |
823 | struct snd_ac97_bus *bus; | 823 | struct snd_ac97_bus *bus; |
@@ -1171,7 +1171,7 @@ snd_azf3328_put_mixer_enum(struct snd_kcontrol *kcontrol, | |||
1171 | return (nreg != oreg); | 1171 | return (nreg != oreg); |
1172 | } | 1172 | } |
1173 | 1173 | ||
1174 | static struct snd_kcontrol_new snd_azf3328_mixer_controls[] __devinitdata = { | 1174 | static struct snd_kcontrol_new snd_azf3328_mixer_controls[] = { |
1175 | AZF3328_MIXER_SWITCH("Master Playback Switch", IDX_MIXER_PLAY_MASTER, 15, 1), | 1175 | AZF3328_MIXER_SWITCH("Master Playback Switch", IDX_MIXER_PLAY_MASTER, 15, 1), |
1176 | AZF3328_MIXER_VOL_STEREO("Master Playback Volume", IDX_MIXER_PLAY_MASTER, 0x1f, 1), | 1176 | AZF3328_MIXER_VOL_STEREO("Master Playback Volume", IDX_MIXER_PLAY_MASTER, 0x1f, 1), |
1177 | AZF3328_MIXER_SWITCH("PCM Playback Switch", IDX_MIXER_WAVEOUT, 15, 1), | 1177 | AZF3328_MIXER_SWITCH("PCM Playback Switch", IDX_MIXER_WAVEOUT, 15, 1), |
@@ -1229,7 +1229,7 @@ static struct snd_kcontrol_new snd_azf3328_mixer_controls[] __devinitdata = { | |||
1229 | #endif | 1229 | #endif |
1230 | }; | 1230 | }; |
1231 | 1231 | ||
1232 | static u16 __devinitdata snd_azf3328_init_values[][2] = { | 1232 | static u16 snd_azf3328_init_values[][2] = { |
1233 | { IDX_MIXER_PLAY_MASTER, MIXER_MUTE_MASK|0x1f1f }, | 1233 | { IDX_MIXER_PLAY_MASTER, MIXER_MUTE_MASK|0x1f1f }, |
1234 | { IDX_MIXER_MODEMOUT, MIXER_MUTE_MASK|0x1f1f }, | 1234 | { IDX_MIXER_MODEMOUT, MIXER_MUTE_MASK|0x1f1f }, |
1235 | { IDX_MIXER_BASSTREBLE, 0x0000 }, | 1235 | { IDX_MIXER_BASSTREBLE, 0x0000 }, |
@@ -1245,7 +1245,7 @@ static u16 __devinitdata snd_azf3328_init_values[][2] = { | |||
1245 | { IDX_MIXER_REC_VOLUME, MIXER_MUTE_MASK|0x0707 }, | 1245 | { IDX_MIXER_REC_VOLUME, MIXER_MUTE_MASK|0x0707 }, |
1246 | }; | 1246 | }; |
1247 | 1247 | ||
1248 | static int __devinit | 1248 | static int |
1249 | snd_azf3328_mixer_new(struct snd_azf3328 *chip) | 1249 | snd_azf3328_mixer_new(struct snd_azf3328 *chip) |
1250 | { | 1250 | { |
1251 | struct snd_card *card; | 1251 | struct snd_card *card; |
@@ -1899,7 +1899,7 @@ snd_azf3328_gameport_cooked_read(struct gameport *gameport, | |||
1899 | return 0; | 1899 | return 0; |
1900 | } | 1900 | } |
1901 | 1901 | ||
1902 | static int __devinit | 1902 | static int |
1903 | snd_azf3328_gameport(struct snd_azf3328 *chip, int dev) | 1903 | snd_azf3328_gameport(struct snd_azf3328 *chip, int dev) |
1904 | { | 1904 | { |
1905 | struct gameport *gp; | 1905 | struct gameport *gp; |
@@ -2212,7 +2212,7 @@ static struct snd_pcm_ops snd_azf3328_i2s_out_ops = { | |||
2212 | .pointer = snd_azf3328_pcm_pointer | 2212 | .pointer = snd_azf3328_pcm_pointer |
2213 | }; | 2213 | }; |
2214 | 2214 | ||
2215 | static int __devinit | 2215 | static int |
2216 | snd_azf3328_pcm(struct snd_azf3328 *chip) | 2216 | snd_azf3328_pcm(struct snd_azf3328 *chip) |
2217 | { | 2217 | { |
2218 | enum { AZF_PCMDEV_STD, AZF_PCMDEV_I2S_OUT, NUM_AZF_PCMDEVS }; /* pcm devices */ | 2218 | enum { AZF_PCMDEV_STD, AZF_PCMDEV_I2S_OUT, NUM_AZF_PCMDEVS }; /* pcm devices */ |
@@ -2344,7 +2344,7 @@ static struct snd_timer_hardware snd_azf3328_timer_hw = { | |||
2344 | .precise_resolution = snd_azf3328_timer_precise_resolution, | 2344 | .precise_resolution = snd_azf3328_timer_precise_resolution, |
2345 | }; | 2345 | }; |
2346 | 2346 | ||
2347 | static int __devinit | 2347 | static int |
2348 | snd_azf3328_timer(struct snd_azf3328 *chip, int device) | 2348 | snd_azf3328_timer(struct snd_azf3328 *chip, int device) |
2349 | { | 2349 | { |
2350 | struct snd_timer *timer = NULL; | 2350 | struct snd_timer *timer = NULL; |
@@ -2489,7 +2489,7 @@ snd_azf3328_debug_show_ports(const struct snd_azf3328 *chip) | |||
2489 | #endif /* DEBUG_MISC */ | 2489 | #endif /* DEBUG_MISC */ |
2490 | } | 2490 | } |
2491 | 2491 | ||
2492 | static int __devinit | 2492 | static int |
2493 | snd_azf3328_create(struct snd_card *card, | 2493 | snd_azf3328_create(struct snd_card *card, |
2494 | struct pci_dev *pci, | 2494 | struct pci_dev *pci, |
2495 | unsigned long device_type, | 2495 | unsigned long device_type, |
@@ -2615,7 +2615,7 @@ out: | |||
2615 | return err; | 2615 | return err; |
2616 | } | 2616 | } |
2617 | 2617 | ||
2618 | static int __devinit | 2618 | static int |
2619 | snd_azf3328_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | 2619 | snd_azf3328_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) |
2620 | { | 2620 | { |
2621 | static int dev; | 2621 | static int dev; |
@@ -2720,7 +2720,7 @@ out: | |||
2720 | return err; | 2720 | return err; |
2721 | } | 2721 | } |
2722 | 2722 | ||
2723 | static void __devexit | 2723 | static void |
2724 | snd_azf3328_remove(struct pci_dev *pci) | 2724 | snd_azf3328_remove(struct pci_dev *pci) |
2725 | { | 2725 | { |
2726 | snd_azf3328_dbgcallenter(); | 2726 | snd_azf3328_dbgcallenter(); |
@@ -2872,7 +2872,7 @@ static struct pci_driver azf3328_driver = { | |||
2872 | .name = KBUILD_MODNAME, | 2872 | .name = KBUILD_MODNAME, |
2873 | .id_table = snd_azf3328_ids, | 2873 | .id_table = snd_azf3328_ids, |
2874 | .probe = snd_azf3328_probe, | 2874 | .probe = snd_azf3328_probe, |
2875 | .remove = __devexit_p(snd_azf3328_remove), | 2875 | .remove = snd_azf3328_remove, |
2876 | .driver = { | 2876 | .driver = { |
2877 | .pm = SND_AZF3328_PM_OPS, | 2877 | .pm = SND_AZF3328_PM_OPS, |
2878 | }, | 2878 | }, |
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 65c55910566b..1610a5705970 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1352,7 +1352,7 @@ static const struct snd_pcm_chmap_elem side_map[] = { | |||
1352 | { } | 1352 | { } |
1353 | }; | 1353 | }; |
1354 | 1354 | ||
1355 | static int __devinit snd_ca0106_pcm(struct snd_ca0106 *emu, int device) | 1355 | static int snd_ca0106_pcm(struct snd_ca0106 *emu, int device) |
1356 | { | 1356 | { |
1357 | struct snd_pcm *pcm; | 1357 | struct snd_pcm *pcm; |
1358 | struct snd_pcm_substream *substream; | 1358 | struct snd_pcm_substream *substream; |
@@ -1650,7 +1650,7 @@ static void ca0106_stop_chip(struct snd_ca0106 *chip) | |||
1650 | */ | 1650 | */ |
1651 | } | 1651 | } |
1652 | 1652 | ||
1653 | static int __devinit snd_ca0106_create(int dev, struct snd_card *card, | 1653 | static int snd_ca0106_create(int dev, struct snd_card *card, |
1654 | struct pci_dev *pci, | 1654 | struct pci_dev *pci, |
1655 | struct snd_ca0106 **rchip) | 1655 | struct snd_ca0106 **rchip) |
1656 | { | 1656 | { |
@@ -1777,7 +1777,7 @@ static int ca0106_dev_id_port(void *dev_id) | |||
1777 | return ((struct snd_ca0106 *)dev_id)->port; | 1777 | return ((struct snd_ca0106 *)dev_id)->port; |
1778 | } | 1778 | } |
1779 | 1779 | ||
1780 | static int __devinit snd_ca0106_midi(struct snd_ca0106 *chip, unsigned int channel) | 1780 | static int snd_ca0106_midi(struct snd_ca0106 *chip, unsigned int channel) |
1781 | { | 1781 | { |
1782 | struct snd_ca_midi *midi; | 1782 | struct snd_ca_midi *midi; |
1783 | char *name; | 1783 | char *name; |
@@ -1828,7 +1828,7 @@ static int __devinit snd_ca0106_midi(struct snd_ca0106 *chip, unsigned int chann | |||
1828 | } | 1828 | } |
1829 | 1829 | ||
1830 | 1830 | ||
1831 | static int __devinit snd_ca0106_probe(struct pci_dev *pci, | 1831 | static int snd_ca0106_probe(struct pci_dev *pci, |
1832 | const struct pci_device_id *pci_id) | 1832 | const struct pci_device_id *pci_id) |
1833 | { | 1833 | { |
1834 | static int dev; | 1834 | static int dev; |
@@ -1893,7 +1893,7 @@ static int __devinit snd_ca0106_probe(struct pci_dev *pci, | |||
1893 | return err; | 1893 | return err; |
1894 | } | 1894 | } |
1895 | 1895 | ||
1896 | static void __devexit snd_ca0106_remove(struct pci_dev *pci) | 1896 | static void snd_ca0106_remove(struct pci_dev *pci) |
1897 | { | 1897 | { |
1898 | snd_card_free(pci_get_drvdata(pci)); | 1898 | snd_card_free(pci_get_drvdata(pci)); |
1899 | pci_set_drvdata(pci, NULL); | 1899 | pci_set_drvdata(pci, NULL); |
@@ -1971,7 +1971,7 @@ static struct pci_driver ca0106_driver = { | |||
1971 | .name = KBUILD_MODNAME, | 1971 | .name = KBUILD_MODNAME, |
1972 | .id_table = snd_ca0106_ids, | 1972 | .id_table = snd_ca0106_ids, |
1973 | .probe = snd_ca0106_probe, | 1973 | .probe = snd_ca0106_probe, |
1974 | .remove = __devexit_p(snd_ca0106_remove), | 1974 | .remove = snd_ca0106_remove, |
1975 | .driver = { | 1975 | .driver = { |
1976 | .pm = SND_CA0106_PM_OPS, | 1976 | .pm = SND_CA0106_PM_OPS, |
1977 | }, | 1977 | }, |
diff --git a/sound/pci/ca0106/ca0106_mixer.c b/sound/pci/ca0106/ca0106_mixer.c index 68eacf7002d6..27de0de90018 100644 --- a/sound/pci/ca0106/ca0106_mixer.c +++ b/sound/pci/ca0106/ca0106_mixer.c | |||
@@ -325,7 +325,7 @@ static int snd_ca0106_capture_mic_line_in_put(struct snd_kcontrol *kcontrol, | |||
325 | return change; | 325 | return change; |
326 | } | 326 | } |
327 | 327 | ||
328 | static struct snd_kcontrol_new snd_ca0106_capture_mic_line_in __devinitdata = | 328 | static struct snd_kcontrol_new snd_ca0106_capture_mic_line_in = |
329 | { | 329 | { |
330 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 330 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
331 | .name = "Shared Mic/Line in Capture Switch", | 331 | .name = "Shared Mic/Line in Capture Switch", |
@@ -334,7 +334,7 @@ static struct snd_kcontrol_new snd_ca0106_capture_mic_line_in __devinitdata = | |||
334 | .put = snd_ca0106_capture_mic_line_in_put | 334 | .put = snd_ca0106_capture_mic_line_in_put |
335 | }; | 335 | }; |
336 | 336 | ||
337 | static struct snd_kcontrol_new snd_ca0106_capture_line_in_side_out __devinitdata = | 337 | static struct snd_kcontrol_new snd_ca0106_capture_line_in_side_out = |
338 | { | 338 | { |
339 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 339 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
340 | .name = "Shared Line in/Side out Capture Switch", | 340 | .name = "Shared Line in/Side out Capture Switch", |
@@ -588,7 +588,7 @@ static int spi_mute_put(struct snd_kcontrol *kcontrol, | |||
588 | .private_value = ((chid) << 8) | (reg) \ | 588 | .private_value = ((chid) << 8) | (reg) \ |
589 | } | 589 | } |
590 | 590 | ||
591 | static struct snd_kcontrol_new snd_ca0106_volume_ctls[] __devinitdata = { | 591 | static struct snd_kcontrol_new snd_ca0106_volume_ctls[] = { |
592 | CA_VOLUME("Analog Front Playback Volume", | 592 | CA_VOLUME("Analog Front Playback Volume", |
593 | CONTROL_FRONT_CHANNEL, PLAYBACK_VOLUME2), | 593 | CONTROL_FRONT_CHANNEL, PLAYBACK_VOLUME2), |
594 | CA_VOLUME("Analog Rear Playback Volume", | 594 | CA_VOLUME("Analog Rear Playback Volume", |
@@ -669,7 +669,7 @@ static struct snd_kcontrol_new snd_ca0106_volume_ctls[] __devinitdata = { | |||
669 | .private_value = chid \ | 669 | .private_value = chid \ |
670 | } | 670 | } |
671 | 671 | ||
672 | static struct snd_kcontrol_new snd_ca0106_volume_i2c_adc_ctls[] __devinitdata = { | 672 | static struct snd_kcontrol_new snd_ca0106_volume_i2c_adc_ctls[] = { |
673 | I2C_VOLUME("Phone Capture Volume", 0), | 673 | I2C_VOLUME("Phone Capture Volume", 0), |
674 | I2C_VOLUME("Mic Capture Volume", 1), | 674 | I2C_VOLUME("Mic Capture Volume", 1), |
675 | I2C_VOLUME("Line in Capture Volume", 2), | 675 | I2C_VOLUME("Line in Capture Volume", 2), |
@@ -691,7 +691,7 @@ static const int spi_dmute_bit[] = { | |||
691 | SPI_DMUTE4_BIT, | 691 | SPI_DMUTE4_BIT, |
692 | }; | 692 | }; |
693 | 693 | ||
694 | static struct snd_kcontrol_new __devinit | 694 | static struct snd_kcontrol_new |
695 | snd_ca0106_volume_spi_dac_ctl(struct snd_ca0106_details *details, | 695 | snd_ca0106_volume_spi_dac_ctl(struct snd_ca0106_details *details, |
696 | int channel_id) | 696 | int channel_id) |
697 | { | 697 | { |
@@ -735,7 +735,7 @@ snd_ca0106_volume_spi_dac_ctl(struct snd_ca0106_details *details, | |||
735 | return spi_switch; | 735 | return spi_switch; |
736 | } | 736 | } |
737 | 737 | ||
738 | static int __devinit remove_ctl(struct snd_card *card, const char *name) | 738 | static int remove_ctl(struct snd_card *card, const char *name) |
739 | { | 739 | { |
740 | struct snd_ctl_elem_id id; | 740 | struct snd_ctl_elem_id id; |
741 | memset(&id, 0, sizeof(id)); | 741 | memset(&id, 0, sizeof(id)); |
@@ -744,7 +744,7 @@ static int __devinit remove_ctl(struct snd_card *card, const char *name) | |||
744 | return snd_ctl_remove_id(card, &id); | 744 | return snd_ctl_remove_id(card, &id); |
745 | } | 745 | } |
746 | 746 | ||
747 | static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card, const char *name) | 747 | static struct snd_kcontrol *ctl_find(struct snd_card *card, const char *name) |
748 | { | 748 | { |
749 | struct snd_ctl_elem_id sid; | 749 | struct snd_ctl_elem_id sid; |
750 | memset(&sid, 0, sizeof(sid)); | 750 | memset(&sid, 0, sizeof(sid)); |
@@ -754,7 +754,7 @@ static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card, const char | |||
754 | return snd_ctl_find_id(card, &sid); | 754 | return snd_ctl_find_id(card, &sid); |
755 | } | 755 | } |
756 | 756 | ||
757 | static int __devinit rename_ctl(struct snd_card *card, const char *src, const char *dst) | 757 | static int rename_ctl(struct snd_card *card, const char *src, const char *dst) |
758 | { | 758 | { |
759 | struct snd_kcontrol *kctl = ctl_find(card, src); | 759 | struct snd_kcontrol *kctl = ctl_find(card, src); |
760 | if (kctl) { | 760 | if (kctl) { |
@@ -774,10 +774,10 @@ static int __devinit rename_ctl(struct snd_card *card, const char *src, const ch | |||
774 | } \ | 774 | } \ |
775 | } while (0) | 775 | } while (0) |
776 | 776 | ||
777 | static __devinitdata | 777 | static |
778 | DECLARE_TLV_DB_SCALE(snd_ca0106_master_db_scale, -6375, 25, 1); | 778 | DECLARE_TLV_DB_SCALE(snd_ca0106_master_db_scale, -6375, 25, 1); |
779 | 779 | ||
780 | static char *slave_vols[] __devinitdata = { | 780 | static char *slave_vols[] = { |
781 | "Analog Front Playback Volume", | 781 | "Analog Front Playback Volume", |
782 | "Analog Rear Playback Volume", | 782 | "Analog Rear Playback Volume", |
783 | "Analog Center/LFE Playback Volume", | 783 | "Analog Center/LFE Playback Volume", |
@@ -790,7 +790,7 @@ static char *slave_vols[] __devinitdata = { | |||
790 | NULL | 790 | NULL |
791 | }; | 791 | }; |
792 | 792 | ||
793 | static char *slave_sws[] __devinitdata = { | 793 | static char *slave_sws[] = { |
794 | "Analog Front Playback Switch", | 794 | "Analog Front Playback Switch", |
795 | "Analog Rear Playback Switch", | 795 | "Analog Rear Playback Switch", |
796 | "Analog Center/LFE Playback Switch", | 796 | "Analog Center/LFE Playback Switch", |
@@ -799,7 +799,7 @@ static char *slave_sws[] __devinitdata = { | |||
799 | NULL | 799 | NULL |
800 | }; | 800 | }; |
801 | 801 | ||
802 | static void __devinit add_slaves(struct snd_card *card, | 802 | static void add_slaves(struct snd_card *card, |
803 | struct snd_kcontrol *master, char **list) | 803 | struct snd_kcontrol *master, char **list) |
804 | { | 804 | { |
805 | for (; *list; list++) { | 805 | for (; *list; list++) { |
@@ -809,7 +809,7 @@ static void __devinit add_slaves(struct snd_card *card, | |||
809 | } | 809 | } |
810 | } | 810 | } |
811 | 811 | ||
812 | int __devinit snd_ca0106_mixer(struct snd_ca0106 *emu) | 812 | int snd_ca0106_mixer(struct snd_ca0106 *emu) |
813 | { | 813 | { |
814 | int err; | 814 | int err; |
815 | struct snd_card *card = emu->card; | 815 | struct snd_card *card = emu->card; |
diff --git a/sound/pci/ca0106/ca0106_proc.c b/sound/pci/ca0106/ca0106_proc.c index c694464b1168..4f9c2821bb31 100644 --- a/sound/pci/ca0106/ca0106_proc.c +++ b/sound/pci/ca0106/ca0106_proc.c | |||
@@ -424,7 +424,7 @@ static void snd_ca0106_proc_i2c_write(struct snd_info_entry *entry, | |||
424 | } | 424 | } |
425 | } | 425 | } |
426 | 426 | ||
427 | int __devinit snd_ca0106_proc_init(struct snd_ca0106 * emu) | 427 | int snd_ca0106_proc_init(struct snd_ca0106 *emu) |
428 | { | 428 | { |
429 | struct snd_info_entry *entry; | 429 | struct snd_info_entry *entry; |
430 | 430 | ||
diff --git a/sound/pci/ca0106/ca_midi.c b/sound/pci/ca0106/ca_midi.c index c7885117da33..8bbdf265d11d 100644 --- a/sound/pci/ca0106/ca_midi.c +++ b/sound/pci/ca0106/ca_midi.c | |||
@@ -286,7 +286,7 @@ static void ca_rmidi_free(struct snd_rawmidi *rmidi) | |||
286 | ca_midi_free(rmidi->private_data); | 286 | ca_midi_free(rmidi->private_data); |
287 | } | 287 | } |
288 | 288 | ||
289 | int __devinit ca_midi_init(void *dev_id, struct snd_ca_midi *midi, int device, char *name) | 289 | int ca_midi_init(void *dev_id, struct snd_ca_midi *midi, int device, char *name) |
290 | { | 290 | { |
291 | struct snd_rawmidi *rmidi; | 291 | struct snd_rawmidi *rmidi; |
292 | int err; | 292 | int err; |
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index 22122ff26e34..c617435db6e6 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
@@ -1045,7 +1045,7 @@ static int snd_cmipci_spdif_default_put(struct snd_kcontrol *kcontrol, | |||
1045 | return change; | 1045 | return change; |
1046 | } | 1046 | } |
1047 | 1047 | ||
1048 | static struct snd_kcontrol_new snd_cmipci_spdif_default __devinitdata = | 1048 | static struct snd_kcontrol_new snd_cmipci_spdif_default = |
1049 | { | 1049 | { |
1050 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1050 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
1051 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), | 1051 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), |
@@ -1072,7 +1072,7 @@ static int snd_cmipci_spdif_mask_get(struct snd_kcontrol *kcontrol, | |||
1072 | return 0; | 1072 | return 0; |
1073 | } | 1073 | } |
1074 | 1074 | ||
1075 | static struct snd_kcontrol_new snd_cmipci_spdif_mask __devinitdata = | 1075 | static struct snd_kcontrol_new snd_cmipci_spdif_mask = |
1076 | { | 1076 | { |
1077 | .access = SNDRV_CTL_ELEM_ACCESS_READ, | 1077 | .access = SNDRV_CTL_ELEM_ACCESS_READ, |
1078 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1078 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
@@ -1119,7 +1119,7 @@ static int snd_cmipci_spdif_stream_put(struct snd_kcontrol *kcontrol, | |||
1119 | return change; | 1119 | return change; |
1120 | } | 1120 | } |
1121 | 1121 | ||
1122 | static struct snd_kcontrol_new snd_cmipci_spdif_stream __devinitdata = | 1122 | static struct snd_kcontrol_new snd_cmipci_spdif_stream = |
1123 | { | 1123 | { |
1124 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE, | 1124 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE, |
1125 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1125 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
@@ -1897,7 +1897,7 @@ static struct snd_pcm_ops snd_cmipci_capture_spdif_ops = { | |||
1897 | /* | 1897 | /* |
1898 | */ | 1898 | */ |
1899 | 1899 | ||
1900 | static int __devinit snd_cmipci_pcm_new(struct cmipci *cm, int device) | 1900 | static int snd_cmipci_pcm_new(struct cmipci *cm, int device) |
1901 | { | 1901 | { |
1902 | struct snd_pcm *pcm; | 1902 | struct snd_pcm *pcm; |
1903 | int err; | 1903 | int err; |
@@ -1920,7 +1920,7 @@ static int __devinit snd_cmipci_pcm_new(struct cmipci *cm, int device) | |||
1920 | return 0; | 1920 | return 0; |
1921 | } | 1921 | } |
1922 | 1922 | ||
1923 | static int __devinit snd_cmipci_pcm2_new(struct cmipci *cm, int device) | 1923 | static int snd_cmipci_pcm2_new(struct cmipci *cm, int device) |
1924 | { | 1924 | { |
1925 | struct snd_pcm *pcm; | 1925 | struct snd_pcm *pcm; |
1926 | int err; | 1926 | int err; |
@@ -1942,7 +1942,7 @@ static int __devinit snd_cmipci_pcm2_new(struct cmipci *cm, int device) | |||
1942 | return 0; | 1942 | return 0; |
1943 | } | 1943 | } |
1944 | 1944 | ||
1945 | static int __devinit snd_cmipci_pcm_spdif_new(struct cmipci *cm, int device) | 1945 | static int snd_cmipci_pcm_spdif_new(struct cmipci *cm, int device) |
1946 | { | 1946 | { |
1947 | struct snd_pcm *pcm; | 1947 | struct snd_pcm *pcm; |
1948 | int err; | 1948 | int err; |
@@ -2290,7 +2290,7 @@ static int snd_cmipci_put_native_mixer_sensitive(struct snd_kcontrol *kcontrol, | |||
2290 | } | 2290 | } |
2291 | 2291 | ||
2292 | 2292 | ||
2293 | static struct snd_kcontrol_new snd_cmipci_mixers[] __devinitdata = { | 2293 | static struct snd_kcontrol_new snd_cmipci_mixers[] = { |
2294 | CMIPCI_SB_VOL_STEREO("Master Playback Volume", SB_DSP4_MASTER_DEV, 3, 31), | 2294 | CMIPCI_SB_VOL_STEREO("Master Playback Volume", SB_DSP4_MASTER_DEV, 3, 31), |
2295 | CMIPCI_MIXER_SW_MONO("3D Control - Switch", CM_REG_MIXER1, CM_X3DEN_SHIFT, 0), | 2295 | CMIPCI_MIXER_SW_MONO("3D Control - Switch", CM_REG_MIXER1, CM_X3DEN_SHIFT, 0), |
2296 | CMIPCI_SB_VOL_STEREO("PCM Playback Volume", SB_DSP4_PCM_DEV, 3, 31), | 2296 | CMIPCI_SB_VOL_STEREO("PCM Playback Volume", SB_DSP4_PCM_DEV, 3, 31), |
@@ -2601,7 +2601,7 @@ static int snd_cmipci_mic_in_mode_put(struct snd_kcontrol *kcontrol, | |||
2601 | } | 2601 | } |
2602 | 2602 | ||
2603 | /* both for CM8338/8738 */ | 2603 | /* both for CM8338/8738 */ |
2604 | static struct snd_kcontrol_new snd_cmipci_mixer_switches[] __devinitdata = { | 2604 | static struct snd_kcontrol_new snd_cmipci_mixer_switches[] = { |
2605 | DEFINE_MIXER_SWITCH("Four Channel Mode", fourch), | 2605 | DEFINE_MIXER_SWITCH("Four Channel Mode", fourch), |
2606 | { | 2606 | { |
2607 | .name = "Line-In Mode", | 2607 | .name = "Line-In Mode", |
@@ -2613,11 +2613,11 @@ static struct snd_kcontrol_new snd_cmipci_mixer_switches[] __devinitdata = { | |||
2613 | }; | 2613 | }; |
2614 | 2614 | ||
2615 | /* for non-multichannel chips */ | 2615 | /* for non-multichannel chips */ |
2616 | static struct snd_kcontrol_new snd_cmipci_nomulti_switch __devinitdata = | 2616 | static struct snd_kcontrol_new snd_cmipci_nomulti_switch = |
2617 | DEFINE_MIXER_SWITCH("Exchange DAC", exchange_dac); | 2617 | DEFINE_MIXER_SWITCH("Exchange DAC", exchange_dac); |
2618 | 2618 | ||
2619 | /* only for CM8738 */ | 2619 | /* only for CM8738 */ |
2620 | static struct snd_kcontrol_new snd_cmipci_8738_mixer_switches[] __devinitdata = { | 2620 | static struct snd_kcontrol_new snd_cmipci_8738_mixer_switches[] = { |
2621 | #if 0 /* controlled in pcm device */ | 2621 | #if 0 /* controlled in pcm device */ |
2622 | DEFINE_MIXER_SWITCH("IEC958 In Record", spdif_in), | 2622 | DEFINE_MIXER_SWITCH("IEC958 In Record", spdif_in), |
2623 | DEFINE_MIXER_SWITCH("IEC958 Out", spdif_out), | 2623 | DEFINE_MIXER_SWITCH("IEC958 Out", spdif_out), |
@@ -2639,14 +2639,14 @@ static struct snd_kcontrol_new snd_cmipci_8738_mixer_switches[] __devinitdata = | |||
2639 | }; | 2639 | }; |
2640 | 2640 | ||
2641 | /* only for model 033/037 */ | 2641 | /* only for model 033/037 */ |
2642 | static struct snd_kcontrol_new snd_cmipci_old_mixer_switches[] __devinitdata = { | 2642 | static struct snd_kcontrol_new snd_cmipci_old_mixer_switches[] = { |
2643 | DEFINE_MIXER_SWITCH("IEC958 Mix Analog", spdif_dac_out), | 2643 | DEFINE_MIXER_SWITCH("IEC958 Mix Analog", spdif_dac_out), |
2644 | DEFINE_MIXER_SWITCH("IEC958 In Phase Inverse", spdi_phase), | 2644 | DEFINE_MIXER_SWITCH("IEC958 In Phase Inverse", spdi_phase), |
2645 | DEFINE_MIXER_SWITCH("IEC958 In Select", spdif_in_sel1), | 2645 | DEFINE_MIXER_SWITCH("IEC958 In Select", spdif_in_sel1), |
2646 | }; | 2646 | }; |
2647 | 2647 | ||
2648 | /* only for model 039 or later */ | 2648 | /* only for model 039 or later */ |
2649 | static struct snd_kcontrol_new snd_cmipci_extra_mixer_switches[] __devinitdata = { | 2649 | static struct snd_kcontrol_new snd_cmipci_extra_mixer_switches[] = { |
2650 | DEFINE_MIXER_SWITCH("IEC958 In Select", spdif_in_sel2), | 2650 | DEFINE_MIXER_SWITCH("IEC958 In Select", spdif_in_sel2), |
2651 | DEFINE_MIXER_SWITCH("IEC958 In Phase Inverse", spdi_phase2), | 2651 | DEFINE_MIXER_SWITCH("IEC958 In Phase Inverse", spdi_phase2), |
2652 | { | 2652 | { |
@@ -2659,11 +2659,11 @@ static struct snd_kcontrol_new snd_cmipci_extra_mixer_switches[] __devinitdata = | |||
2659 | }; | 2659 | }; |
2660 | 2660 | ||
2661 | /* card control switches */ | 2661 | /* card control switches */ |
2662 | static struct snd_kcontrol_new snd_cmipci_modem_switch __devinitdata = | 2662 | static struct snd_kcontrol_new snd_cmipci_modem_switch = |
2663 | DEFINE_CARD_SWITCH("Modem", modem); | 2663 | DEFINE_CARD_SWITCH("Modem", modem); |
2664 | 2664 | ||
2665 | 2665 | ||
2666 | static int __devinit snd_cmipci_mixer_new(struct cmipci *cm, int pcm_spdif_device) | 2666 | static int snd_cmipci_mixer_new(struct cmipci *cm, int pcm_spdif_device) |
2667 | { | 2667 | { |
2668 | struct snd_card *card; | 2668 | struct snd_card *card; |
2669 | struct snd_kcontrol_new *sw; | 2669 | struct snd_kcontrol_new *sw; |
@@ -2791,7 +2791,7 @@ static void snd_cmipci_proc_read(struct snd_info_entry *entry, | |||
2791 | snd_iprintf(buffer, "\n"); | 2791 | snd_iprintf(buffer, "\n"); |
2792 | } | 2792 | } |
2793 | 2793 | ||
2794 | static void __devinit snd_cmipci_proc_init(struct cmipci *cm) | 2794 | static void snd_cmipci_proc_init(struct cmipci *cm) |
2795 | { | 2795 | { |
2796 | struct snd_info_entry *entry; | 2796 | struct snd_info_entry *entry; |
2797 | 2797 | ||
@@ -2817,7 +2817,7 @@ static DEFINE_PCI_DEVICE_TABLE(snd_cmipci_ids) = { | |||
2817 | * check chip version and capabilities | 2817 | * check chip version and capabilities |
2818 | * driver name is modified according to the chip model | 2818 | * driver name is modified according to the chip model |
2819 | */ | 2819 | */ |
2820 | static void __devinit query_chip(struct cmipci *cm) | 2820 | static void query_chip(struct cmipci *cm) |
2821 | { | 2821 | { |
2822 | unsigned int detect; | 2822 | unsigned int detect; |
2823 | 2823 | ||
@@ -2866,7 +2866,7 @@ static void __devinit query_chip(struct cmipci *cm) | |||
2866 | } | 2866 | } |
2867 | 2867 | ||
2868 | #ifdef SUPPORT_JOYSTICK | 2868 | #ifdef SUPPORT_JOYSTICK |
2869 | static int __devinit snd_cmipci_create_gameport(struct cmipci *cm, int dev) | 2869 | static int snd_cmipci_create_gameport(struct cmipci *cm, int dev) |
2870 | { | 2870 | { |
2871 | static int ports[] = { 0x201, 0x200, 0 }; /* FIXME: majority is 0x201? */ | 2871 | static int ports[] = { 0x201, 0x200, 0 }; /* FIXME: majority is 0x201? */ |
2872 | struct gameport *gp; | 2872 | struct gameport *gp; |
@@ -2959,7 +2959,7 @@ static int snd_cmipci_dev_free(struct snd_device *device) | |||
2959 | return snd_cmipci_free(cm); | 2959 | return snd_cmipci_free(cm); |
2960 | } | 2960 | } |
2961 | 2961 | ||
2962 | static int __devinit snd_cmipci_create_fm(struct cmipci *cm, long fm_port) | 2962 | static int snd_cmipci_create_fm(struct cmipci *cm, long fm_port) |
2963 | { | 2963 | { |
2964 | long iosynth; | 2964 | long iosynth; |
2965 | unsigned int val; | 2965 | unsigned int val; |
@@ -3012,8 +3012,8 @@ static int __devinit snd_cmipci_create_fm(struct cmipci *cm, long fm_port) | |||
3012 | return 0; | 3012 | return 0; |
3013 | } | 3013 | } |
3014 | 3014 | ||
3015 | static int __devinit snd_cmipci_create(struct snd_card *card, struct pci_dev *pci, | 3015 | static int snd_cmipci_create(struct snd_card *card, struct pci_dev *pci, |
3016 | int dev, struct cmipci **rcmipci) | 3016 | int dev, struct cmipci **rcmipci) |
3017 | { | 3017 | { |
3018 | struct cmipci *cm; | 3018 | struct cmipci *cm; |
3019 | int err; | 3019 | int err; |
@@ -3265,8 +3265,8 @@ static int __devinit snd_cmipci_create(struct snd_card *card, struct pci_dev *pc | |||
3265 | 3265 | ||
3266 | MODULE_DEVICE_TABLE(pci, snd_cmipci_ids); | 3266 | MODULE_DEVICE_TABLE(pci, snd_cmipci_ids); |
3267 | 3267 | ||
3268 | static int __devinit snd_cmipci_probe(struct pci_dev *pci, | 3268 | static int snd_cmipci_probe(struct pci_dev *pci, |
3269 | const struct pci_device_id *pci_id) | 3269 | const struct pci_device_id *pci_id) |
3270 | { | 3270 | { |
3271 | static int dev; | 3271 | static int dev; |
3272 | struct snd_card *card; | 3272 | struct snd_card *card; |
@@ -3314,7 +3314,7 @@ static int __devinit snd_cmipci_probe(struct pci_dev *pci, | |||
3314 | 3314 | ||
3315 | } | 3315 | } |
3316 | 3316 | ||
3317 | static void __devexit snd_cmipci_remove(struct pci_dev *pci) | 3317 | static void snd_cmipci_remove(struct pci_dev *pci) |
3318 | { | 3318 | { |
3319 | snd_card_free(pci_get_drvdata(pci)); | 3319 | snd_card_free(pci_get_drvdata(pci)); |
3320 | pci_set_drvdata(pci, NULL); | 3320 | pci_set_drvdata(pci, NULL); |
@@ -3415,7 +3415,7 @@ static struct pci_driver cmipci_driver = { | |||
3415 | .name = KBUILD_MODNAME, | 3415 | .name = KBUILD_MODNAME, |
3416 | .id_table = snd_cmipci_ids, | 3416 | .id_table = snd_cmipci_ids, |
3417 | .probe = snd_cmipci_probe, | 3417 | .probe = snd_cmipci_probe, |
3418 | .remove = __devexit_p(snd_cmipci_remove), | 3418 | .remove = snd_cmipci_remove, |
3419 | .driver = { | 3419 | .driver = { |
3420 | .pm = SND_CMIPCI_PM_OPS, | 3420 | .pm = SND_CMIPCI_PM_OPS, |
3421 | }, | 3421 | }, |
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c index 8e86ec0031fc..6a8695069941 100644 --- a/sound/pci/cs4281.c +++ b/sound/pci/cs4281.c | |||
@@ -969,8 +969,8 @@ static struct snd_pcm_ops snd_cs4281_capture_ops = { | |||
969 | .pointer = snd_cs4281_pointer, | 969 | .pointer = snd_cs4281_pointer, |
970 | }; | 970 | }; |
971 | 971 | ||
972 | static int __devinit snd_cs4281_pcm(struct cs4281 * chip, int device, | 972 | static int snd_cs4281_pcm(struct cs4281 *chip, int device, |
973 | struct snd_pcm ** rpcm) | 973 | struct snd_pcm **rpcm) |
974 | { | 974 | { |
975 | struct snd_pcm *pcm; | 975 | struct snd_pcm *pcm; |
976 | int err; | 976 | int err; |
@@ -1093,7 +1093,7 @@ static void snd_cs4281_mixer_free_ac97(struct snd_ac97 *ac97) | |||
1093 | chip->ac97 = NULL; | 1093 | chip->ac97 = NULL; |
1094 | } | 1094 | } |
1095 | 1095 | ||
1096 | static int __devinit snd_cs4281_mixer(struct cs4281 * chip) | 1096 | static int snd_cs4281_mixer(struct cs4281 *chip) |
1097 | { | 1097 | { |
1098 | struct snd_card *card = chip->card; | 1098 | struct snd_card *card = chip->card; |
1099 | struct snd_ac97_template ac97; | 1099 | struct snd_ac97_template ac97; |
@@ -1171,7 +1171,7 @@ static struct snd_info_entry_ops snd_cs4281_proc_ops_BA1 = { | |||
1171 | .read = snd_cs4281_BA1_read, | 1171 | .read = snd_cs4281_BA1_read, |
1172 | }; | 1172 | }; |
1173 | 1173 | ||
1174 | static void __devinit snd_cs4281_proc_init(struct cs4281 * chip) | 1174 | static void snd_cs4281_proc_init(struct cs4281 *chip) |
1175 | { | 1175 | { |
1176 | struct snd_info_entry *entry; | 1176 | struct snd_info_entry *entry; |
1177 | 1177 | ||
@@ -1259,7 +1259,7 @@ static int snd_cs4281_gameport_open(struct gameport *gameport, int mode) | |||
1259 | return 0; | 1259 | return 0; |
1260 | } | 1260 | } |
1261 | 1261 | ||
1262 | static int __devinit snd_cs4281_create_gameport(struct cs4281 *chip) | 1262 | static int snd_cs4281_create_gameport(struct cs4281 *chip) |
1263 | { | 1263 | { |
1264 | struct gameport *gp; | 1264 | struct gameport *gp; |
1265 | 1265 | ||
@@ -1335,10 +1335,10 @@ static int snd_cs4281_dev_free(struct snd_device *device) | |||
1335 | 1335 | ||
1336 | static int snd_cs4281_chip_init(struct cs4281 *chip); /* defined below */ | 1336 | static int snd_cs4281_chip_init(struct cs4281 *chip); /* defined below */ |
1337 | 1337 | ||
1338 | static int __devinit snd_cs4281_create(struct snd_card *card, | 1338 | static int snd_cs4281_create(struct snd_card *card, |
1339 | struct pci_dev *pci, | 1339 | struct pci_dev *pci, |
1340 | struct cs4281 ** rchip, | 1340 | struct cs4281 **rchip, |
1341 | int dual_codec) | 1341 | int dual_codec) |
1342 | { | 1342 | { |
1343 | struct cs4281 *chip; | 1343 | struct cs4281 *chip; |
1344 | unsigned int tmp; | 1344 | unsigned int tmp; |
@@ -1779,8 +1779,8 @@ static struct snd_rawmidi_ops snd_cs4281_midi_input = | |||
1779 | .trigger = snd_cs4281_midi_input_trigger, | 1779 | .trigger = snd_cs4281_midi_input_trigger, |
1780 | }; | 1780 | }; |
1781 | 1781 | ||
1782 | static int __devinit snd_cs4281_midi(struct cs4281 * chip, int device, | 1782 | static int snd_cs4281_midi(struct cs4281 *chip, int device, |
1783 | struct snd_rawmidi **rrawmidi) | 1783 | struct snd_rawmidi **rrawmidi) |
1784 | { | 1784 | { |
1785 | struct snd_rawmidi *rmidi; | 1785 | struct snd_rawmidi *rmidi; |
1786 | int err; | 1786 | int err; |
@@ -1901,8 +1901,8 @@ static void snd_cs4281_opl3_command(struct snd_opl3 *opl3, unsigned short cmd, | |||
1901 | spin_unlock_irqrestore(&opl3->reg_lock, flags); | 1901 | spin_unlock_irqrestore(&opl3->reg_lock, flags); |
1902 | } | 1902 | } |
1903 | 1903 | ||
1904 | static int __devinit snd_cs4281_probe(struct pci_dev *pci, | 1904 | static int snd_cs4281_probe(struct pci_dev *pci, |
1905 | const struct pci_device_id *pci_id) | 1905 | const struct pci_device_id *pci_id) |
1906 | { | 1906 | { |
1907 | static int dev; | 1907 | static int dev; |
1908 | struct snd_card *card; | 1908 | struct snd_card *card; |
@@ -1968,7 +1968,7 @@ static int __devinit snd_cs4281_probe(struct pci_dev *pci, | |||
1968 | return 0; | 1968 | return 0; |
1969 | } | 1969 | } |
1970 | 1970 | ||
1971 | static void __devexit snd_cs4281_remove(struct pci_dev *pci) | 1971 | static void snd_cs4281_remove(struct pci_dev *pci) |
1972 | { | 1972 | { |
1973 | snd_card_free(pci_get_drvdata(pci)); | 1973 | snd_card_free(pci_get_drvdata(pci)); |
1974 | pci_set_drvdata(pci, NULL); | 1974 | pci_set_drvdata(pci, NULL); |
@@ -2095,7 +2095,7 @@ static struct pci_driver cs4281_driver = { | |||
2095 | .name = KBUILD_MODNAME, | 2095 | .name = KBUILD_MODNAME, |
2096 | .id_table = snd_cs4281_ids, | 2096 | .id_table = snd_cs4281_ids, |
2097 | .probe = snd_cs4281_probe, | 2097 | .probe = snd_cs4281_probe, |
2098 | .remove = __devexit_p(snd_cs4281_remove), | 2098 | .remove = snd_cs4281_remove, |
2099 | .driver = { | 2099 | .driver = { |
2100 | .pm = CS4281_PM_OPS, | 2100 | .pm = CS4281_PM_OPS, |
2101 | }, | 2101 | }, |
diff --git a/sound/pci/cs46xx/cs46xx.c b/sound/pci/cs46xx/cs46xx.c index 575bed0836ff..6b0d8b50a305 100644 --- a/sound/pci/cs46xx/cs46xx.c +++ b/sound/pci/cs46xx/cs46xx.c | |||
@@ -73,8 +73,8 @@ static DEFINE_PCI_DEVICE_TABLE(snd_cs46xx_ids) = { | |||
73 | 73 | ||
74 | MODULE_DEVICE_TABLE(pci, snd_cs46xx_ids); | 74 | MODULE_DEVICE_TABLE(pci, snd_cs46xx_ids); |
75 | 75 | ||
76 | static int __devinit snd_card_cs46xx_probe(struct pci_dev *pci, | 76 | static int snd_card_cs46xx_probe(struct pci_dev *pci, |
77 | const struct pci_device_id *pci_id) | 77 | const struct pci_device_id *pci_id) |
78 | { | 78 | { |
79 | static int dev; | 79 | static int dev; |
80 | struct snd_card *card; | 80 | struct snd_card *card; |
@@ -155,7 +155,7 @@ static int __devinit snd_card_cs46xx_probe(struct pci_dev *pci, | |||
155 | return 0; | 155 | return 0; |
156 | } | 156 | } |
157 | 157 | ||
158 | static void __devexit snd_card_cs46xx_remove(struct pci_dev *pci) | 158 | static void snd_card_cs46xx_remove(struct pci_dev *pci) |
159 | { | 159 | { |
160 | snd_card_free(pci_get_drvdata(pci)); | 160 | snd_card_free(pci_get_drvdata(pci)); |
161 | pci_set_drvdata(pci, NULL); | 161 | pci_set_drvdata(pci, NULL); |
@@ -165,7 +165,7 @@ static struct pci_driver cs46xx_driver = { | |||
165 | .name = KBUILD_MODNAME, | 165 | .name = KBUILD_MODNAME, |
166 | .id_table = snd_cs46xx_ids, | 166 | .id_table = snd_cs46xx_ids, |
167 | .probe = snd_card_cs46xx_probe, | 167 | .probe = snd_card_cs46xx_probe, |
168 | .remove = __devexit_p(snd_card_cs46xx_remove), | 168 | .remove = snd_card_cs46xx_remove, |
169 | #ifdef CONFIG_PM_SLEEP | 169 | #ifdef CONFIG_PM_SLEEP |
170 | .driver = { | 170 | .driver = { |
171 | .pm = &snd_cs46xx_pm, | 171 | .pm = &snd_cs46xx_pm, |
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index a2bb8c91ebe6..1b66efd9b728 100644 --- a/sound/pci/cs46xx/cs46xx_lib.c +++ b/sound/pci/cs46xx/cs46xx_lib.c | |||
@@ -1590,7 +1590,7 @@ static struct snd_pcm_ops snd_cs46xx_capture_indirect_ops = { | |||
1590 | #define MAX_PLAYBACK_CHANNELS 1 | 1590 | #define MAX_PLAYBACK_CHANNELS 1 |
1591 | #endif | 1591 | #endif |
1592 | 1592 | ||
1593 | int __devinit snd_cs46xx_pcm(struct snd_cs46xx *chip, int device, struct snd_pcm ** rpcm) | 1593 | int snd_cs46xx_pcm(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm) |
1594 | { | 1594 | { |
1595 | struct snd_pcm *pcm; | 1595 | struct snd_pcm *pcm; |
1596 | int err; | 1596 | int err; |
@@ -1621,7 +1621,8 @@ int __devinit snd_cs46xx_pcm(struct snd_cs46xx *chip, int device, struct snd_pcm | |||
1621 | 1621 | ||
1622 | 1622 | ||
1623 | #ifdef CONFIG_SND_CS46XX_NEW_DSP | 1623 | #ifdef CONFIG_SND_CS46XX_NEW_DSP |
1624 | int __devinit snd_cs46xx_pcm_rear(struct snd_cs46xx *chip, int device, struct snd_pcm ** rpcm) | 1624 | int snd_cs46xx_pcm_rear(struct snd_cs46xx *chip, int device, |
1625 | struct snd_pcm **rpcm) | ||
1625 | { | 1626 | { |
1626 | struct snd_pcm *pcm; | 1627 | struct snd_pcm *pcm; |
1627 | int err; | 1628 | int err; |
@@ -1650,7 +1651,8 @@ int __devinit snd_cs46xx_pcm_rear(struct snd_cs46xx *chip, int device, struct sn | |||
1650 | return 0; | 1651 | return 0; |
1651 | } | 1652 | } |
1652 | 1653 | ||
1653 | int __devinit snd_cs46xx_pcm_center_lfe(struct snd_cs46xx *chip, int device, struct snd_pcm ** rpcm) | 1654 | int snd_cs46xx_pcm_center_lfe(struct snd_cs46xx *chip, int device, |
1655 | struct snd_pcm **rpcm) | ||
1654 | { | 1656 | { |
1655 | struct snd_pcm *pcm; | 1657 | struct snd_pcm *pcm; |
1656 | int err; | 1658 | int err; |
@@ -1679,7 +1681,8 @@ int __devinit snd_cs46xx_pcm_center_lfe(struct snd_cs46xx *chip, int device, str | |||
1679 | return 0; | 1681 | return 0; |
1680 | } | 1682 | } |
1681 | 1683 | ||
1682 | int __devinit snd_cs46xx_pcm_iec958(struct snd_cs46xx *chip, int device, struct snd_pcm ** rpcm) | 1684 | int snd_cs46xx_pcm_iec958(struct snd_cs46xx *chip, int device, |
1685 | struct snd_pcm **rpcm) | ||
1683 | { | 1686 | { |
1684 | struct snd_pcm *pcm; | 1687 | struct snd_pcm *pcm; |
1685 | int err; | 1688 | int err; |
@@ -2092,7 +2095,7 @@ static int snd_cs46xx_spdif_stream_put(struct snd_kcontrol *kcontrol, | |||
2092 | #endif /* CONFIG_SND_CS46XX_NEW_DSP */ | 2095 | #endif /* CONFIG_SND_CS46XX_NEW_DSP */ |
2093 | 2096 | ||
2094 | 2097 | ||
2095 | static struct snd_kcontrol_new snd_cs46xx_controls[] __devinitdata = { | 2098 | static struct snd_kcontrol_new snd_cs46xx_controls[] = { |
2096 | { | 2099 | { |
2097 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2100 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2098 | .name = "DAC Volume", | 2101 | .name = "DAC Volume", |
@@ -2278,7 +2281,7 @@ static void snd_cs46xx_codec_reset (struct snd_ac97 * ac97) | |||
2278 | } | 2281 | } |
2279 | #endif | 2282 | #endif |
2280 | 2283 | ||
2281 | static int __devinit cs46xx_detect_codec(struct snd_cs46xx *chip, int codec) | 2284 | static int cs46xx_detect_codec(struct snd_cs46xx *chip, int codec) |
2282 | { | 2285 | { |
2283 | int idx, err; | 2286 | int idx, err; |
2284 | struct snd_ac97_template ac97; | 2287 | struct snd_ac97_template ac97; |
@@ -2311,7 +2314,7 @@ static int __devinit cs46xx_detect_codec(struct snd_cs46xx *chip, int codec) | |||
2311 | return -ENXIO; | 2314 | return -ENXIO; |
2312 | } | 2315 | } |
2313 | 2316 | ||
2314 | int __devinit snd_cs46xx_mixer(struct snd_cs46xx *chip, int spdif_device) | 2317 | int snd_cs46xx_mixer(struct snd_cs46xx *chip, int spdif_device) |
2315 | { | 2318 | { |
2316 | struct snd_card *card = chip->card; | 2319 | struct snd_card *card = chip->card; |
2317 | struct snd_ctl_elem_id id; | 2320 | struct snd_ctl_elem_id id; |
@@ -2531,7 +2534,7 @@ static struct snd_rawmidi_ops snd_cs46xx_midi_input = | |||
2531 | .trigger = snd_cs46xx_midi_input_trigger, | 2534 | .trigger = snd_cs46xx_midi_input_trigger, |
2532 | }; | 2535 | }; |
2533 | 2536 | ||
2534 | int __devinit snd_cs46xx_midi(struct snd_cs46xx *chip, int device, struct snd_rawmidi **rrawmidi) | 2537 | int snd_cs46xx_midi(struct snd_cs46xx *chip, int device, struct snd_rawmidi **rrawmidi) |
2535 | { | 2538 | { |
2536 | struct snd_rawmidi *rmidi; | 2539 | struct snd_rawmidi *rmidi; |
2537 | int err; | 2540 | int err; |
@@ -2613,7 +2616,7 @@ static int snd_cs46xx_gameport_open(struct gameport *gameport, int mode) | |||
2613 | return 0; | 2616 | return 0; |
2614 | } | 2617 | } |
2615 | 2618 | ||
2616 | int __devinit snd_cs46xx_gameport(struct snd_cs46xx *chip) | 2619 | int snd_cs46xx_gameport(struct snd_cs46xx *chip) |
2617 | { | 2620 | { |
2618 | struct gameport *gp; | 2621 | struct gameport *gp; |
2619 | 2622 | ||
@@ -2649,7 +2652,7 @@ static inline void snd_cs46xx_remove_gameport(struct snd_cs46xx *chip) | |||
2649 | } | 2652 | } |
2650 | } | 2653 | } |
2651 | #else | 2654 | #else |
2652 | int __devinit snd_cs46xx_gameport(struct snd_cs46xx *chip) { return -ENOSYS; } | 2655 | int snd_cs46xx_gameport(struct snd_cs46xx *chip) { return -ENOSYS; } |
2653 | static inline void snd_cs46xx_remove_gameport(struct snd_cs46xx *chip) { } | 2656 | static inline void snd_cs46xx_remove_gameport(struct snd_cs46xx *chip) { } |
2654 | #endif /* CONFIG_GAMEPORT */ | 2657 | #endif /* CONFIG_GAMEPORT */ |
2655 | 2658 | ||
@@ -2674,7 +2677,7 @@ static struct snd_info_entry_ops snd_cs46xx_proc_io_ops = { | |||
2674 | .read = snd_cs46xx_io_read, | 2677 | .read = snd_cs46xx_io_read, |
2675 | }; | 2678 | }; |
2676 | 2679 | ||
2677 | static int __devinit snd_cs46xx_proc_init(struct snd_card *card, struct snd_cs46xx *chip) | 2680 | static int snd_cs46xx_proc_init(struct snd_card *card, struct snd_cs46xx *chip) |
2678 | { | 2681 | { |
2679 | struct snd_info_entry *entry; | 2682 | struct snd_info_entry *entry; |
2680 | int idx; | 2683 | int idx; |
@@ -3061,7 +3064,7 @@ static void cs46xx_enable_stream_irqs(struct snd_cs46xx *chip) | |||
3061 | snd_cs46xx_poke(chip, BA1_CIE, tmp); /* capture interrupt enable */ | 3064 | snd_cs46xx_poke(chip, BA1_CIE, tmp); /* capture interrupt enable */ |
3062 | } | 3065 | } |
3063 | 3066 | ||
3064 | int __devinit snd_cs46xx_start_dsp(struct snd_cs46xx *chip) | 3067 | int snd_cs46xx_start_dsp(struct snd_cs46xx *chip) |
3065 | { | 3068 | { |
3066 | unsigned int tmp; | 3069 | unsigned int tmp; |
3067 | /* | 3070 | /* |
@@ -3477,7 +3480,7 @@ struct cs_card_type | |||
3477 | void (*mixer_init)(struct snd_cs46xx *); | 3480 | void (*mixer_init)(struct snd_cs46xx *); |
3478 | }; | 3481 | }; |
3479 | 3482 | ||
3480 | static struct cs_card_type __devinitdata cards[] = { | 3483 | static struct cs_card_type cards[] = { |
3481 | { | 3484 | { |
3482 | .vendor = 0x1489, | 3485 | .vendor = 0x1489, |
3483 | .id = 0x7001, | 3486 | .id = 0x7001, |
@@ -3717,10 +3720,10 @@ SIMPLE_DEV_PM_OPS(snd_cs46xx_pm, snd_cs46xx_suspend, snd_cs46xx_resume); | |||
3717 | /* | 3720 | /* |
3718 | */ | 3721 | */ |
3719 | 3722 | ||
3720 | int __devinit snd_cs46xx_create(struct snd_card *card, | 3723 | int snd_cs46xx_create(struct snd_card *card, |
3721 | struct pci_dev * pci, | 3724 | struct pci_dev *pci, |
3722 | int external_amp, int thinkpad, | 3725 | int external_amp, int thinkpad, |
3723 | struct snd_cs46xx ** rchip) | 3726 | struct snd_cs46xx **rchip) |
3724 | { | 3727 | { |
3725 | struct snd_cs46xx *chip; | 3728 | struct snd_cs46xx *chip; |
3726 | int err, idx; | 3729 | int err, idx; |
diff --git a/sound/pci/cs5530.c b/sound/pci/cs5530.c index d1cca2831575..dace827b45d1 100644 --- a/sound/pci/cs5530.c +++ b/sound/pci/cs5530.c | |||
@@ -88,13 +88,13 @@ static int snd_cs5530_dev_free(struct snd_device *device) | |||
88 | return snd_cs5530_free(chip); | 88 | return snd_cs5530_free(chip); |
89 | } | 89 | } |
90 | 90 | ||
91 | static void __devexit snd_cs5530_remove(struct pci_dev *pci) | 91 | static void snd_cs5530_remove(struct pci_dev *pci) |
92 | { | 92 | { |
93 | snd_card_free(pci_get_drvdata(pci)); | 93 | snd_card_free(pci_get_drvdata(pci)); |
94 | pci_set_drvdata(pci, NULL); | 94 | pci_set_drvdata(pci, NULL); |
95 | } | 95 | } |
96 | 96 | ||
97 | static u8 __devinit snd_cs5530_mixer_read(unsigned long io, u8 reg) | 97 | static u8 snd_cs5530_mixer_read(unsigned long io, u8 reg) |
98 | { | 98 | { |
99 | outb(reg, io + 4); | 99 | outb(reg, io + 4); |
100 | udelay(20); | 100 | udelay(20); |
@@ -103,9 +103,9 @@ static u8 __devinit snd_cs5530_mixer_read(unsigned long io, u8 reg) | |||
103 | return reg; | 103 | return reg; |
104 | } | 104 | } |
105 | 105 | ||
106 | static int __devinit snd_cs5530_create(struct snd_card *card, | 106 | static int snd_cs5530_create(struct snd_card *card, |
107 | struct pci_dev *pci, | 107 | struct pci_dev *pci, |
108 | struct snd_cs5530 **rchip) | 108 | struct snd_cs5530 **rchip) |
109 | { | 109 | { |
110 | struct snd_cs5530 *chip; | 110 | struct snd_cs5530 *chip; |
111 | unsigned long sb_base; | 111 | unsigned long sb_base; |
@@ -250,8 +250,8 @@ static int __devinit snd_cs5530_create(struct snd_card *card, | |||
250 | return 0; | 250 | return 0; |
251 | } | 251 | } |
252 | 252 | ||
253 | static int __devinit snd_cs5530_probe(struct pci_dev *pci, | 253 | static int snd_cs5530_probe(struct pci_dev *pci, |
254 | const struct pci_device_id *pci_id) | 254 | const struct pci_device_id *pci_id) |
255 | { | 255 | { |
256 | static int dev; | 256 | static int dev; |
257 | struct snd_card *card; | 257 | struct snd_card *card; |
@@ -294,7 +294,7 @@ static struct pci_driver cs5530_driver = { | |||
294 | .name = KBUILD_MODNAME, | 294 | .name = KBUILD_MODNAME, |
295 | .id_table = snd_cs5530_ids, | 295 | .id_table = snd_cs5530_ids, |
296 | .probe = snd_cs5530_probe, | 296 | .probe = snd_cs5530_probe, |
297 | .remove = __devexit_p(snd_cs5530_remove), | 297 | .remove = snd_cs5530_remove, |
298 | }; | 298 | }; |
299 | 299 | ||
300 | module_pci_driver(cs5530_driver); | 300 | module_pci_driver(cs5530_driver); |
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index 4915efa551fc..7e4b13e2d12a 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c | |||
@@ -43,7 +43,7 @@ static char *ac97_quirk; | |||
43 | module_param(ac97_quirk, charp, 0444); | 43 | module_param(ac97_quirk, charp, 0444); |
44 | MODULE_PARM_DESC(ac97_quirk, "AC'97 board specific workarounds."); | 44 | MODULE_PARM_DESC(ac97_quirk, "AC'97 board specific workarounds."); |
45 | 45 | ||
46 | static struct ac97_quirk ac97_quirks[] __devinitdata = { | 46 | static struct ac97_quirk ac97_quirks[] = { |
47 | #if 0 /* Not yet confirmed if all 5536 boards are HP only */ | 47 | #if 0 /* Not yet confirmed if all 5536 boards are HP only */ |
48 | { | 48 | { |
49 | .subvendor = PCI_VENDOR_ID_AMD, | 49 | .subvendor = PCI_VENDOR_ID_AMD, |
@@ -144,7 +144,7 @@ static unsigned short snd_cs5535audio_ac97_codec_read(struct snd_ac97 *ac97, | |||
144 | return snd_cs5535audio_codec_read(cs5535au, reg); | 144 | return snd_cs5535audio_codec_read(cs5535au, reg); |
145 | } | 145 | } |
146 | 146 | ||
147 | static int __devinit snd_cs5535audio_mixer(struct cs5535audio *cs5535au) | 147 | static int snd_cs5535audio_mixer(struct cs5535audio *cs5535au) |
148 | { | 148 | { |
149 | struct snd_card *card = cs5535au->card; | 149 | struct snd_card *card = cs5535au->card; |
150 | struct snd_ac97_bus *pbus; | 150 | struct snd_ac97_bus *pbus; |
@@ -270,9 +270,9 @@ static int snd_cs5535audio_dev_free(struct snd_device *device) | |||
270 | return snd_cs5535audio_free(cs5535au); | 270 | return snd_cs5535audio_free(cs5535au); |
271 | } | 271 | } |
272 | 272 | ||
273 | static int __devinit snd_cs5535audio_create(struct snd_card *card, | 273 | static int snd_cs5535audio_create(struct snd_card *card, |
274 | struct pci_dev *pci, | 274 | struct pci_dev *pci, |
275 | struct cs5535audio **rcs5535au) | 275 | struct cs5535audio **rcs5535au) |
276 | { | 276 | { |
277 | struct cs5535audio *cs5535au; | 277 | struct cs5535audio *cs5535au; |
278 | 278 | ||
@@ -338,8 +338,8 @@ pcifail: | |||
338 | return err; | 338 | return err; |
339 | } | 339 | } |
340 | 340 | ||
341 | static int __devinit snd_cs5535audio_probe(struct pci_dev *pci, | 341 | static int snd_cs5535audio_probe(struct pci_dev *pci, |
342 | const struct pci_device_id *pci_id) | 342 | const struct pci_device_id *pci_id) |
343 | { | 343 | { |
344 | static int dev; | 344 | static int dev; |
345 | struct snd_card *card; | 345 | struct snd_card *card; |
@@ -387,7 +387,7 @@ probefail_out: | |||
387 | return err; | 387 | return err; |
388 | } | 388 | } |
389 | 389 | ||
390 | static void __devexit snd_cs5535audio_remove(struct pci_dev *pci) | 390 | static void snd_cs5535audio_remove(struct pci_dev *pci) |
391 | { | 391 | { |
392 | olpc_quirks_cleanup(); | 392 | olpc_quirks_cleanup(); |
393 | snd_card_free(pci_get_drvdata(pci)); | 393 | snd_card_free(pci_get_drvdata(pci)); |
@@ -398,7 +398,7 @@ static struct pci_driver cs5535audio_driver = { | |||
398 | .name = KBUILD_MODNAME, | 398 | .name = KBUILD_MODNAME, |
399 | .id_table = snd_cs5535audio_ids, | 399 | .id_table = snd_cs5535audio_ids, |
400 | .probe = snd_cs5535audio_probe, | 400 | .probe = snd_cs5535audio_probe, |
401 | .remove = __devexit_p(snd_cs5535audio_remove), | 401 | .remove = snd_cs5535audio_remove, |
402 | #ifdef CONFIG_PM_SLEEP | 402 | #ifdef CONFIG_PM_SLEEP |
403 | .driver = { | 403 | .driver = { |
404 | .pm = &snd_cs5535audio_pm, | 404 | .pm = &snd_cs5535audio_pm, |
diff --git a/sound/pci/cs5535audio/cs5535audio.h b/sound/pci/cs5535audio/cs5535audio.h index bb3cc641130c..0579daa62215 100644 --- a/sound/pci/cs5535audio/cs5535audio.h +++ b/sound/pci/cs5535audio/cs5535audio.h | |||
@@ -97,10 +97,10 @@ struct cs5535audio { | |||
97 | extern const struct dev_pm_ops snd_cs5535audio_pm; | 97 | extern const struct dev_pm_ops snd_cs5535audio_pm; |
98 | 98 | ||
99 | #ifdef CONFIG_OLPC | 99 | #ifdef CONFIG_OLPC |
100 | void __devinit olpc_prequirks(struct snd_card *card, | 100 | void olpc_prequirks(struct snd_card *card, |
101 | struct snd_ac97_template *ac97); | 101 | struct snd_ac97_template *ac97); |
102 | int __devinit olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97); | 102 | int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97); |
103 | void __devexit olpc_quirks_cleanup(void); | 103 | void olpc_quirks_cleanup(void); |
104 | void olpc_analog_input(struct snd_ac97 *ac97, int on); | 104 | void olpc_analog_input(struct snd_ac97 *ac97, int on); |
105 | void olpc_mic_bias(struct snd_ac97 *ac97, int on); | 105 | void olpc_mic_bias(struct snd_ac97 *ac97, int on); |
106 | 106 | ||
@@ -133,7 +133,7 @@ static inline void olpc_capture_open(struct snd_ac97 *ac97) { } | |||
133 | static inline void olpc_capture_close(struct snd_ac97 *ac97) { } | 133 | static inline void olpc_capture_close(struct snd_ac97 *ac97) { } |
134 | #endif | 134 | #endif |
135 | 135 | ||
136 | int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535audio); | 136 | int snd_cs5535audio_pcm(struct cs5535audio *cs5535audio); |
137 | 137 | ||
138 | #endif /* __SOUND_CS5535AUDIO_H */ | 138 | #endif /* __SOUND_CS5535AUDIO_H */ |
139 | 139 | ||
diff --git a/sound/pci/cs5535audio/cs5535audio_olpc.c b/sound/pci/cs5535audio/cs5535audio_olpc.c index 50da49be9ae5..da1cb9c4c76c 100644 --- a/sound/pci/cs5535audio/cs5535audio_olpc.c +++ b/sound/pci/cs5535audio/cs5535audio_olpc.c | |||
@@ -114,7 +114,7 @@ static int olpc_mic_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) | |||
114 | return 1; | 114 | return 1; |
115 | } | 115 | } |
116 | 116 | ||
117 | static struct snd_kcontrol_new olpc_cs5535audio_ctls[] __devinitdata = { | 117 | static struct snd_kcontrol_new olpc_cs5535audio_ctls[] = { |
118 | { | 118 | { |
119 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 119 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
120 | .name = "DC Mode Enable", | 120 | .name = "DC Mode Enable", |
@@ -133,8 +133,8 @@ static struct snd_kcontrol_new olpc_cs5535audio_ctls[] __devinitdata = { | |||
133 | }, | 133 | }, |
134 | }; | 134 | }; |
135 | 135 | ||
136 | void __devinit olpc_prequirks(struct snd_card *card, | 136 | void olpc_prequirks(struct snd_card *card, |
137 | struct snd_ac97_template *ac97) | 137 | struct snd_ac97_template *ac97) |
138 | { | 138 | { |
139 | if (!machine_is_olpc()) | 139 | if (!machine_is_olpc()) |
140 | return; | 140 | return; |
@@ -144,7 +144,7 @@ void __devinit olpc_prequirks(struct snd_card *card, | |||
144 | ac97->scaps |= AC97_SCAP_INV_EAPD; | 144 | ac97->scaps |= AC97_SCAP_INV_EAPD; |
145 | } | 145 | } |
146 | 146 | ||
147 | int __devinit olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) | 147 | int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) |
148 | { | 148 | { |
149 | struct snd_ctl_elem_id elem; | 149 | struct snd_ctl_elem_id elem; |
150 | int i, err; | 150 | int i, err; |
@@ -185,7 +185,7 @@ int __devinit olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) | |||
185 | return 0; | 185 | return 0; |
186 | } | 186 | } |
187 | 187 | ||
188 | void __devexit olpc_quirks_cleanup(void) | 188 | void olpc_quirks_cleanup(void) |
189 | { | 189 | { |
190 | gpio_free(OLPC_GPIO_MIC_AC); | 190 | gpio_free(OLPC_GPIO_MIC_AC); |
191 | } | 191 | } |
diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c b/sound/pci/cs5535audio/cs5535audio_pcm.c index dbf94b189e75..9ab01a7047cf 100644 --- a/sound/pci/cs5535audio/cs5535audio_pcm.c +++ b/sound/pci/cs5535audio/cs5535audio_pcm.c | |||
@@ -422,7 +422,7 @@ static struct cs5535audio_dma_ops snd_cs5535audio_capture_dma_ops = { | |||
422 | .read_dma_pntr = cs5535audio_capture_read_dma_pntr, | 422 | .read_dma_pntr = cs5535audio_capture_read_dma_pntr, |
423 | }; | 423 | }; |
424 | 424 | ||
425 | int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535au) | 425 | int snd_cs5535audio_pcm(struct cs5535audio *cs5535au) |
426 | { | 426 | { |
427 | struct snd_pcm *pcm; | 427 | struct snd_pcm *pcm; |
428 | int err; | 428 | int err; |
diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c index a2f997a9977a..b5fa583a239a 100644 --- a/sound/pci/ctxfi/ctatc.c +++ b/sound/pci/ctxfi/ctatc.c | |||
@@ -38,7 +38,7 @@ | |||
38 | | (0x10 << 16) \ | 38 | | (0x10 << 16) \ |
39 | | ((IEC958_AES3_CON_FS_48000) << 24)) | 39 | | ((IEC958_AES3_CON_FS_48000) << 24)) |
40 | 40 | ||
41 | static struct snd_pci_quirk __devinitdata subsys_20k1_list[] = { | 41 | static struct snd_pci_quirk subsys_20k1_list[] = { |
42 | SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x0022, "SB055x", CTSB055X), | 42 | SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x0022, "SB055x", CTSB055X), |
43 | SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x002f, "SB055x", CTSB055X), | 43 | SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x002f, "SB055x", CTSB055X), |
44 | SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x0029, "SB073x", CTSB073X), | 44 | SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x0029, "SB073x", CTSB073X), |
@@ -48,7 +48,7 @@ static struct snd_pci_quirk __devinitdata subsys_20k1_list[] = { | |||
48 | { } /* terminator */ | 48 | { } /* terminator */ |
49 | }; | 49 | }; |
50 | 50 | ||
51 | static struct snd_pci_quirk __devinitdata subsys_20k2_list[] = { | 51 | static struct snd_pci_quirk subsys_20k2_list[] = { |
52 | SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, PCI_SUBDEVICE_ID_CREATIVE_SB0760, | 52 | SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, PCI_SUBDEVICE_ID_CREATIVE_SB0760, |
53 | "SB0760", CTSB0760), | 53 | "SB0760", CTSB0760), |
54 | SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, PCI_SUBDEVICE_ID_CREATIVE_SB1270, | 54 | SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, PCI_SUBDEVICE_ID_CREATIVE_SB1270, |
@@ -1249,7 +1249,7 @@ static int atc_dev_free(struct snd_device *dev) | |||
1249 | return ct_atc_destroy(atc); | 1249 | return ct_atc_destroy(atc); |
1250 | } | 1250 | } |
1251 | 1251 | ||
1252 | static int __devinit atc_identify_card(struct ct_atc *atc, unsigned int ssid) | 1252 | static int atc_identify_card(struct ct_atc *atc, unsigned int ssid) |
1253 | { | 1253 | { |
1254 | const struct snd_pci_quirk *p; | 1254 | const struct snd_pci_quirk *p; |
1255 | const struct snd_pci_quirk *list; | 1255 | const struct snd_pci_quirk *list; |
@@ -1296,7 +1296,7 @@ static int __devinit atc_identify_card(struct ct_atc *atc, unsigned int ssid) | |||
1296 | return 0; | 1296 | return 0; |
1297 | } | 1297 | } |
1298 | 1298 | ||
1299 | int __devinit ct_atc_create_alsa_devs(struct ct_atc *atc) | 1299 | int ct_atc_create_alsa_devs(struct ct_atc *atc) |
1300 | { | 1300 | { |
1301 | enum CTALSADEVS i; | 1301 | enum CTALSADEVS i; |
1302 | int err; | 1302 | int err; |
@@ -1319,7 +1319,7 @@ int __devinit ct_atc_create_alsa_devs(struct ct_atc *atc) | |||
1319 | return 0; | 1319 | return 0; |
1320 | } | 1320 | } |
1321 | 1321 | ||
1322 | static int __devinit atc_create_hw_devs(struct ct_atc *atc) | 1322 | static int atc_create_hw_devs(struct ct_atc *atc) |
1323 | { | 1323 | { |
1324 | struct hw *hw; | 1324 | struct hw *hw; |
1325 | struct card_conf info = {0}; | 1325 | struct card_conf info = {0}; |
@@ -1614,7 +1614,7 @@ static int atc_resume(struct ct_atc *atc) | |||
1614 | } | 1614 | } |
1615 | #endif | 1615 | #endif |
1616 | 1616 | ||
1617 | static struct ct_atc atc_preset __devinitdata = { | 1617 | static struct ct_atc atc_preset = { |
1618 | .map_audio_buffer = ct_map_audio_buffer, | 1618 | .map_audio_buffer = ct_map_audio_buffer, |
1619 | .unmap_audio_buffer = ct_unmap_audio_buffer, | 1619 | .unmap_audio_buffer = ct_unmap_audio_buffer, |
1620 | .pcm_playback_prepare = atc_pcm_playback_prepare, | 1620 | .pcm_playback_prepare = atc_pcm_playback_prepare, |
@@ -1665,10 +1665,10 @@ static struct ct_atc atc_preset __devinitdata = { | |||
1665 | * Returns 0 if succeeds, or negative error code if fails. | 1665 | * Returns 0 if succeeds, or negative error code if fails. |
1666 | */ | 1666 | */ |
1667 | 1667 | ||
1668 | int __devinit ct_atc_create(struct snd_card *card, struct pci_dev *pci, | 1668 | int ct_atc_create(struct snd_card *card, struct pci_dev *pci, |
1669 | unsigned int rsr, unsigned int msr, | 1669 | unsigned int rsr, unsigned int msr, |
1670 | int chip_type, unsigned int ssid, | 1670 | int chip_type, unsigned int ssid, |
1671 | struct ct_atc **ratc) | 1671 | struct ct_atc **ratc) |
1672 | { | 1672 | { |
1673 | struct ct_atc *atc; | 1673 | struct ct_atc *atc; |
1674 | static struct snd_device_ops ops = { | 1674 | static struct snd_device_ops ops = { |
diff --git a/sound/pci/ctxfi/ctatc.h b/sound/pci/ctxfi/ctatc.h index 69b51f9d345e..5f11ca22fcde 100644 --- a/sound/pci/ctxfi/ctatc.h +++ b/sound/pci/ctxfi/ctatc.h | |||
@@ -152,9 +152,9 @@ struct ct_atc { | |||
152 | }; | 152 | }; |
153 | 153 | ||
154 | 154 | ||
155 | int __devinit ct_atc_create(struct snd_card *card, struct pci_dev *pci, | 155 | int ct_atc_create(struct snd_card *card, struct pci_dev *pci, |
156 | unsigned int rsr, unsigned int msr, int chip_type, | 156 | unsigned int rsr, unsigned int msr, int chip_type, |
157 | unsigned int subsysid, struct ct_atc **ratc); | 157 | unsigned int subsysid, struct ct_atc **ratc); |
158 | int __devinit ct_atc_create_alsa_devs(struct ct_atc *atc); | 158 | int ct_atc_create_alsa_devs(struct ct_atc *atc); |
159 | 159 | ||
160 | #endif /* CTATC_H */ | 160 | #endif /* CTATC_H */ |
diff --git a/sound/pci/ctxfi/cthardware.c b/sound/pci/ctxfi/cthardware.c index 8e64f4862e85..110b8ace6d8a 100644 --- a/sound/pci/ctxfi/cthardware.c +++ b/sound/pci/ctxfi/cthardware.c | |||
@@ -20,8 +20,8 @@ | |||
20 | #include "cthw20k2.h" | 20 | #include "cthw20k2.h" |
21 | #include <linux/bug.h> | 21 | #include <linux/bug.h> |
22 | 22 | ||
23 | int __devinit create_hw_obj(struct pci_dev *pci, enum CHIPTYP chip_type, | 23 | int create_hw_obj(struct pci_dev *pci, enum CHIPTYP chip_type, |
24 | enum CTCARDS model, struct hw **rhw) | 24 | enum CTCARDS model, struct hw **rhw) |
25 | { | 25 | { |
26 | int err; | 26 | int err; |
27 | 27 | ||
diff --git a/sound/pci/ctxfi/cthw20k1.c b/sound/pci/ctxfi/cthw20k1.c index 4507f7088b24..6ac40beb49da 100644 --- a/sound/pci/ctxfi/cthw20k1.c +++ b/sound/pci/ctxfi/cthw20k1.c | |||
@@ -2171,7 +2171,7 @@ static void hw_write_pci(struct hw *hw, u32 reg, u32 data) | |||
2171 | &container_of(hw, struct hw20k1, hw)->reg_pci_lock, flags); | 2171 | &container_of(hw, struct hw20k1, hw)->reg_pci_lock, flags); |
2172 | } | 2172 | } |
2173 | 2173 | ||
2174 | static struct hw ct20k1_preset __devinitdata = { | 2174 | static struct hw ct20k1_preset = { |
2175 | .irq = -1, | 2175 | .irq = -1, |
2176 | 2176 | ||
2177 | .card_init = hw_card_init, | 2177 | .card_init = hw_card_init, |
@@ -2275,7 +2275,7 @@ static struct hw ct20k1_preset __devinitdata = { | |||
2275 | .get_wc = get_wc, | 2275 | .get_wc = get_wc, |
2276 | }; | 2276 | }; |
2277 | 2277 | ||
2278 | int __devinit create_20k1_hw_obj(struct hw **rhw) | 2278 | int create_20k1_hw_obj(struct hw **rhw) |
2279 | { | 2279 | { |
2280 | struct hw20k1 *hw20k1; | 2280 | struct hw20k1 *hw20k1; |
2281 | 2281 | ||
diff --git a/sound/pci/ctxfi/cthw20k2.c b/sound/pci/ctxfi/cthw20k2.c index b9c9349058bc..b1438861d38a 100644 --- a/sound/pci/ctxfi/cthw20k2.c +++ b/sound/pci/ctxfi/cthw20k2.c | |||
@@ -2237,7 +2237,7 @@ static void hw_write_20kx(struct hw *hw, u32 reg, u32 data) | |||
2237 | writel(data, (void *)(hw->mem_base + reg)); | 2237 | writel(data, (void *)(hw->mem_base + reg)); |
2238 | } | 2238 | } |
2239 | 2239 | ||
2240 | static struct hw ct20k2_preset __devinitdata = { | 2240 | static struct hw ct20k2_preset = { |
2241 | .irq = -1, | 2241 | .irq = -1, |
2242 | 2242 | ||
2243 | .card_init = hw_card_init, | 2243 | .card_init = hw_card_init, |
@@ -2345,7 +2345,7 @@ static struct hw ct20k2_preset __devinitdata = { | |||
2345 | .get_wc = get_wc, | 2345 | .get_wc = get_wc, |
2346 | }; | 2346 | }; |
2347 | 2347 | ||
2348 | int __devinit create_20k2_hw_obj(struct hw **rhw) | 2348 | int create_20k2_hw_obj(struct hw **rhw) |
2349 | { | 2349 | { |
2350 | struct hw20k2 *hw20k2; | 2350 | struct hw20k2 *hw20k2; |
2351 | 2351 | ||
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c index 07c07d752fd8..d01ffcb2b2f5 100644 --- a/sound/pci/ctxfi/xfi.c +++ b/sound/pci/ctxfi/xfi.c | |||
@@ -56,7 +56,7 @@ static DEFINE_PCI_DEVICE_TABLE(ct_pci_dev_ids) = { | |||
56 | }; | 56 | }; |
57 | MODULE_DEVICE_TABLE(pci, ct_pci_dev_ids); | 57 | MODULE_DEVICE_TABLE(pci, ct_pci_dev_ids); |
58 | 58 | ||
59 | static int __devinit | 59 | static int |
60 | ct_card_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | 60 | ct_card_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) |
61 | { | 61 | { |
62 | static int dev; | 62 | static int dev; |
@@ -119,7 +119,7 @@ error: | |||
119 | return err; | 119 | return err; |
120 | } | 120 | } |
121 | 121 | ||
122 | static void __devexit ct_card_remove(struct pci_dev *pci) | 122 | static void ct_card_remove(struct pci_dev *pci) |
123 | { | 123 | { |
124 | snd_card_free(pci_get_drvdata(pci)); | 124 | snd_card_free(pci_get_drvdata(pci)); |
125 | pci_set_drvdata(pci, NULL); | 125 | pci_set_drvdata(pci, NULL); |
@@ -152,7 +152,7 @@ static struct pci_driver ct_driver = { | |||
152 | .name = KBUILD_MODNAME, | 152 | .name = KBUILD_MODNAME, |
153 | .id_table = ct_pci_dev_ids, | 153 | .id_table = ct_pci_dev_ids, |
154 | .probe = ct_card_probe, | 154 | .probe = ct_card_probe, |
155 | .remove = __devexit_p(ct_card_remove), | 155 | .remove = ct_card_remove, |
156 | .driver = { | 156 | .driver = { |
157 | .pm = CT_CARD_PM_OPS, | 157 | .pm = CT_CARD_PM_OPS, |
158 | }, | 158 | }, |
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c index abb0b86c41c9..760cbff53210 100644 --- a/sound/pci/echoaudio/echoaudio.c +++ b/sound/pci/echoaudio/echoaudio.c | |||
@@ -907,7 +907,7 @@ static int snd_echo_preallocate_pages(struct snd_pcm *pcm, struct device *dev) | |||
907 | 907 | ||
908 | 908 | ||
909 | /*<--snd_echo_probe() */ | 909 | /*<--snd_echo_probe() */ |
910 | static int __devinit snd_echo_new_pcm(struct echoaudio *chip) | 910 | static int snd_echo_new_pcm(struct echoaudio *chip) |
911 | { | 911 | { |
912 | struct snd_pcm *pcm; | 912 | struct snd_pcm *pcm; |
913 | int err; | 913 | int err; |
@@ -1050,7 +1050,7 @@ static int snd_echo_output_gain_put(struct snd_kcontrol *kcontrol, | |||
1050 | 1050 | ||
1051 | #ifdef ECHOCARD_HAS_LINE_OUT_GAIN | 1051 | #ifdef ECHOCARD_HAS_LINE_OUT_GAIN |
1052 | /* On the Mia this one controls the line-out volume */ | 1052 | /* On the Mia this one controls the line-out volume */ |
1053 | static struct snd_kcontrol_new snd_echo_line_output_gain __devinitdata = { | 1053 | static struct snd_kcontrol_new snd_echo_line_output_gain = { |
1054 | .name = "Line Playback Volume", | 1054 | .name = "Line Playback Volume", |
1055 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1055 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1056 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | | 1056 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | |
@@ -1061,7 +1061,7 @@ static struct snd_kcontrol_new snd_echo_line_output_gain __devinitdata = { | |||
1061 | .tlv = {.p = db_scale_output_gain}, | 1061 | .tlv = {.p = db_scale_output_gain}, |
1062 | }; | 1062 | }; |
1063 | #else | 1063 | #else |
1064 | static struct snd_kcontrol_new snd_echo_pcm_output_gain __devinitdata = { | 1064 | static struct snd_kcontrol_new snd_echo_pcm_output_gain = { |
1065 | .name = "PCM Playback Volume", | 1065 | .name = "PCM Playback Volume", |
1066 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1066 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1067 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, | 1067 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, |
@@ -1131,7 +1131,7 @@ static int snd_echo_input_gain_put(struct snd_kcontrol *kcontrol, | |||
1131 | 1131 | ||
1132 | static const DECLARE_TLV_DB_SCALE(db_scale_input_gain, -2500, 50, 0); | 1132 | static const DECLARE_TLV_DB_SCALE(db_scale_input_gain, -2500, 50, 0); |
1133 | 1133 | ||
1134 | static struct snd_kcontrol_new snd_echo_line_input_gain __devinitdata = { | 1134 | static struct snd_kcontrol_new snd_echo_line_input_gain = { |
1135 | .name = "Line Capture Volume", | 1135 | .name = "Line Capture Volume", |
1136 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1136 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1137 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, | 1137 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, |
@@ -1195,7 +1195,7 @@ static int snd_echo_output_nominal_put(struct snd_kcontrol *kcontrol, | |||
1195 | return changed; | 1195 | return changed; |
1196 | } | 1196 | } |
1197 | 1197 | ||
1198 | static struct snd_kcontrol_new snd_echo_output_nominal_level __devinitdata = { | 1198 | static struct snd_kcontrol_new snd_echo_output_nominal_level = { |
1199 | .name = "Line Playback Switch (-10dBV)", | 1199 | .name = "Line Playback Switch (-10dBV)", |
1200 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1200 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1201 | .info = snd_echo_output_nominal_info, | 1201 | .info = snd_echo_output_nominal_info, |
@@ -1261,7 +1261,7 @@ static int snd_echo_input_nominal_put(struct snd_kcontrol *kcontrol, | |||
1261 | return changed; | 1261 | return changed; |
1262 | } | 1262 | } |
1263 | 1263 | ||
1264 | static struct snd_kcontrol_new snd_echo_intput_nominal_level __devinitdata = { | 1264 | static struct snd_kcontrol_new snd_echo_intput_nominal_level = { |
1265 | .name = "Line Capture Switch (-10dBV)", | 1265 | .name = "Line Capture Switch (-10dBV)", |
1266 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1266 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1267 | .info = snd_echo_input_nominal_info, | 1267 | .info = snd_echo_input_nominal_info, |
@@ -1327,7 +1327,7 @@ static int snd_echo_mixer_put(struct snd_kcontrol *kcontrol, | |||
1327 | return changed; | 1327 | return changed; |
1328 | } | 1328 | } |
1329 | 1329 | ||
1330 | static struct snd_kcontrol_new snd_echo_monitor_mixer __devinitdata = { | 1330 | static struct snd_kcontrol_new snd_echo_monitor_mixer = { |
1331 | .name = "Monitor Mixer Volume", | 1331 | .name = "Monitor Mixer Volume", |
1332 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1332 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1333 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, | 1333 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, |
@@ -1395,7 +1395,7 @@ static int snd_echo_vmixer_put(struct snd_kcontrol *kcontrol, | |||
1395 | return changed; | 1395 | return changed; |
1396 | } | 1396 | } |
1397 | 1397 | ||
1398 | static struct snd_kcontrol_new snd_echo_vmixer __devinitdata = { | 1398 | static struct snd_kcontrol_new snd_echo_vmixer = { |
1399 | .name = "VMixer Volume", | 1399 | .name = "VMixer Volume", |
1400 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1400 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1401 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, | 1401 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, |
@@ -1490,7 +1490,7 @@ static int snd_echo_digital_mode_put(struct snd_kcontrol *kcontrol, | |||
1490 | return changed; | 1490 | return changed; |
1491 | } | 1491 | } |
1492 | 1492 | ||
1493 | static struct snd_kcontrol_new snd_echo_digital_mode_switch __devinitdata = { | 1493 | static struct snd_kcontrol_new snd_echo_digital_mode_switch = { |
1494 | .name = "Digital mode Switch", | 1494 | .name = "Digital mode Switch", |
1495 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1495 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1496 | .info = snd_echo_digital_mode_info, | 1496 | .info = snd_echo_digital_mode_info, |
@@ -1547,7 +1547,7 @@ static int snd_echo_spdif_mode_put(struct snd_kcontrol *kcontrol, | |||
1547 | return 0; | 1547 | return 0; |
1548 | } | 1548 | } |
1549 | 1549 | ||
1550 | static struct snd_kcontrol_new snd_echo_spdif_mode_switch __devinitdata = { | 1550 | static struct snd_kcontrol_new snd_echo_spdif_mode_switch = { |
1551 | .name = "S/PDIF mode Switch", | 1551 | .name = "S/PDIF mode Switch", |
1552 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1552 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1553 | .info = snd_echo_spdif_mode_info, | 1553 | .info = snd_echo_spdif_mode_info, |
@@ -1626,7 +1626,7 @@ static int snd_echo_clock_source_put(struct snd_kcontrol *kcontrol, | |||
1626 | return changed; | 1626 | return changed; |
1627 | } | 1627 | } |
1628 | 1628 | ||
1629 | static struct snd_kcontrol_new snd_echo_clock_source_switch __devinitdata = { | 1629 | static struct snd_kcontrol_new snd_echo_clock_source_switch = { |
1630 | .name = "Sample Clock Source", | 1630 | .name = "Sample Clock Source", |
1631 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1631 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
1632 | .info = snd_echo_clock_source_info, | 1632 | .info = snd_echo_clock_source_info, |
@@ -1669,7 +1669,7 @@ static int snd_echo_phantom_power_put(struct snd_kcontrol *kcontrol, | |||
1669 | return changed; | 1669 | return changed; |
1670 | } | 1670 | } |
1671 | 1671 | ||
1672 | static struct snd_kcontrol_new snd_echo_phantom_power_switch __devinitdata = { | 1672 | static struct snd_kcontrol_new snd_echo_phantom_power_switch = { |
1673 | .name = "Phantom power Switch", | 1673 | .name = "Phantom power Switch", |
1674 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1674 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1675 | .info = snd_echo_phantom_power_info, | 1675 | .info = snd_echo_phantom_power_info, |
@@ -1712,7 +1712,7 @@ static int snd_echo_automute_put(struct snd_kcontrol *kcontrol, | |||
1712 | return changed; | 1712 | return changed; |
1713 | } | 1713 | } |
1714 | 1714 | ||
1715 | static struct snd_kcontrol_new snd_echo_automute_switch __devinitdata = { | 1715 | static struct snd_kcontrol_new snd_echo_automute_switch = { |
1716 | .name = "Digital Capture Switch (automute)", | 1716 | .name = "Digital Capture Switch (automute)", |
1717 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1717 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1718 | .info = snd_echo_automute_info, | 1718 | .info = snd_echo_automute_info, |
@@ -1739,7 +1739,7 @@ static int snd_echo_vumeters_switch_put(struct snd_kcontrol *kcontrol, | |||
1739 | return 1; | 1739 | return 1; |
1740 | } | 1740 | } |
1741 | 1741 | ||
1742 | static struct snd_kcontrol_new snd_echo_vumeters_switch __devinitdata = { | 1742 | static struct snd_kcontrol_new snd_echo_vumeters_switch = { |
1743 | .name = "VU-meters Switch", | 1743 | .name = "VU-meters Switch", |
1744 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1744 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1745 | .access = SNDRV_CTL_ELEM_ACCESS_WRITE, | 1745 | .access = SNDRV_CTL_ELEM_ACCESS_WRITE, |
@@ -1780,7 +1780,7 @@ static int snd_echo_vumeters_get(struct snd_kcontrol *kcontrol, | |||
1780 | return 0; | 1780 | return 0; |
1781 | } | 1781 | } |
1782 | 1782 | ||
1783 | static struct snd_kcontrol_new snd_echo_vumeters __devinitdata = { | 1783 | static struct snd_kcontrol_new snd_echo_vumeters = { |
1784 | .name = "VU-meters", | 1784 | .name = "VU-meters", |
1785 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1785 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1786 | .access = SNDRV_CTL_ELEM_ACCESS_READ | | 1786 | .access = SNDRV_CTL_ELEM_ACCESS_READ | |
@@ -1836,7 +1836,7 @@ static int snd_echo_channels_info_get(struct snd_kcontrol *kcontrol, | |||
1836 | return 0; | 1836 | return 0; |
1837 | } | 1837 | } |
1838 | 1838 | ||
1839 | static struct snd_kcontrol_new snd_echo_channels_info __devinitdata = { | 1839 | static struct snd_kcontrol_new snd_echo_channels_info = { |
1840 | .name = "Channels info", | 1840 | .name = "Channels info", |
1841 | .iface = SNDRV_CTL_ELEM_IFACE_HWDEP, | 1841 | .iface = SNDRV_CTL_ELEM_IFACE_HWDEP, |
1842 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, | 1842 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, |
@@ -1940,9 +1940,9 @@ static int snd_echo_dev_free(struct snd_device *device) | |||
1940 | 1940 | ||
1941 | 1941 | ||
1942 | /* <--snd_echo_probe() */ | 1942 | /* <--snd_echo_probe() */ |
1943 | static __devinit int snd_echo_create(struct snd_card *card, | 1943 | static int snd_echo_create(struct snd_card *card, |
1944 | struct pci_dev *pci, | 1944 | struct pci_dev *pci, |
1945 | struct echoaudio **rchip) | 1945 | struct echoaudio **rchip) |
1946 | { | 1946 | { |
1947 | struct echoaudio *chip; | 1947 | struct echoaudio *chip; |
1948 | int err; | 1948 | int err; |
@@ -2040,8 +2040,8 @@ static __devinit int snd_echo_create(struct snd_card *card, | |||
2040 | 2040 | ||
2041 | 2041 | ||
2042 | /* constructor */ | 2042 | /* constructor */ |
2043 | static int __devinit snd_echo_probe(struct pci_dev *pci, | 2043 | static int snd_echo_probe(struct pci_dev *pci, |
2044 | const struct pci_device_id *pci_id) | 2044 | const struct pci_device_id *pci_id) |
2045 | { | 2045 | { |
2046 | static int dev; | 2046 | static int dev; |
2047 | struct snd_card *card; | 2047 | struct snd_card *card; |
@@ -2316,7 +2316,7 @@ static SIMPLE_DEV_PM_OPS(snd_echo_pm, snd_echo_suspend, snd_echo_resume); | |||
2316 | #endif /* CONFIG_PM_SLEEP */ | 2316 | #endif /* CONFIG_PM_SLEEP */ |
2317 | 2317 | ||
2318 | 2318 | ||
2319 | static void __devexit snd_echo_remove(struct pci_dev *pci) | 2319 | static void snd_echo_remove(struct pci_dev *pci) |
2320 | { | 2320 | { |
2321 | struct echoaudio *chip; | 2321 | struct echoaudio *chip; |
2322 | 2322 | ||
@@ -2337,7 +2337,7 @@ static struct pci_driver echo_driver = { | |||
2337 | .name = KBUILD_MODNAME, | 2337 | .name = KBUILD_MODNAME, |
2338 | .id_table = snd_echo_ids, | 2338 | .id_table = snd_echo_ids, |
2339 | .probe = snd_echo_probe, | 2339 | .probe = snd_echo_probe, |
2340 | .remove = __devexit_p(snd_echo_remove), | 2340 | .remove = snd_echo_remove, |
2341 | .driver = { | 2341 | .driver = { |
2342 | .pm = SND_ECHO_PM_OPS, | 2342 | .pm = SND_ECHO_PM_OPS, |
2343 | }, | 2343 | }, |
diff --git a/sound/pci/echoaudio/echoaudio.h b/sound/pci/echoaudio/echoaudio.h index e158369f5faa..b86b88da81cd 100644 --- a/sound/pci/echoaudio/echoaudio.h +++ b/sound/pci/echoaudio/echoaudio.h | |||
@@ -475,8 +475,8 @@ static int enable_midi_input(struct echoaudio *chip, char enable); | |||
475 | static void snd_echo_midi_output_trigger( | 475 | static void snd_echo_midi_output_trigger( |
476 | struct snd_rawmidi_substream *substream, int up); | 476 | struct snd_rawmidi_substream *substream, int up); |
477 | static int midi_service_irq(struct echoaudio *chip); | 477 | static int midi_service_irq(struct echoaudio *chip); |
478 | static int __devinit snd_echo_midi_create(struct snd_card *card, | 478 | static int snd_echo_midi_create(struct snd_card *card, |
479 | struct echoaudio *chip); | 479 | struct echoaudio *chip); |
480 | #endif | 480 | #endif |
481 | 481 | ||
482 | 482 | ||
diff --git a/sound/pci/echoaudio/midi.c b/sound/pci/echoaudio/midi.c index a953d142cb4b..abfd51c2530e 100644 --- a/sound/pci/echoaudio/midi.c +++ b/sound/pci/echoaudio/midi.c | |||
@@ -307,8 +307,8 @@ static struct snd_rawmidi_ops snd_echo_midi_output = { | |||
307 | 307 | ||
308 | 308 | ||
309 | /* <--snd_echo_probe() */ | 309 | /* <--snd_echo_probe() */ |
310 | static int __devinit snd_echo_midi_create(struct snd_card *card, | 310 | static int snd_echo_midi_create(struct snd_card *card, |
311 | struct echoaudio *chip) | 311 | struct echoaudio *chip) |
312 | { | 312 | { |
313 | int err; | 313 | int err; |
314 | 314 | ||
diff --git a/sound/pci/emu10k1/emu10k1.c b/sound/pci/emu10k1/emu10k1.c index a168138efc5e..8c5010f7889c 100644 --- a/sound/pci/emu10k1/emu10k1.c +++ b/sound/pci/emu10k1/emu10k1.c | |||
@@ -99,8 +99,8 @@ static DEFINE_PCI_DEVICE_TABLE(snd_emu10k1_ids) = { | |||
99 | 99 | ||
100 | MODULE_DEVICE_TABLE(pci, snd_emu10k1_ids); | 100 | MODULE_DEVICE_TABLE(pci, snd_emu10k1_ids); |
101 | 101 | ||
102 | static int __devinit snd_card_emu10k1_probe(struct pci_dev *pci, | 102 | static int snd_card_emu10k1_probe(struct pci_dev *pci, |
103 | const struct pci_device_id *pci_id) | 103 | const struct pci_device_id *pci_id) |
104 | { | 104 | { |
105 | static int dev; | 105 | static int dev; |
106 | struct snd_card *card; | 106 | struct snd_card *card; |
@@ -199,7 +199,7 @@ static int __devinit snd_card_emu10k1_probe(struct pci_dev *pci, | |||
199 | return err; | 199 | return err; |
200 | } | 200 | } |
201 | 201 | ||
202 | static void __devexit snd_card_emu10k1_remove(struct pci_dev *pci) | 202 | static void snd_card_emu10k1_remove(struct pci_dev *pci) |
203 | { | 203 | { |
204 | snd_card_free(pci_get_drvdata(pci)); | 204 | snd_card_free(pci_get_drvdata(pci)); |
205 | pci_set_drvdata(pci, NULL); | 205 | pci_set_drvdata(pci, NULL); |
@@ -278,7 +278,7 @@ static struct pci_driver emu10k1_driver = { | |||
278 | .name = KBUILD_MODNAME, | 278 | .name = KBUILD_MODNAME, |
279 | .id_table = snd_emu10k1_ids, | 279 | .id_table = snd_emu10k1_ids, |
280 | .probe = snd_card_emu10k1_probe, | 280 | .probe = snd_card_emu10k1_probe, |
281 | .remove = __devexit_p(snd_card_emu10k1_remove), | 281 | .remove = snd_card_emu10k1_remove, |
282 | .driver = { | 282 | .driver = { |
283 | .pm = SND_EMU10K1_PM_OPS, | 283 | .pm = SND_EMU10K1_PM_OPS, |
284 | }, | 284 | }, |
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c index 527ef216d4ca..a7c296a36a17 100644 --- a/sound/pci/emu10k1/emu10k1_main.c +++ b/sound/pci/emu10k1/emu10k1_main.c | |||
@@ -1726,7 +1726,7 @@ static struct snd_emu_chip_details emu_chip_details[] = { | |||
1726 | { } /* terminator */ | 1726 | { } /* terminator */ |
1727 | }; | 1727 | }; |
1728 | 1728 | ||
1729 | int __devinit snd_emu10k1_create(struct snd_card *card, | 1729 | int snd_emu10k1_create(struct snd_card *card, |
1730 | struct pci_dev *pci, | 1730 | struct pci_dev *pci, |
1731 | unsigned short extin_mask, | 1731 | unsigned short extin_mask, |
1732 | unsigned short extout_mask, | 1732 | unsigned short extout_mask, |
@@ -2013,7 +2013,7 @@ static unsigned char saved_regs_audigy[] = { | |||
2013 | 0xff /* end */ | 2013 | 0xff /* end */ |
2014 | }; | 2014 | }; |
2015 | 2015 | ||
2016 | static int __devinit alloc_pm_buffer(struct snd_emu10k1 *emu) | 2016 | static int alloc_pm_buffer(struct snd_emu10k1 *emu) |
2017 | { | 2017 | { |
2018 | int size; | 2018 | int size; |
2019 | 2019 | ||
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index 556fd6f456e3..cdff11d48ebd 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c | |||
@@ -842,7 +842,7 @@ static const struct snd_pcm_chmap_elem clfe_map[] = { | |||
842 | { } | 842 | { } |
843 | }; | 843 | }; |
844 | 844 | ||
845 | static int __devinit snd_emu10k1x_pcm(struct emu10k1x *emu, int device, struct snd_pcm **rpcm) | 845 | static int snd_emu10k1x_pcm(struct emu10k1x *emu, int device, struct snd_pcm **rpcm) |
846 | { | 846 | { |
847 | struct snd_pcm *pcm; | 847 | struct snd_pcm *pcm; |
848 | const struct snd_pcm_chmap_elem *map = NULL; | 848 | const struct snd_pcm_chmap_elem *map = NULL; |
@@ -902,9 +902,9 @@ static int __devinit snd_emu10k1x_pcm(struct emu10k1x *emu, int device, struct s | |||
902 | return 0; | 902 | return 0; |
903 | } | 903 | } |
904 | 904 | ||
905 | static int __devinit snd_emu10k1x_create(struct snd_card *card, | 905 | static int snd_emu10k1x_create(struct snd_card *card, |
906 | struct pci_dev *pci, | 906 | struct pci_dev *pci, |
907 | struct emu10k1x **rchip) | 907 | struct emu10k1x **rchip) |
908 | { | 908 | { |
909 | struct emu10k1x *chip; | 909 | struct emu10k1x *chip; |
910 | int err; | 910 | int err; |
@@ -1066,7 +1066,7 @@ static void snd_emu10k1x_proc_reg_write(struct snd_info_entry *entry, | |||
1066 | } | 1066 | } |
1067 | } | 1067 | } |
1068 | 1068 | ||
1069 | static int __devinit snd_emu10k1x_proc_init(struct emu10k1x * emu) | 1069 | static int snd_emu10k1x_proc_init(struct emu10k1x *emu) |
1070 | { | 1070 | { |
1071 | struct snd_info_entry *entry; | 1071 | struct snd_info_entry *entry; |
1072 | 1072 | ||
@@ -1115,7 +1115,7 @@ static int snd_emu10k1x_shared_spdif_put(struct snd_kcontrol *kcontrol, | |||
1115 | return change; | 1115 | return change; |
1116 | } | 1116 | } |
1117 | 1117 | ||
1118 | static struct snd_kcontrol_new snd_emu10k1x_shared_spdif __devinitdata = | 1118 | static struct snd_kcontrol_new snd_emu10k1x_shared_spdif = |
1119 | { | 1119 | { |
1120 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1120 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1121 | .name = "Analog/Digital Output Jack", | 1121 | .name = "Analog/Digital Output Jack", |
@@ -1194,7 +1194,7 @@ static struct snd_kcontrol_new snd_emu10k1x_spdif_control = | |||
1194 | .put = snd_emu10k1x_spdif_put | 1194 | .put = snd_emu10k1x_spdif_put |
1195 | }; | 1195 | }; |
1196 | 1196 | ||
1197 | static int __devinit snd_emu10k1x_mixer(struct emu10k1x *emu) | 1197 | static int snd_emu10k1x_mixer(struct emu10k1x *emu) |
1198 | { | 1198 | { |
1199 | int err; | 1199 | int err; |
1200 | struct snd_kcontrol *kctl; | 1200 | struct snd_kcontrol *kctl; |
@@ -1507,8 +1507,9 @@ static void snd_emu10k1x_midi_free(struct snd_rawmidi *rmidi) | |||
1507 | midi->rmidi = NULL; | 1507 | midi->rmidi = NULL; |
1508 | } | 1508 | } |
1509 | 1509 | ||
1510 | static int __devinit emu10k1x_midi_init(struct emu10k1x *emu, | 1510 | static int emu10k1x_midi_init(struct emu10k1x *emu, |
1511 | struct emu10k1x_midi *midi, int device, char *name) | 1511 | struct emu10k1x_midi *midi, int device, |
1512 | char *name) | ||
1512 | { | 1513 | { |
1513 | struct snd_rawmidi *rmidi; | 1514 | struct snd_rawmidi *rmidi; |
1514 | int err; | 1515 | int err; |
@@ -1531,7 +1532,7 @@ static int __devinit emu10k1x_midi_init(struct emu10k1x *emu, | |||
1531 | return 0; | 1532 | return 0; |
1532 | } | 1533 | } |
1533 | 1534 | ||
1534 | static int __devinit snd_emu10k1x_midi(struct emu10k1x *emu) | 1535 | static int snd_emu10k1x_midi(struct emu10k1x *emu) |
1535 | { | 1536 | { |
1536 | struct emu10k1x_midi *midi = &emu->midi; | 1537 | struct emu10k1x_midi *midi = &emu->midi; |
1537 | int err; | 1538 | int err; |
@@ -1548,8 +1549,8 @@ static int __devinit snd_emu10k1x_midi(struct emu10k1x *emu) | |||
1548 | return 0; | 1549 | return 0; |
1549 | } | 1550 | } |
1550 | 1551 | ||
1551 | static int __devinit snd_emu10k1x_probe(struct pci_dev *pci, | 1552 | static int snd_emu10k1x_probe(struct pci_dev *pci, |
1552 | const struct pci_device_id *pci_id) | 1553 | const struct pci_device_id *pci_id) |
1553 | { | 1554 | { |
1554 | static int dev; | 1555 | static int dev; |
1555 | struct snd_card *card; | 1556 | struct snd_card *card; |
@@ -1619,7 +1620,7 @@ static int __devinit snd_emu10k1x_probe(struct pci_dev *pci, | |||
1619 | return 0; | 1620 | return 0; |
1620 | } | 1621 | } |
1621 | 1622 | ||
1622 | static void __devexit snd_emu10k1x_remove(struct pci_dev *pci) | 1623 | static void snd_emu10k1x_remove(struct pci_dev *pci) |
1623 | { | 1624 | { |
1624 | snd_card_free(pci_get_drvdata(pci)); | 1625 | snd_card_free(pci_get_drvdata(pci)); |
1625 | pci_set_drvdata(pci, NULL); | 1626 | pci_set_drvdata(pci, NULL); |
@@ -1637,7 +1638,7 @@ static struct pci_driver emu10k1x_driver = { | |||
1637 | .name = KBUILD_MODNAME, | 1638 | .name = KBUILD_MODNAME, |
1638 | .id_table = snd_emu10k1x_ids, | 1639 | .id_table = snd_emu10k1x_ids, |
1639 | .probe = snd_emu10k1x_probe, | 1640 | .probe = snd_emu10k1x_probe, |
1640 | .remove = __devexit_p(snd_emu10k1x_remove), | 1641 | .remove = snd_emu10k1x_remove, |
1641 | }; | 1642 | }; |
1642 | 1643 | ||
1643 | module_pci_driver(emu10k1x_driver); | 1644 | module_pci_driver(emu10k1x_driver); |
diff --git a/sound/pci/emu10k1/emufx.c b/sound/pci/emu10k1/emufx.c index 52419959178c..0275209ca82e 100644 --- a/sound/pci/emu10k1/emufx.c +++ b/sound/pci/emu10k1/emufx.c | |||
@@ -1073,7 +1073,7 @@ static int snd_emu10k1_ipcm_peek(struct snd_emu10k1 *emu, | |||
1073 | #define SND_EMU10K1_PLAYBACK_CHANNELS 8 | 1073 | #define SND_EMU10K1_PLAYBACK_CHANNELS 8 |
1074 | #define SND_EMU10K1_CAPTURE_CHANNELS 4 | 1074 | #define SND_EMU10K1_CAPTURE_CHANNELS 4 |
1075 | 1075 | ||
1076 | static void __devinit | 1076 | static void |
1077 | snd_emu10k1_init_mono_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | 1077 | snd_emu10k1_init_mono_control(struct snd_emu10k1_fx8010_control_gpr *ctl, |
1078 | const char *name, int gpr, int defval) | 1078 | const char *name, int gpr, int defval) |
1079 | { | 1079 | { |
@@ -1094,7 +1094,7 @@ snd_emu10k1_init_mono_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | |||
1094 | } | 1094 | } |
1095 | } | 1095 | } |
1096 | 1096 | ||
1097 | static void __devinit | 1097 | static void |
1098 | snd_emu10k1_init_stereo_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | 1098 | snd_emu10k1_init_stereo_control(struct snd_emu10k1_fx8010_control_gpr *ctl, |
1099 | const char *name, int gpr, int defval) | 1099 | const char *name, int gpr, int defval) |
1100 | { | 1100 | { |
@@ -1116,7 +1116,7 @@ snd_emu10k1_init_stereo_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | |||
1116 | } | 1116 | } |
1117 | } | 1117 | } |
1118 | 1118 | ||
1119 | static void __devinit | 1119 | static void |
1120 | snd_emu10k1_init_mono_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | 1120 | snd_emu10k1_init_mono_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, |
1121 | const char *name, int gpr, int defval) | 1121 | const char *name, int gpr, int defval) |
1122 | { | 1122 | { |
@@ -1129,7 +1129,7 @@ snd_emu10k1_init_mono_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | |||
1129 | ctl->translation = EMU10K1_GPR_TRANSLATION_ONOFF; | 1129 | ctl->translation = EMU10K1_GPR_TRANSLATION_ONOFF; |
1130 | } | 1130 | } |
1131 | 1131 | ||
1132 | static void __devinit | 1132 | static void |
1133 | snd_emu10k1_init_stereo_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | 1133 | snd_emu10k1_init_stereo_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, |
1134 | const char *name, int gpr, int defval) | 1134 | const char *name, int gpr, int defval) |
1135 | { | 1135 | { |
@@ -1168,7 +1168,7 @@ static int snd_emu10k1_audigy_dsp_convert_32_to_2x16( | |||
1168 | * initial DSP configuration for Audigy | 1168 | * initial DSP configuration for Audigy |
1169 | */ | 1169 | */ |
1170 | 1170 | ||
1171 | static int __devinit _snd_emu10k1_audigy_init_efx(struct snd_emu10k1 *emu) | 1171 | static int _snd_emu10k1_audigy_init_efx(struct snd_emu10k1 *emu) |
1172 | { | 1172 | { |
1173 | int err, i, z, gpr, nctl; | 1173 | int err, i, z, gpr, nctl; |
1174 | int bit_shifter16; | 1174 | int bit_shifter16; |
@@ -1757,14 +1757,14 @@ A_OP(icode, &ptr, iMAC0, A_GPR(var), A_GPR(var), A_GPR(vol), A_EXTIN(input)) | |||
1757 | 1757 | ||
1758 | /* when volume = max, then copy only to avoid volume modification */ | 1758 | /* when volume = max, then copy only to avoid volume modification */ |
1759 | /* with iMAC0 (negative values) */ | 1759 | /* with iMAC0 (negative values) */ |
1760 | static void __devinit _volume(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) | 1760 | static void _volume(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) |
1761 | { | 1761 | { |
1762 | OP(icode, ptr, iMAC0, dst, C_00000000, src, vol); | 1762 | OP(icode, ptr, iMAC0, dst, C_00000000, src, vol); |
1763 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); | 1763 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); |
1764 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000001); | 1764 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000001); |
1765 | OP(icode, ptr, iACC3, dst, src, C_00000000, C_00000000); | 1765 | OP(icode, ptr, iACC3, dst, src, C_00000000, C_00000000); |
1766 | } | 1766 | } |
1767 | static void __devinit _volume_add(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) | 1767 | static void _volume_add(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) |
1768 | { | 1768 | { |
1769 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); | 1769 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); |
1770 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002); | 1770 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002); |
@@ -1772,7 +1772,7 @@ static void __devinit _volume_add(struct snd_emu10k1_fx8010_code *icode, u32 *pt | |||
1772 | OP(icode, ptr, iSKIP, C_00000000, C_7fffffff, C_7fffffff, C_00000001); | 1772 | OP(icode, ptr, iSKIP, C_00000000, C_7fffffff, C_7fffffff, C_00000001); |
1773 | OP(icode, ptr, iMAC0, dst, dst, src, vol); | 1773 | OP(icode, ptr, iMAC0, dst, dst, src, vol); |
1774 | } | 1774 | } |
1775 | static void __devinit _volume_out(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) | 1775 | static void _volume_out(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) |
1776 | { | 1776 | { |
1777 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); | 1777 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); |
1778 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002); | 1778 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002); |
@@ -1803,7 +1803,7 @@ static void __devinit _volume_out(struct snd_emu10k1_fx8010_code *icode, u32 *pt | |||
1803 | _SWITCH_NEG(icode, ptr, GPR(dst), GPR(src)) | 1803 | _SWITCH_NEG(icode, ptr, GPR(dst), GPR(src)) |
1804 | 1804 | ||
1805 | 1805 | ||
1806 | static int __devinit _snd_emu10k1_init_efx(struct snd_emu10k1 *emu) | 1806 | static int _snd_emu10k1_init_efx(struct snd_emu10k1 *emu) |
1807 | { | 1807 | { |
1808 | int err, i, z, gpr, tmp, playback, capture; | 1808 | int err, i, z, gpr, tmp, playback, capture; |
1809 | u32 ptr; | 1809 | u32 ptr; |
@@ -2373,7 +2373,7 @@ static int __devinit _snd_emu10k1_init_efx(struct snd_emu10k1 *emu) | |||
2373 | return err; | 2373 | return err; |
2374 | } | 2374 | } |
2375 | 2375 | ||
2376 | int __devinit snd_emu10k1_init_efx(struct snd_emu10k1 *emu) | 2376 | int snd_emu10k1_init_efx(struct snd_emu10k1 *emu) |
2377 | { | 2377 | { |
2378 | spin_lock_init(&emu->fx8010.irq_lock); | 2378 | spin_lock_init(&emu->fx8010.irq_lock); |
2379 | INIT_LIST_HEAD(&emu->fx8010.gpr_ctl); | 2379 | INIT_LIST_HEAD(&emu->fx8010.gpr_ctl); |
@@ -2626,7 +2626,8 @@ static int snd_emu10k1_fx8010_release(struct snd_hwdep * hw, struct file *file) | |||
2626 | return 0; | 2626 | return 0; |
2627 | } | 2627 | } |
2628 | 2628 | ||
2629 | int __devinit snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device, struct snd_hwdep ** rhwdep) | 2629 | int snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device, |
2630 | struct snd_hwdep **rhwdep) | ||
2630 | { | 2631 | { |
2631 | struct snd_hwdep *hw; | 2632 | struct snd_hwdep *hw; |
2632 | int err; | 2633 | int err; |
@@ -2647,7 +2648,7 @@ int __devinit snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device, struct | |||
2647 | } | 2648 | } |
2648 | 2649 | ||
2649 | #ifdef CONFIG_PM_SLEEP | 2650 | #ifdef CONFIG_PM_SLEEP |
2650 | int __devinit snd_emu10k1_efx_alloc_pm_buffer(struct snd_emu10k1 *emu) | 2651 | int snd_emu10k1_efx_alloc_pm_buffer(struct snd_emu10k1 *emu) |
2651 | { | 2652 | { |
2652 | int len; | 2653 | int len; |
2653 | 2654 | ||
diff --git a/sound/pci/emu10k1/emumixer.c b/sound/pci/emu10k1/emumixer.c index 9d890a5aec5a..f6c3da0d377d 100644 --- a/sound/pci/emu10k1/emumixer.c +++ b/sound/pci/emu10k1/emumixer.c | |||
@@ -510,7 +510,7 @@ static int snd_emu1010_input_source_put(struct snd_kcontrol *kcontrol, | |||
510 | .private_value = chid \ | 510 | .private_value = chid \ |
511 | } | 511 | } |
512 | 512 | ||
513 | static struct snd_kcontrol_new snd_emu1010_output_enum_ctls[] __devinitdata = { | 513 | static struct snd_kcontrol_new snd_emu1010_output_enum_ctls[] = { |
514 | EMU1010_SOURCE_OUTPUT("Dock DAC1 Left Playback Enum", 0), | 514 | EMU1010_SOURCE_OUTPUT("Dock DAC1 Left Playback Enum", 0), |
515 | EMU1010_SOURCE_OUTPUT("Dock DAC1 Right Playback Enum", 1), | 515 | EMU1010_SOURCE_OUTPUT("Dock DAC1 Right Playback Enum", 1), |
516 | EMU1010_SOURCE_OUTPUT("Dock DAC2 Left Playback Enum", 2), | 516 | EMU1010_SOURCE_OUTPUT("Dock DAC2 Left Playback Enum", 2), |
@@ -539,7 +539,7 @@ static struct snd_kcontrol_new snd_emu1010_output_enum_ctls[] __devinitdata = { | |||
539 | 539 | ||
540 | 540 | ||
541 | /* 1616(m) cardbus */ | 541 | /* 1616(m) cardbus */ |
542 | static struct snd_kcontrol_new snd_emu1616_output_enum_ctls[] __devinitdata = { | 542 | static struct snd_kcontrol_new snd_emu1616_output_enum_ctls[] = { |
543 | EMU1010_SOURCE_OUTPUT("Dock DAC1 Left Playback Enum", 0), | 543 | EMU1010_SOURCE_OUTPUT("Dock DAC1 Left Playback Enum", 0), |
544 | EMU1010_SOURCE_OUTPUT("Dock DAC1 Right Playback Enum", 1), | 544 | EMU1010_SOURCE_OUTPUT("Dock DAC1 Right Playback Enum", 1), |
545 | EMU1010_SOURCE_OUTPUT("Dock DAC2 Left Playback Enum", 2), | 545 | EMU1010_SOURCE_OUTPUT("Dock DAC2 Left Playback Enum", 2), |
@@ -571,7 +571,7 @@ static struct snd_kcontrol_new snd_emu1616_output_enum_ctls[] __devinitdata = { | |||
571 | .private_value = chid \ | 571 | .private_value = chid \ |
572 | } | 572 | } |
573 | 573 | ||
574 | static struct snd_kcontrol_new snd_emu1010_input_enum_ctls[] __devinitdata = { | 574 | static struct snd_kcontrol_new snd_emu1010_input_enum_ctls[] = { |
575 | EMU1010_SOURCE_INPUT("DSP 0 Capture Enum", 0), | 575 | EMU1010_SOURCE_INPUT("DSP 0 Capture Enum", 0), |
576 | EMU1010_SOURCE_INPUT("DSP 1 Capture Enum", 1), | 576 | EMU1010_SOURCE_INPUT("DSP 1 Capture Enum", 1), |
577 | EMU1010_SOURCE_INPUT("DSP 2 Capture Enum", 2), | 577 | EMU1010_SOURCE_INPUT("DSP 2 Capture Enum", 2), |
@@ -639,7 +639,7 @@ static int snd_emu1010_adc_pads_put(struct snd_kcontrol *kcontrol, struct snd_ct | |||
639 | .private_value = chid \ | 639 | .private_value = chid \ |
640 | } | 640 | } |
641 | 641 | ||
642 | static struct snd_kcontrol_new snd_emu1010_adc_pads[] __devinitdata = { | 642 | static struct snd_kcontrol_new snd_emu1010_adc_pads[] = { |
643 | EMU1010_ADC_PADS("ADC1 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD1), | 643 | EMU1010_ADC_PADS("ADC1 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD1), |
644 | EMU1010_ADC_PADS("ADC2 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD2), | 644 | EMU1010_ADC_PADS("ADC2 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD2), |
645 | EMU1010_ADC_PADS("ADC3 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD3), | 645 | EMU1010_ADC_PADS("ADC3 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD3), |
@@ -687,7 +687,7 @@ static int snd_emu1010_dac_pads_put(struct snd_kcontrol *kcontrol, struct snd_ct | |||
687 | .private_value = chid \ | 687 | .private_value = chid \ |
688 | } | 688 | } |
689 | 689 | ||
690 | static struct snd_kcontrol_new snd_emu1010_dac_pads[] __devinitdata = { | 690 | static struct snd_kcontrol_new snd_emu1010_dac_pads[] = { |
691 | EMU1010_DAC_PADS("DAC1 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD1), | 691 | EMU1010_DAC_PADS("DAC1 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD1), |
692 | EMU1010_DAC_PADS("DAC2 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD2), | 692 | EMU1010_DAC_PADS("DAC2 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD2), |
693 | EMU1010_DAC_PADS("DAC3 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD3), | 693 | EMU1010_DAC_PADS("DAC3 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD3), |
@@ -989,7 +989,7 @@ static int snd_audigy_i2c_volume_put(struct snd_kcontrol *kcontrol, | |||
989 | } | 989 | } |
990 | 990 | ||
991 | 991 | ||
992 | static struct snd_kcontrol_new snd_audigy_i2c_volume_ctls[] __devinitdata = { | 992 | static struct snd_kcontrol_new snd_audigy_i2c_volume_ctls[] = { |
993 | I2C_VOLUME("Mic Capture Volume", 0), | 993 | I2C_VOLUME("Mic Capture Volume", 0), |
994 | I2C_VOLUME("Line Capture Volume", 0) | 994 | I2C_VOLUME("Line Capture Volume", 0) |
995 | }; | 995 | }; |
@@ -1621,7 +1621,7 @@ static int snd_emu10k1_shared_spdif_put(struct snd_kcontrol *kcontrol, | |||
1621 | return change; | 1621 | return change; |
1622 | } | 1622 | } |
1623 | 1623 | ||
1624 | static struct snd_kcontrol_new snd_emu10k1_shared_spdif __devinitdata = | 1624 | static struct snd_kcontrol_new snd_emu10k1_shared_spdif = |
1625 | { | 1625 | { |
1626 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1626 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1627 | .name = "SB Live Analog/Digital Output Jack", | 1627 | .name = "SB Live Analog/Digital Output Jack", |
@@ -1630,7 +1630,7 @@ static struct snd_kcontrol_new snd_emu10k1_shared_spdif __devinitdata = | |||
1630 | .put = snd_emu10k1_shared_spdif_put | 1630 | .put = snd_emu10k1_shared_spdif_put |
1631 | }; | 1631 | }; |
1632 | 1632 | ||
1633 | static struct snd_kcontrol_new snd_audigy_shared_spdif __devinitdata = | 1633 | static struct snd_kcontrol_new snd_audigy_shared_spdif = |
1634 | { | 1634 | { |
1635 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1635 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1636 | .name = "Audigy Analog/Digital Output Jack", | 1636 | .name = "Audigy Analog/Digital Output Jack", |
@@ -1668,7 +1668,7 @@ static int snd_audigy_capture_boost_put(struct snd_kcontrol *kcontrol, | |||
1668 | return snd_ac97_update(emu->ac97, AC97_REC_GAIN, val); | 1668 | return snd_ac97_update(emu->ac97, AC97_REC_GAIN, val); |
1669 | } | 1669 | } |
1670 | 1670 | ||
1671 | static struct snd_kcontrol_new snd_audigy_capture_boost __devinitdata = | 1671 | static struct snd_kcontrol_new snd_audigy_capture_boost = |
1672 | { | 1672 | { |
1673 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1673 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1674 | .name = "Analog Capture Boost", | 1674 | .name = "Analog Capture Boost", |
@@ -1716,8 +1716,8 @@ static int rename_ctl(struct snd_card *card, const char *src, const char *dst) | |||
1716 | return -ENOENT; | 1716 | return -ENOENT; |
1717 | } | 1717 | } |
1718 | 1718 | ||
1719 | int __devinit snd_emu10k1_mixer(struct snd_emu10k1 *emu, | 1719 | int snd_emu10k1_mixer(struct snd_emu10k1 *emu, |
1720 | int pcm_device, int multi_device) | 1720 | int pcm_device, int multi_device) |
1721 | { | 1721 | { |
1722 | int err, pcm; | 1722 | int err, pcm; |
1723 | struct snd_kcontrol *kctl; | 1723 | struct snd_kcontrol *kctl; |
diff --git a/sound/pci/emu10k1/emumpu401.c b/sound/pci/emu10k1/emumpu401.c index bab564824efe..1ec91246dfee 100644 --- a/sound/pci/emu10k1/emumpu401.c +++ b/sound/pci/emu10k1/emumpu401.c | |||
@@ -326,7 +326,7 @@ static void snd_emu10k1_midi_free(struct snd_rawmidi *rmidi) | |||
326 | midi->rmidi = NULL; | 326 | midi->rmidi = NULL; |
327 | } | 327 | } |
328 | 328 | ||
329 | static int __devinit emu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, int device, char *name) | 329 | static int emu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, int device, char *name) |
330 | { | 330 | { |
331 | struct snd_rawmidi *rmidi; | 331 | struct snd_rawmidi *rmidi; |
332 | int err; | 332 | int err; |
@@ -349,7 +349,7 @@ static int __devinit emu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10 | |||
349 | return 0; | 349 | return 0; |
350 | } | 350 | } |
351 | 351 | ||
352 | int __devinit snd_emu10k1_midi(struct snd_emu10k1 *emu) | 352 | int snd_emu10k1_midi(struct snd_emu10k1 *emu) |
353 | { | 353 | { |
354 | struct snd_emu10k1_midi *midi = &emu->midi; | 354 | struct snd_emu10k1_midi *midi = &emu->midi; |
355 | int err; | 355 | int err; |
@@ -366,7 +366,7 @@ int __devinit snd_emu10k1_midi(struct snd_emu10k1 *emu) | |||
366 | return 0; | 366 | return 0; |
367 | } | 367 | } |
368 | 368 | ||
369 | int __devinit snd_emu10k1_audigy_midi(struct snd_emu10k1 *emu) | 369 | int snd_emu10k1_audigy_midi(struct snd_emu10k1 *emu) |
370 | { | 370 | { |
371 | struct snd_emu10k1_midi *midi; | 371 | struct snd_emu10k1_midi *midi; |
372 | int err; | 372 | int err; |
diff --git a/sound/pci/emu10k1/emupcm.c b/sound/pci/emu10k1/emupcm.c index 0e6664fa6cd9..748a286277eb 100644 --- a/sound/pci/emu10k1/emupcm.c +++ b/sound/pci/emu10k1/emupcm.c | |||
@@ -1391,7 +1391,7 @@ static struct snd_pcm_ops snd_emu10k1_efx_playback_ops = { | |||
1391 | .page = snd_pcm_sgbuf_ops_page, | 1391 | .page = snd_pcm_sgbuf_ops_page, |
1392 | }; | 1392 | }; |
1393 | 1393 | ||
1394 | int __devinit snd_emu10k1_pcm(struct snd_emu10k1 * emu, int device, struct snd_pcm ** rpcm) | 1394 | int snd_emu10k1_pcm(struct snd_emu10k1 *emu, int device, struct snd_pcm **rpcm) |
1395 | { | 1395 | { |
1396 | struct snd_pcm *pcm; | 1396 | struct snd_pcm *pcm; |
1397 | struct snd_pcm_substream *substream; | 1397 | struct snd_pcm_substream *substream; |
@@ -1426,7 +1426,8 @@ int __devinit snd_emu10k1_pcm(struct snd_emu10k1 * emu, int device, struct snd_p | |||
1426 | return 0; | 1426 | return 0; |
1427 | } | 1427 | } |
1428 | 1428 | ||
1429 | int __devinit snd_emu10k1_pcm_multi(struct snd_emu10k1 * emu, int device, struct snd_pcm ** rpcm) | 1429 | int snd_emu10k1_pcm_multi(struct snd_emu10k1 *emu, int device, |
1430 | struct snd_pcm **rpcm) | ||
1430 | { | 1431 | { |
1431 | struct snd_pcm *pcm; | 1432 | struct snd_pcm *pcm; |
1432 | struct snd_pcm_substream *substream; | 1433 | struct snd_pcm_substream *substream; |
@@ -1469,7 +1470,8 @@ static struct snd_pcm_ops snd_emu10k1_capture_mic_ops = { | |||
1469 | .pointer = snd_emu10k1_capture_pointer, | 1470 | .pointer = snd_emu10k1_capture_pointer, |
1470 | }; | 1471 | }; |
1471 | 1472 | ||
1472 | int __devinit snd_emu10k1_pcm_mic(struct snd_emu10k1 * emu, int device, struct snd_pcm ** rpcm) | 1473 | int snd_emu10k1_pcm_mic(struct snd_emu10k1 *emu, int device, |
1474 | struct snd_pcm **rpcm) | ||
1473 | { | 1475 | { |
1474 | struct snd_pcm *pcm; | 1476 | struct snd_pcm *pcm; |
1475 | int err; | 1477 | int err; |
@@ -1810,7 +1812,8 @@ static struct snd_pcm_ops snd_emu10k1_fx8010_playback_ops = { | |||
1810 | .ack = snd_emu10k1_fx8010_playback_transfer, | 1812 | .ack = snd_emu10k1_fx8010_playback_transfer, |
1811 | }; | 1813 | }; |
1812 | 1814 | ||
1813 | int __devinit snd_emu10k1_pcm_efx(struct snd_emu10k1 * emu, int device, struct snd_pcm ** rpcm) | 1815 | int snd_emu10k1_pcm_efx(struct snd_emu10k1 *emu, int device, |
1816 | struct snd_pcm **rpcm) | ||
1814 | { | 1817 | { |
1815 | struct snd_pcm *pcm; | 1818 | struct snd_pcm *pcm; |
1816 | struct snd_kcontrol *kctl; | 1819 | struct snd_kcontrol *kctl; |
diff --git a/sound/pci/emu10k1/emuproc.c b/sound/pci/emu10k1/emuproc.c index bc38dd4d071f..2ca9f2e93139 100644 --- a/sound/pci/emu10k1/emuproc.c +++ b/sound/pci/emu10k1/emuproc.c | |||
@@ -577,7 +577,7 @@ static struct snd_info_entry_ops snd_emu10k1_proc_ops_fx8010 = { | |||
577 | .read = snd_emu10k1_fx8010_read, | 577 | .read = snd_emu10k1_fx8010_read, |
578 | }; | 578 | }; |
579 | 579 | ||
580 | int __devinit snd_emu10k1_proc_init(struct snd_emu10k1 * emu) | 580 | int snd_emu10k1_proc_init(struct snd_emu10k1 *emu) |
581 | { | 581 | { |
582 | struct snd_info_entry *entry; | 582 | struct snd_info_entry *entry; |
583 | #ifdef CONFIG_SND_DEBUG | 583 | #ifdef CONFIG_SND_DEBUG |
diff --git a/sound/pci/emu10k1/p16v.c b/sound/pci/emu10k1/p16v.c index 88cec6b7dd41..7e2025cd6d9c 100644 --- a/sound/pci/emu10k1/p16v.c +++ b/sound/pci/emu10k1/p16v.c | |||
@@ -637,7 +637,7 @@ int snd_p16v_free(struct snd_emu10k1 *chip) | |||
637 | return 0; | 637 | return 0; |
638 | } | 638 | } |
639 | 639 | ||
640 | int __devinit snd_p16v_pcm(struct snd_emu10k1 *emu, int device, struct snd_pcm **rpcm) | 640 | int snd_p16v_pcm(struct snd_emu10k1 *emu, int device, struct snd_pcm **rpcm) |
641 | { | 641 | { |
642 | struct snd_pcm *pcm; | 642 | struct snd_pcm *pcm; |
643 | struct snd_pcm_substream *substream; | 643 | struct snd_pcm_substream *substream; |
@@ -854,7 +854,7 @@ static const DECLARE_TLV_DB_SCALE(snd_p16v_db_scale1, -5175, 25, 1); | |||
854 | .private_value = ((xreg) | ((xhl) << 8)) \ | 854 | .private_value = ((xreg) | ((xhl) << 8)) \ |
855 | } | 855 | } |
856 | 856 | ||
857 | static struct snd_kcontrol_new p16v_mixer_controls[] __devinitdata = { | 857 | static struct snd_kcontrol_new p16v_mixer_controls[] = { |
858 | P16V_VOL("HD Analog Front Playback Volume", PLAYBACK_VOLUME_MIXER9, 0), | 858 | P16V_VOL("HD Analog Front Playback Volume", PLAYBACK_VOLUME_MIXER9, 0), |
859 | P16V_VOL("HD Analog Rear Playback Volume", PLAYBACK_VOLUME_MIXER10, 1), | 859 | P16V_VOL("HD Analog Rear Playback Volume", PLAYBACK_VOLUME_MIXER10, 1), |
860 | P16V_VOL("HD Analog Center/LFE Playback Volume", PLAYBACK_VOLUME_MIXER9, 1), | 860 | P16V_VOL("HD Analog Center/LFE Playback Volume", PLAYBACK_VOLUME_MIXER9, 1), |
@@ -880,7 +880,7 @@ static struct snd_kcontrol_new p16v_mixer_controls[] __devinitdata = { | |||
880 | }; | 880 | }; |
881 | 881 | ||
882 | 882 | ||
883 | int __devinit snd_p16v_mixer(struct snd_emu10k1 *emu) | 883 | int snd_p16v_mixer(struct snd_emu10k1 *emu) |
884 | { | 884 | { |
885 | int i, err; | 885 | int i, err; |
886 | struct snd_card *card = emu->card; | 886 | struct snd_card *card = emu->card; |
@@ -897,7 +897,7 @@ int __devinit snd_p16v_mixer(struct snd_emu10k1 *emu) | |||
897 | 897 | ||
898 | #define NUM_CHS 1 /* up to 4, but only first channel is used */ | 898 | #define NUM_CHS 1 /* up to 4, but only first channel is used */ |
899 | 899 | ||
900 | int __devinit snd_p16v_alloc_pm_buffer(struct snd_emu10k1 *emu) | 900 | int snd_p16v_alloc_pm_buffer(struct snd_emu10k1 *emu) |
901 | { | 901 | { |
902 | emu->p16v_saved = vmalloc(NUM_CHS * 4 * 0x80); | 902 | emu->p16v_saved = vmalloc(NUM_CHS * 4 * 0x80); |
903 | if (! emu->p16v_saved) | 903 | if (! emu->p16v_saved) |
diff --git a/sound/pci/emu10k1/timer.c b/sound/pci/emu10k1/timer.c index 72321e946ccc..b69a7f8a216c 100644 --- a/sound/pci/emu10k1/timer.c +++ b/sound/pci/emu10k1/timer.c | |||
@@ -75,7 +75,7 @@ static struct snd_timer_hardware snd_emu10k1_timer_hw = { | |||
75 | .precise_resolution = snd_emu10k1_timer_precise_resolution, | 75 | .precise_resolution = snd_emu10k1_timer_precise_resolution, |
76 | }; | 76 | }; |
77 | 77 | ||
78 | int __devinit snd_emu10k1_timer(struct snd_emu10k1 *emu, int device) | 78 | int snd_emu10k1_timer(struct snd_emu10k1 *emu, int device) |
79 | { | 79 | { |
80 | struct snd_timer *timer = NULL; | 80 | struct snd_timer *timer = NULL; |
81 | struct snd_timer_id tid; | 81 | struct snd_timer_id tid; |
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index 5674cc316530..db2dc835171d 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c | |||
@@ -1268,8 +1268,8 @@ static const struct snd_pcm_chmap_elem surround_map[] = { | |||
1268 | { } | 1268 | { } |
1269 | }; | 1269 | }; |
1270 | 1270 | ||
1271 | static int __devinit snd_ensoniq_pcm(struct ensoniq * ensoniq, int device, | 1271 | static int snd_ensoniq_pcm(struct ensoniq *ensoniq, int device, |
1272 | struct snd_pcm ** rpcm) | 1272 | struct snd_pcm **rpcm) |
1273 | { | 1273 | { |
1274 | struct snd_pcm *pcm; | 1274 | struct snd_pcm *pcm; |
1275 | int err; | 1275 | int err; |
@@ -1310,8 +1310,8 @@ static int __devinit snd_ensoniq_pcm(struct ensoniq * ensoniq, int device, | |||
1310 | return 0; | 1310 | return 0; |
1311 | } | 1311 | } |
1312 | 1312 | ||
1313 | static int __devinit snd_ensoniq_pcm2(struct ensoniq * ensoniq, int device, | 1313 | static int snd_ensoniq_pcm2(struct ensoniq *ensoniq, int device, |
1314 | struct snd_pcm ** rpcm) | 1314 | struct snd_pcm **rpcm) |
1315 | { | 1315 | { |
1316 | struct snd_pcm *pcm; | 1316 | struct snd_pcm *pcm; |
1317 | int err; | 1317 | int err; |
@@ -1484,7 +1484,7 @@ static int snd_es1371_spdif_put(struct snd_kcontrol *kcontrol, | |||
1484 | 1484 | ||
1485 | 1485 | ||
1486 | /* spdif controls */ | 1486 | /* spdif controls */ |
1487 | static struct snd_kcontrol_new snd_es1371_mixer_spdif[] __devinitdata = { | 1487 | static struct snd_kcontrol_new snd_es1371_mixer_spdif[] = { |
1488 | ES1371_SPDIF(SNDRV_CTL_NAME_IEC958("",PLAYBACK,SWITCH)), | 1488 | ES1371_SPDIF(SNDRV_CTL_NAME_IEC958("",PLAYBACK,SWITCH)), |
1489 | { | 1489 | { |
1490 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1490 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
@@ -1546,7 +1546,7 @@ static int snd_es1373_rear_put(struct snd_kcontrol *kcontrol, | |||
1546 | return change; | 1546 | return change; |
1547 | } | 1547 | } |
1548 | 1548 | ||
1549 | static struct snd_kcontrol_new snd_ens1373_rear __devinitdata = | 1549 | static struct snd_kcontrol_new snd_ens1373_rear = |
1550 | { | 1550 | { |
1551 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1551 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1552 | .name = "AC97 2ch->4ch Copy Switch", | 1552 | .name = "AC97 2ch->4ch Copy Switch", |
@@ -1591,7 +1591,7 @@ static int snd_es1373_line_put(struct snd_kcontrol *kcontrol, | |||
1591 | return changed; | 1591 | return changed; |
1592 | } | 1592 | } |
1593 | 1593 | ||
1594 | static struct snd_kcontrol_new snd_ens1373_line __devinitdata = | 1594 | static struct snd_kcontrol_new snd_ens1373_line = |
1595 | { | 1595 | { |
1596 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1596 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1597 | .name = "Line In->Rear Out Switch", | 1597 | .name = "Line In->Rear Out Switch", |
@@ -1625,7 +1625,7 @@ static int es1371_quirk_lookup(struct ensoniq *ensoniq, | |||
1625 | return 0; | 1625 | return 0; |
1626 | } | 1626 | } |
1627 | 1627 | ||
1628 | static struct es1371_quirk es1371_spdif_present[] __devinitdata = { | 1628 | static struct es1371_quirk es1371_spdif_present[] = { |
1629 | { .vid = PCI_VENDOR_ID_ENSONIQ, .did = PCI_DEVICE_ID_ENSONIQ_CT5880, .rev = CT5880REV_CT5880_C }, | 1629 | { .vid = PCI_VENDOR_ID_ENSONIQ, .did = PCI_DEVICE_ID_ENSONIQ_CT5880, .rev = CT5880REV_CT5880_C }, |
1630 | { .vid = PCI_VENDOR_ID_ENSONIQ, .did = PCI_DEVICE_ID_ENSONIQ_CT5880, .rev = CT5880REV_CT5880_D }, | 1630 | { .vid = PCI_VENDOR_ID_ENSONIQ, .did = PCI_DEVICE_ID_ENSONIQ_CT5880, .rev = CT5880REV_CT5880_D }, |
1631 | { .vid = PCI_VENDOR_ID_ENSONIQ, .did = PCI_DEVICE_ID_ENSONIQ_CT5880, .rev = CT5880REV_CT5880_E }, | 1631 | { .vid = PCI_VENDOR_ID_ENSONIQ, .did = PCI_DEVICE_ID_ENSONIQ_CT5880, .rev = CT5880REV_CT5880_E }, |
@@ -1634,14 +1634,14 @@ static struct es1371_quirk es1371_spdif_present[] __devinitdata = { | |||
1634 | { .vid = PCI_ANY_ID, .did = PCI_ANY_ID } | 1634 | { .vid = PCI_ANY_ID, .did = PCI_ANY_ID } |
1635 | }; | 1635 | }; |
1636 | 1636 | ||
1637 | static struct snd_pci_quirk ens1373_line_quirk[] __devinitdata = { | 1637 | static struct snd_pci_quirk ens1373_line_quirk[] = { |
1638 | SND_PCI_QUIRK_ID(0x1274, 0x2000), /* GA-7DXR */ | 1638 | SND_PCI_QUIRK_ID(0x1274, 0x2000), /* GA-7DXR */ |
1639 | SND_PCI_QUIRK_ID(0x1458, 0xa000), /* GA-8IEXP */ | 1639 | SND_PCI_QUIRK_ID(0x1458, 0xa000), /* GA-8IEXP */ |
1640 | { } /* end */ | 1640 | { } /* end */ |
1641 | }; | 1641 | }; |
1642 | 1642 | ||
1643 | static int __devinit snd_ensoniq_1371_mixer(struct ensoniq *ensoniq, | 1643 | static int snd_ensoniq_1371_mixer(struct ensoniq *ensoniq, |
1644 | int has_spdif, int has_line) | 1644 | int has_spdif, int has_line) |
1645 | { | 1645 | { |
1646 | struct snd_card *card = ensoniq->card; | 1646 | struct snd_card *card = ensoniq->card; |
1647 | struct snd_ac97_bus *pbus; | 1647 | struct snd_ac97_bus *pbus; |
@@ -1749,7 +1749,7 @@ static int snd_ensoniq_control_put(struct snd_kcontrol *kcontrol, | |||
1749 | * ENS1370 mixer | 1749 | * ENS1370 mixer |
1750 | */ | 1750 | */ |
1751 | 1751 | ||
1752 | static struct snd_kcontrol_new snd_es1370_controls[2] __devinitdata = { | 1752 | static struct snd_kcontrol_new snd_es1370_controls[2] = { |
1753 | ENSONIQ_CONTROL("PCM 0 Output also on Line-In Jack", ES_1370_XCTL0), | 1753 | ENSONIQ_CONTROL("PCM 0 Output also on Line-In Jack", ES_1370_XCTL0), |
1754 | ENSONIQ_CONTROL("Mic +5V bias", ES_1370_XCTL1) | 1754 | ENSONIQ_CONTROL("Mic +5V bias", ES_1370_XCTL1) |
1755 | }; | 1755 | }; |
@@ -1762,7 +1762,7 @@ static void snd_ensoniq_mixer_free_ak4531(struct snd_ak4531 *ak4531) | |||
1762 | ensoniq->u.es1370.ak4531 = NULL; | 1762 | ensoniq->u.es1370.ak4531 = NULL; |
1763 | } | 1763 | } |
1764 | 1764 | ||
1765 | static int __devinit snd_ensoniq_1370_mixer(struct ensoniq * ensoniq) | 1765 | static int snd_ensoniq_1370_mixer(struct ensoniq *ensoniq) |
1766 | { | 1766 | { |
1767 | struct snd_card *card = ensoniq->card; | 1767 | struct snd_card *card = ensoniq->card; |
1768 | struct snd_ak4531 ak4531; | 1768 | struct snd_ak4531 ak4531; |
@@ -1796,7 +1796,7 @@ static int __devinit snd_ensoniq_1370_mixer(struct ensoniq * ensoniq) | |||
1796 | #ifdef SUPPORT_JOYSTICK | 1796 | #ifdef SUPPORT_JOYSTICK |
1797 | 1797 | ||
1798 | #ifdef CHIP1371 | 1798 | #ifdef CHIP1371 |
1799 | static int __devinit snd_ensoniq_get_joystick_port(int dev) | 1799 | static int snd_ensoniq_get_joystick_port(int dev) |
1800 | { | 1800 | { |
1801 | switch (joystick_port[dev]) { | 1801 | switch (joystick_port[dev]) { |
1802 | case 0: /* disabled */ | 1802 | case 0: /* disabled */ |
@@ -1819,7 +1819,7 @@ static inline int snd_ensoniq_get_joystick_port(int dev) | |||
1819 | } | 1819 | } |
1820 | #endif | 1820 | #endif |
1821 | 1821 | ||
1822 | static int __devinit snd_ensoniq_create_gameport(struct ensoniq *ensoniq, int dev) | 1822 | static int snd_ensoniq_create_gameport(struct ensoniq *ensoniq, int dev) |
1823 | { | 1823 | { |
1824 | struct gameport *gp; | 1824 | struct gameport *gp; |
1825 | int io_port; | 1825 | int io_port; |
@@ -1913,7 +1913,7 @@ static void snd_ensoniq_proc_read(struct snd_info_entry *entry, | |||
1913 | #endif | 1913 | #endif |
1914 | } | 1914 | } |
1915 | 1915 | ||
1916 | static void __devinit snd_ensoniq_proc_init(struct ensoniq * ensoniq) | 1916 | static void snd_ensoniq_proc_init(struct ensoniq *ensoniq) |
1917 | { | 1917 | { |
1918 | struct snd_info_entry *entry; | 1918 | struct snd_info_entry *entry; |
1919 | 1919 | ||
@@ -1960,7 +1960,7 @@ static int snd_ensoniq_dev_free(struct snd_device *device) | |||
1960 | } | 1960 | } |
1961 | 1961 | ||
1962 | #ifdef CHIP1371 | 1962 | #ifdef CHIP1371 |
1963 | static struct snd_pci_quirk es1371_amplifier_hack[] __devinitdata = { | 1963 | static struct snd_pci_quirk es1371_amplifier_hack[] = { |
1964 | SND_PCI_QUIRK_ID(0x107b, 0x2150), /* Gateway Solo 2150 */ | 1964 | SND_PCI_QUIRK_ID(0x107b, 0x2150), /* Gateway Solo 2150 */ |
1965 | SND_PCI_QUIRK_ID(0x13bd, 0x100c), /* EV1938 on Mebius PC-MJ100V */ | 1965 | SND_PCI_QUIRK_ID(0x13bd, 0x100c), /* EV1938 on Mebius PC-MJ100V */ |
1966 | SND_PCI_QUIRK_ID(0x1102, 0x5938), /* Targa Xtender300 */ | 1966 | SND_PCI_QUIRK_ID(0x1102, 0x5938), /* Targa Xtender300 */ |
@@ -2106,9 +2106,9 @@ static SIMPLE_DEV_PM_OPS(snd_ensoniq_pm, snd_ensoniq_suspend, snd_ensoniq_resume | |||
2106 | #define SND_ENSONIQ_PM_OPS NULL | 2106 | #define SND_ENSONIQ_PM_OPS NULL |
2107 | #endif /* CONFIG_PM_SLEEP */ | 2107 | #endif /* CONFIG_PM_SLEEP */ |
2108 | 2108 | ||
2109 | static int __devinit snd_ensoniq_create(struct snd_card *card, | 2109 | static int snd_ensoniq_create(struct snd_card *card, |
2110 | struct pci_dev *pci, | 2110 | struct pci_dev *pci, |
2111 | struct ensoniq ** rensoniq) | 2111 | struct ensoniq **rensoniq) |
2112 | { | 2112 | { |
2113 | struct ensoniq *ensoniq; | 2113 | struct ensoniq *ensoniq; |
2114 | int err; | 2114 | int err; |
@@ -2361,8 +2361,8 @@ static struct snd_rawmidi_ops snd_ensoniq_midi_input = | |||
2361 | .trigger = snd_ensoniq_midi_input_trigger, | 2361 | .trigger = snd_ensoniq_midi_input_trigger, |
2362 | }; | 2362 | }; |
2363 | 2363 | ||
2364 | static int __devinit snd_ensoniq_midi(struct ensoniq * ensoniq, int device, | 2364 | static int snd_ensoniq_midi(struct ensoniq *ensoniq, int device, |
2365 | struct snd_rawmidi **rrawmidi) | 2365 | struct snd_rawmidi **rrawmidi) |
2366 | { | 2366 | { |
2367 | struct snd_rawmidi *rmidi; | 2367 | struct snd_rawmidi *rmidi; |
2368 | int err; | 2368 | int err; |
@@ -2422,8 +2422,8 @@ static irqreturn_t snd_audiopci_interrupt(int irq, void *dev_id) | |||
2422 | return IRQ_HANDLED; | 2422 | return IRQ_HANDLED; |
2423 | } | 2423 | } |
2424 | 2424 | ||
2425 | static int __devinit snd_audiopci_probe(struct pci_dev *pci, | 2425 | static int snd_audiopci_probe(struct pci_dev *pci, |
2426 | const struct pci_device_id *pci_id) | 2426 | const struct pci_device_id *pci_id) |
2427 | { | 2427 | { |
2428 | static int dev; | 2428 | static int dev; |
2429 | struct snd_card *card; | 2429 | struct snd_card *card; |
@@ -2494,7 +2494,7 @@ static int __devinit snd_audiopci_probe(struct pci_dev *pci, | |||
2494 | return 0; | 2494 | return 0; |
2495 | } | 2495 | } |
2496 | 2496 | ||
2497 | static void __devexit snd_audiopci_remove(struct pci_dev *pci) | 2497 | static void snd_audiopci_remove(struct pci_dev *pci) |
2498 | { | 2498 | { |
2499 | snd_card_free(pci_get_drvdata(pci)); | 2499 | snd_card_free(pci_get_drvdata(pci)); |
2500 | pci_set_drvdata(pci, NULL); | 2500 | pci_set_drvdata(pci, NULL); |
@@ -2504,7 +2504,7 @@ static struct pci_driver ens137x_driver = { | |||
2504 | .name = KBUILD_MODNAME, | 2504 | .name = KBUILD_MODNAME, |
2505 | .id_table = snd_audiopci_ids, | 2505 | .id_table = snd_audiopci_ids, |
2506 | .probe = snd_audiopci_probe, | 2506 | .probe = snd_audiopci_probe, |
2507 | .remove = __devexit_p(snd_audiopci_remove), | 2507 | .remove = snd_audiopci_remove, |
2508 | .driver = { | 2508 | .driver = { |
2509 | .pm = SND_ENSONIQ_PM_OPS, | 2509 | .pm = SND_ENSONIQ_PM_OPS, |
2510 | }, | 2510 | }, |
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index 394c5d413530..8423403954ab 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c | |||
@@ -1027,7 +1027,7 @@ static struct snd_pcm_ops snd_es1938_capture_ops = { | |||
1027 | .copy = snd_es1938_capture_copy, | 1027 | .copy = snd_es1938_capture_copy, |
1028 | }; | 1028 | }; |
1029 | 1029 | ||
1030 | static int __devinit snd_es1938_new_pcm(struct es1938 *chip, int device) | 1030 | static int snd_es1938_new_pcm(struct es1938 *chip, int device) |
1031 | { | 1031 | { |
1032 | struct snd_pcm *pcm; | 1032 | struct snd_pcm *pcm; |
1033 | int err; | 1033 | int err; |
@@ -1539,7 +1539,7 @@ static SIMPLE_DEV_PM_OPS(es1938_pm, es1938_suspend, es1938_resume); | |||
1539 | #endif /* CONFIG_PM_SLEEP */ | 1539 | #endif /* CONFIG_PM_SLEEP */ |
1540 | 1540 | ||
1541 | #ifdef SUPPORT_JOYSTICK | 1541 | #ifdef SUPPORT_JOYSTICK |
1542 | static int __devinit snd_es1938_create_gameport(struct es1938 *chip) | 1542 | static int snd_es1938_create_gameport(struct es1938 *chip) |
1543 | { | 1543 | { |
1544 | struct gameport *gp; | 1544 | struct gameport *gp; |
1545 | 1545 | ||
@@ -1594,9 +1594,9 @@ static int snd_es1938_dev_free(struct snd_device *device) | |||
1594 | return snd_es1938_free(chip); | 1594 | return snd_es1938_free(chip); |
1595 | } | 1595 | } |
1596 | 1596 | ||
1597 | static int __devinit snd_es1938_create(struct snd_card *card, | 1597 | static int snd_es1938_create(struct snd_card *card, |
1598 | struct pci_dev * pci, | 1598 | struct pci_dev *pci, |
1599 | struct es1938 ** rchip) | 1599 | struct es1938 **rchip) |
1600 | { | 1600 | { |
1601 | struct es1938 *chip; | 1601 | struct es1938 *chip; |
1602 | int err; | 1602 | int err; |
@@ -1754,7 +1754,7 @@ static irqreturn_t snd_es1938_interrupt(int irq, void *dev_id) | |||
1754 | 1754 | ||
1755 | #define ES1938_DMA_SIZE 64 | 1755 | #define ES1938_DMA_SIZE 64 |
1756 | 1756 | ||
1757 | static int __devinit snd_es1938_mixer(struct es1938 *chip) | 1757 | static int snd_es1938_mixer(struct es1938 *chip) |
1758 | { | 1758 | { |
1759 | struct snd_card *card; | 1759 | struct snd_card *card; |
1760 | unsigned int idx; | 1760 | unsigned int idx; |
@@ -1792,8 +1792,8 @@ static int __devinit snd_es1938_mixer(struct es1938 *chip) | |||
1792 | } | 1792 | } |
1793 | 1793 | ||
1794 | 1794 | ||
1795 | static int __devinit snd_es1938_probe(struct pci_dev *pci, | 1795 | static int snd_es1938_probe(struct pci_dev *pci, |
1796 | const struct pci_device_id *pci_id) | 1796 | const struct pci_device_id *pci_id) |
1797 | { | 1797 | { |
1798 | static int dev; | 1798 | static int dev; |
1799 | struct snd_card *card; | 1799 | struct snd_card *card; |
@@ -1878,7 +1878,7 @@ static int __devinit snd_es1938_probe(struct pci_dev *pci, | |||
1878 | return 0; | 1878 | return 0; |
1879 | } | 1879 | } |
1880 | 1880 | ||
1881 | static void __devexit snd_es1938_remove(struct pci_dev *pci) | 1881 | static void snd_es1938_remove(struct pci_dev *pci) |
1882 | { | 1882 | { |
1883 | snd_card_free(pci_get_drvdata(pci)); | 1883 | snd_card_free(pci_get_drvdata(pci)); |
1884 | pci_set_drvdata(pci, NULL); | 1884 | pci_set_drvdata(pci, NULL); |
@@ -1888,7 +1888,7 @@ static struct pci_driver es1938_driver = { | |||
1888 | .name = KBUILD_MODNAME, | 1888 | .name = KBUILD_MODNAME, |
1889 | .id_table = snd_es1938_ids, | 1889 | .id_table = snd_es1938_ids, |
1890 | .probe = snd_es1938_probe, | 1890 | .probe = snd_es1938_probe, |
1891 | .remove = __devexit_p(snd_es1938_remove), | 1891 | .remove = snd_es1938_remove, |
1892 | .driver = { | 1892 | .driver = { |
1893 | .pm = ES1938_PM_OPS, | 1893 | .pm = ES1938_PM_OPS, |
1894 | }, | 1894 | }, |
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index 7266020c16cb..879db2d7796a 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c | |||
@@ -1429,7 +1429,7 @@ static void snd_es1968_free_dmabuf(struct es1968 *chip) | |||
1429 | } | 1429 | } |
1430 | } | 1430 | } |
1431 | 1431 | ||
1432 | static int __devinit | 1432 | static int |
1433 | snd_es1968_init_dmabuf(struct es1968 *chip) | 1433 | snd_es1968_init_dmabuf(struct es1968 *chip) |
1434 | { | 1434 | { |
1435 | int err; | 1435 | int err; |
@@ -1704,7 +1704,7 @@ static struct snd_pcm_ops snd_es1968_capture_ops = { | |||
1704 | */ | 1704 | */ |
1705 | #define CLOCK_MEASURE_BUFSIZE 16768 /* enough large for a single shot */ | 1705 | #define CLOCK_MEASURE_BUFSIZE 16768 /* enough large for a single shot */ |
1706 | 1706 | ||
1707 | static void __devinit es1968_measure_clock(struct es1968 *chip) | 1707 | static void es1968_measure_clock(struct es1968 *chip) |
1708 | { | 1708 | { |
1709 | int i, apu; | 1709 | int i, apu; |
1710 | unsigned int pa, offset, t; | 1710 | unsigned int pa, offset, t; |
@@ -1806,7 +1806,7 @@ static void snd_es1968_pcm_free(struct snd_pcm *pcm) | |||
1806 | esm->pcm = NULL; | 1806 | esm->pcm = NULL; |
1807 | } | 1807 | } |
1808 | 1808 | ||
1809 | static int __devinit | 1809 | static int |
1810 | snd_es1968_pcm(struct es1968 *chip, int device) | 1810 | snd_es1968_pcm(struct es1968 *chip, int device) |
1811 | { | 1811 | { |
1812 | struct snd_pcm *pcm; | 1812 | struct snd_pcm *pcm; |
@@ -2016,7 +2016,7 @@ static irqreturn_t snd_es1968_interrupt(int irq, void *dev_id) | |||
2016 | * Mixer stuff | 2016 | * Mixer stuff |
2017 | */ | 2017 | */ |
2018 | 2018 | ||
2019 | static int __devinit | 2019 | static int |
2020 | snd_es1968_mixer(struct es1968 *chip) | 2020 | snd_es1968_mixer(struct es1968 *chip) |
2021 | { | 2021 | { |
2022 | struct snd_ac97_bus *pbus; | 2022 | struct snd_ac97_bus *pbus; |
@@ -2465,7 +2465,7 @@ static SIMPLE_DEV_PM_OPS(es1968_pm, es1968_suspend, es1968_resume); | |||
2465 | 2465 | ||
2466 | #ifdef SUPPORT_JOYSTICK | 2466 | #ifdef SUPPORT_JOYSTICK |
2467 | #define JOYSTICK_ADDR 0x200 | 2467 | #define JOYSTICK_ADDR 0x200 |
2468 | static int __devinit snd_es1968_create_gameport(struct es1968 *chip, int dev) | 2468 | static int snd_es1968_create_gameport(struct es1968 *chip, int dev) |
2469 | { | 2469 | { |
2470 | struct gameport *gp; | 2470 | struct gameport *gp; |
2471 | struct resource *r; | 2471 | struct resource *r; |
@@ -2516,7 +2516,7 @@ static inline void snd_es1968_free_gameport(struct es1968 *chip) { } | |||
2516 | #endif | 2516 | #endif |
2517 | 2517 | ||
2518 | #ifdef CONFIG_SND_ES1968_INPUT | 2518 | #ifdef CONFIG_SND_ES1968_INPUT |
2519 | static int __devinit snd_es1968_input_register(struct es1968 *chip) | 2519 | static int snd_es1968_input_register(struct es1968 *chip) |
2520 | { | 2520 | { |
2521 | struct input_dev *input_dev; | 2521 | struct input_dev *input_dev; |
2522 | int err; | 2522 | int err; |
@@ -2653,7 +2653,7 @@ struct ess_device_list { | |||
2653 | unsigned short vendor; /* subsystem vendor id */ | 2653 | unsigned short vendor; /* subsystem vendor id */ |
2654 | }; | 2654 | }; |
2655 | 2655 | ||
2656 | static struct ess_device_list pm_whitelist[] __devinitdata = { | 2656 | static struct ess_device_list pm_whitelist[] = { |
2657 | { TYPE_MAESTRO2E, 0x0e11 }, /* Compaq Armada */ | 2657 | { TYPE_MAESTRO2E, 0x0e11 }, /* Compaq Armada */ |
2658 | { TYPE_MAESTRO2E, 0x1028 }, | 2658 | { TYPE_MAESTRO2E, 0x1028 }, |
2659 | { TYPE_MAESTRO2E, 0x103c }, | 2659 | { TYPE_MAESTRO2E, 0x103c }, |
@@ -2664,19 +2664,19 @@ static struct ess_device_list pm_whitelist[] __devinitdata = { | |||
2664 | { TYPE_MAESTRO2, 0x125d }, /* a PCI card, e.g. SF64-PCE2 */ | 2664 | { TYPE_MAESTRO2, 0x125d }, /* a PCI card, e.g. SF64-PCE2 */ |
2665 | }; | 2665 | }; |
2666 | 2666 | ||
2667 | static struct ess_device_list mpu_blacklist[] __devinitdata = { | 2667 | static struct ess_device_list mpu_blacklist[] = { |
2668 | { TYPE_MAESTRO2, 0x125d }, | 2668 | { TYPE_MAESTRO2, 0x125d }, |
2669 | }; | 2669 | }; |
2670 | 2670 | ||
2671 | static int __devinit snd_es1968_create(struct snd_card *card, | 2671 | static int snd_es1968_create(struct snd_card *card, |
2672 | struct pci_dev *pci, | 2672 | struct pci_dev *pci, |
2673 | int total_bufsize, | 2673 | int total_bufsize, |
2674 | int play_streams, | 2674 | int play_streams, |
2675 | int capt_streams, | 2675 | int capt_streams, |
2676 | int chip_type, | 2676 | int chip_type, |
2677 | int do_pm, | 2677 | int do_pm, |
2678 | int radio_nr, | 2678 | int radio_nr, |
2679 | struct es1968 **chip_ret) | 2679 | struct es1968 **chip_ret) |
2680 | { | 2680 | { |
2681 | static struct snd_device_ops ops = { | 2681 | static struct snd_device_ops ops = { |
2682 | .dev_free = snd_es1968_dev_free, | 2682 | .dev_free = snd_es1968_dev_free, |
@@ -2795,8 +2795,8 @@ static int __devinit snd_es1968_create(struct snd_card *card, | |||
2795 | 2795 | ||
2796 | /* | 2796 | /* |
2797 | */ | 2797 | */ |
2798 | static int __devinit snd_es1968_probe(struct pci_dev *pci, | 2798 | static int snd_es1968_probe(struct pci_dev *pci, |
2799 | const struct pci_device_id *pci_id) | 2799 | const struct pci_device_id *pci_id) |
2800 | { | 2800 | { |
2801 | static int dev; | 2801 | static int dev; |
2802 | struct snd_card *card; | 2802 | struct snd_card *card; |
@@ -2906,7 +2906,7 @@ static int __devinit snd_es1968_probe(struct pci_dev *pci, | |||
2906 | return 0; | 2906 | return 0; |
2907 | } | 2907 | } |
2908 | 2908 | ||
2909 | static void __devexit snd_es1968_remove(struct pci_dev *pci) | 2909 | static void snd_es1968_remove(struct pci_dev *pci) |
2910 | { | 2910 | { |
2911 | snd_card_free(pci_get_drvdata(pci)); | 2911 | snd_card_free(pci_get_drvdata(pci)); |
2912 | pci_set_drvdata(pci, NULL); | 2912 | pci_set_drvdata(pci, NULL); |
@@ -2916,7 +2916,7 @@ static struct pci_driver es1968_driver = { | |||
2916 | .name = KBUILD_MODNAME, | 2916 | .name = KBUILD_MODNAME, |
2917 | .id_table = snd_es1968_ids, | 2917 | .id_table = snd_es1968_ids, |
2918 | .probe = snd_es1968_probe, | 2918 | .probe = snd_es1968_probe, |
2919 | .remove = __devexit_p(snd_es1968_remove), | 2919 | .remove = snd_es1968_remove, |
2920 | .driver = { | 2920 | .driver = { |
2921 | .pm = ES1968_PM_OPS, | 2921 | .pm = ES1968_PM_OPS, |
2922 | }, | 2922 | }, |
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c index c5806f89be1e..4f07fda5adf2 100644 --- a/sound/pci/fm801.c +++ b/sound/pci/fm801.c | |||
@@ -689,7 +689,7 @@ static struct snd_pcm_ops snd_fm801_capture_ops = { | |||
689 | .pointer = snd_fm801_capture_pointer, | 689 | .pointer = snd_fm801_capture_pointer, |
690 | }; | 690 | }; |
691 | 691 | ||
692 | static int __devinit snd_fm801_pcm(struct fm801 *chip, int device, struct snd_pcm ** rpcm) | 692 | static int snd_fm801_pcm(struct fm801 *chip, int device, struct snd_pcm **rpcm) |
693 | { | 693 | { |
694 | struct snd_pcm *pcm; | 694 | struct snd_pcm *pcm; |
695 | int err; | 695 | int err; |
@@ -984,7 +984,7 @@ static const DECLARE_TLV_DB_SCALE(db_scale_dsp, -3450, 150, 0); | |||
984 | 984 | ||
985 | #define FM801_CONTROLS ARRAY_SIZE(snd_fm801_controls) | 985 | #define FM801_CONTROLS ARRAY_SIZE(snd_fm801_controls) |
986 | 986 | ||
987 | static struct snd_kcontrol_new snd_fm801_controls[] __devinitdata = { | 987 | static struct snd_kcontrol_new snd_fm801_controls[] = { |
988 | FM801_DOUBLE_TLV("Wave Playback Volume", FM801_PCM_VOL, 0, 8, 31, 1, | 988 | FM801_DOUBLE_TLV("Wave Playback Volume", FM801_PCM_VOL, 0, 8, 31, 1, |
989 | db_scale_dsp), | 989 | db_scale_dsp), |
990 | FM801_SINGLE("Wave Playback Switch", FM801_PCM_VOL, 15, 1, 1), | 990 | FM801_SINGLE("Wave Playback Switch", FM801_PCM_VOL, 15, 1, 1), |
@@ -1005,7 +1005,7 @@ FM801_SINGLE("FM Playback Switch", FM801_FM_VOL, 15, 1, 1), | |||
1005 | 1005 | ||
1006 | #define FM801_CONTROLS_MULTI ARRAY_SIZE(snd_fm801_controls_multi) | 1006 | #define FM801_CONTROLS_MULTI ARRAY_SIZE(snd_fm801_controls_multi) |
1007 | 1007 | ||
1008 | static struct snd_kcontrol_new snd_fm801_controls_multi[] __devinitdata = { | 1008 | static struct snd_kcontrol_new snd_fm801_controls_multi[] = { |
1009 | FM801_SINGLE("AC97 2ch->4ch Copy Switch", FM801_CODEC_CTRL, 7, 1, 0), | 1009 | FM801_SINGLE("AC97 2ch->4ch Copy Switch", FM801_CODEC_CTRL, 7, 1, 0), |
1010 | FM801_SINGLE("AC97 18-bit Switch", FM801_CODEC_CTRL, 10, 1, 0), | 1010 | FM801_SINGLE("AC97 18-bit Switch", FM801_CODEC_CTRL, 10, 1, 0), |
1011 | FM801_SINGLE(SNDRV_CTL_NAME_IEC958("",CAPTURE,SWITCH), FM801_I2S_MODE, 8, 1, 0), | 1011 | FM801_SINGLE(SNDRV_CTL_NAME_IEC958("",CAPTURE,SWITCH), FM801_I2S_MODE, 8, 1, 0), |
@@ -1030,7 +1030,7 @@ static void snd_fm801_mixer_free_ac97(struct snd_ac97 *ac97) | |||
1030 | } | 1030 | } |
1031 | } | 1031 | } |
1032 | 1032 | ||
1033 | static int __devinit snd_fm801_mixer(struct fm801 *chip) | 1033 | static int snd_fm801_mixer(struct fm801 *chip) |
1034 | { | 1034 | { |
1035 | struct snd_ac97_template ac97; | 1035 | struct snd_ac97_template ac97; |
1036 | unsigned int i; | 1036 | unsigned int i; |
@@ -1191,11 +1191,11 @@ static int snd_fm801_dev_free(struct snd_device *device) | |||
1191 | return snd_fm801_free(chip); | 1191 | return snd_fm801_free(chip); |
1192 | } | 1192 | } |
1193 | 1193 | ||
1194 | static int __devinit snd_fm801_create(struct snd_card *card, | 1194 | static int snd_fm801_create(struct snd_card *card, |
1195 | struct pci_dev * pci, | 1195 | struct pci_dev *pci, |
1196 | int tea575x_tuner, | 1196 | int tea575x_tuner, |
1197 | int radio_nr, | 1197 | int radio_nr, |
1198 | struct fm801 ** rchip) | 1198 | struct fm801 **rchip) |
1199 | { | 1199 | { |
1200 | struct fm801 *chip; | 1200 | struct fm801 *chip; |
1201 | int err; | 1201 | int err; |
@@ -1296,8 +1296,8 @@ static int __devinit snd_fm801_create(struct snd_card *card, | |||
1296 | return 0; | 1296 | return 0; |
1297 | } | 1297 | } |
1298 | 1298 | ||
1299 | static int __devinit snd_card_fm801_probe(struct pci_dev *pci, | 1299 | static int snd_card_fm801_probe(struct pci_dev *pci, |
1300 | const struct pci_device_id *pci_id) | 1300 | const struct pci_device_id *pci_id) |
1301 | { | 1301 | { |
1302 | static int dev; | 1302 | static int dev; |
1303 | struct snd_card *card; | 1303 | struct snd_card *card; |
@@ -1367,7 +1367,7 @@ static int __devinit snd_card_fm801_probe(struct pci_dev *pci, | |||
1367 | return 0; | 1367 | return 0; |
1368 | } | 1368 | } |
1369 | 1369 | ||
1370 | static void __devexit snd_card_fm801_remove(struct pci_dev *pci) | 1370 | static void snd_card_fm801_remove(struct pci_dev *pci) |
1371 | { | 1371 | { |
1372 | snd_card_free(pci_get_drvdata(pci)); | 1372 | snd_card_free(pci_get_drvdata(pci)); |
1373 | pci_set_drvdata(pci, NULL); | 1373 | pci_set_drvdata(pci, NULL); |
@@ -1439,7 +1439,7 @@ static struct pci_driver fm801_driver = { | |||
1439 | .name = KBUILD_MODNAME, | 1439 | .name = KBUILD_MODNAME, |
1440 | .id_table = snd_fm801_ids, | 1440 | .id_table = snd_fm801_ids, |
1441 | .probe = snd_card_fm801_probe, | 1441 | .probe = snd_card_fm801_probe, |
1442 | .remove = __devexit_p(snd_card_fm801_remove), | 1442 | .remove = snd_card_fm801_remove, |
1443 | .driver = { | 1443 | .driver = { |
1444 | .pm = SND_FM801_PM_OPS, | 1444 | .pm = SND_FM801_PM_OPS, |
1445 | }, | 1445 | }, |
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index eb481090d372..335685e0e4ea 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -607,8 +607,8 @@ enum { | |||
607 | #define DELAYED_INIT_MARK | 607 | #define DELAYED_INIT_MARK |
608 | #define DELAYED_INITDATA_MARK | 608 | #define DELAYED_INITDATA_MARK |
609 | #else | 609 | #else |
610 | #define DELAYED_INIT_MARK __devinit | 610 | #define DELAYED_INIT_MARK |
611 | #define DELAYED_INITDATA_MARK __devinitdata | 611 | #define DELAYED_INITDATA_MARK |
612 | #endif | 612 | #endif |
613 | 613 | ||
614 | static char *driver_short_names[] DELAYED_INITDATA_MARK = { | 614 | static char *driver_short_names[] DELAYED_INITDATA_MARK = { |
@@ -1717,7 +1717,7 @@ static int DELAYED_INIT_MARK azx_codec_create(struct azx *chip, const char *mode | |||
1717 | } | 1717 | } |
1718 | 1718 | ||
1719 | /* configure each codec instance */ | 1719 | /* configure each codec instance */ |
1720 | static int __devinit azx_codec_configure(struct azx *chip) | 1720 | static int azx_codec_configure(struct azx *chip) |
1721 | { | 1721 | { |
1722 | struct hda_codec *codec; | 1722 | struct hda_codec *codec; |
1723 | list_for_each_entry(codec, &chip->bus->codec_list, list) { | 1723 | list_for_each_entry(codec, &chip->bus->codec_list, list) { |
@@ -2489,7 +2489,7 @@ azx_attach_pcm_stream(struct hda_bus *bus, struct hda_codec *codec, | |||
2489 | /* | 2489 | /* |
2490 | * mixer creation - all stuff is implemented in hda module | 2490 | * mixer creation - all stuff is implemented in hda module |
2491 | */ | 2491 | */ |
2492 | static int __devinit azx_mixer_create(struct azx *chip) | 2492 | static int azx_mixer_create(struct azx *chip) |
2493 | { | 2493 | { |
2494 | return snd_hda_build_controls(chip->bus); | 2494 | return snd_hda_build_controls(chip->bus); |
2495 | } | 2495 | } |
@@ -2498,7 +2498,7 @@ static int __devinit azx_mixer_create(struct azx *chip) | |||
2498 | /* | 2498 | /* |
2499 | * initialize SD streams | 2499 | * initialize SD streams |
2500 | */ | 2500 | */ |
2501 | static int __devinit azx_init_stream(struct azx *chip) | 2501 | static int azx_init_stream(struct azx *chip) |
2502 | { | 2502 | { |
2503 | int i; | 2503 | int i; |
2504 | 2504 | ||
@@ -2740,7 +2740,7 @@ static int DELAYED_INIT_MARK azx_first_init(struct azx *chip); | |||
2740 | static int DELAYED_INIT_MARK azx_probe_continue(struct azx *chip); | 2740 | static int DELAYED_INIT_MARK azx_probe_continue(struct azx *chip); |
2741 | 2741 | ||
2742 | #ifdef SUPPORT_VGA_SWITCHEROO | 2742 | #ifdef SUPPORT_VGA_SWITCHEROO |
2743 | static struct pci_dev __devinit *get_bound_vga(struct pci_dev *pci); | 2743 | static struct pci_dev *get_bound_vga(struct pci_dev *pci); |
2744 | 2744 | ||
2745 | static void azx_vs_set_state(struct pci_dev *pci, | 2745 | static void azx_vs_set_state(struct pci_dev *pci, |
2746 | enum vga_switcheroo_state state) | 2746 | enum vga_switcheroo_state state) |
@@ -2805,7 +2805,7 @@ static bool azx_vs_can_switch(struct pci_dev *pci) | |||
2805 | return true; | 2805 | return true; |
2806 | } | 2806 | } |
2807 | 2807 | ||
2808 | static void __devinit init_vga_switcheroo(struct azx *chip) | 2808 | static void init_vga_switcheroo(struct azx *chip) |
2809 | { | 2809 | { |
2810 | struct pci_dev *p = get_bound_vga(chip->pci); | 2810 | struct pci_dev *p = get_bound_vga(chip->pci); |
2811 | if (p) { | 2811 | if (p) { |
@@ -2822,7 +2822,7 @@ static const struct vga_switcheroo_client_ops azx_vs_ops = { | |||
2822 | .can_switch = azx_vs_can_switch, | 2822 | .can_switch = azx_vs_can_switch, |
2823 | }; | 2823 | }; |
2824 | 2824 | ||
2825 | static int __devinit register_vga_switcheroo(struct azx *chip) | 2825 | static int register_vga_switcheroo(struct azx *chip) |
2826 | { | 2826 | { |
2827 | int err; | 2827 | int err; |
2828 | 2828 | ||
@@ -2917,7 +2917,7 @@ static int azx_dev_free(struct snd_device *device) | |||
2917 | /* | 2917 | /* |
2918 | * Check of disabled HDMI controller by vga-switcheroo | 2918 | * Check of disabled HDMI controller by vga-switcheroo |
2919 | */ | 2919 | */ |
2920 | static struct pci_dev __devinit *get_bound_vga(struct pci_dev *pci) | 2920 | static struct pci_dev *get_bound_vga(struct pci_dev *pci) |
2921 | { | 2921 | { |
2922 | struct pci_dev *p; | 2922 | struct pci_dev *p; |
2923 | 2923 | ||
@@ -2940,7 +2940,7 @@ static struct pci_dev __devinit *get_bound_vga(struct pci_dev *pci) | |||
2940 | return NULL; | 2940 | return NULL; |
2941 | } | 2941 | } |
2942 | 2942 | ||
2943 | static bool __devinit check_hdmi_disabled(struct pci_dev *pci) | 2943 | static bool check_hdmi_disabled(struct pci_dev *pci) |
2944 | { | 2944 | { |
2945 | bool vga_inactive = false; | 2945 | bool vga_inactive = false; |
2946 | struct pci_dev *p = get_bound_vga(pci); | 2946 | struct pci_dev *p = get_bound_vga(pci); |
@@ -2957,7 +2957,7 @@ static bool __devinit check_hdmi_disabled(struct pci_dev *pci) | |||
2957 | /* | 2957 | /* |
2958 | * white/black-listing for position_fix | 2958 | * white/black-listing for position_fix |
2959 | */ | 2959 | */ |
2960 | static struct snd_pci_quirk position_fix_list[] __devinitdata = { | 2960 | static struct snd_pci_quirk position_fix_list[] = { |
2961 | SND_PCI_QUIRK(0x1028, 0x01cc, "Dell D820", POS_FIX_LPIB), | 2961 | SND_PCI_QUIRK(0x1028, 0x01cc, "Dell D820", POS_FIX_LPIB), |
2962 | SND_PCI_QUIRK(0x1028, 0x01de, "Dell Precision 390", POS_FIX_LPIB), | 2962 | SND_PCI_QUIRK(0x1028, 0x01de, "Dell Precision 390", POS_FIX_LPIB), |
2963 | SND_PCI_QUIRK(0x103c, 0x306d, "HP dv3", POS_FIX_LPIB), | 2963 | SND_PCI_QUIRK(0x103c, 0x306d, "HP dv3", POS_FIX_LPIB), |
@@ -2975,7 +2975,7 @@ static struct snd_pci_quirk position_fix_list[] __devinitdata = { | |||
2975 | {} | 2975 | {} |
2976 | }; | 2976 | }; |
2977 | 2977 | ||
2978 | static int __devinit check_position_fix(struct azx *chip, int fix) | 2978 | static int check_position_fix(struct azx *chip, int fix) |
2979 | { | 2979 | { |
2980 | const struct snd_pci_quirk *q; | 2980 | const struct snd_pci_quirk *q; |
2981 | 2981 | ||
@@ -3012,7 +3012,7 @@ static int __devinit check_position_fix(struct azx *chip, int fix) | |||
3012 | /* | 3012 | /* |
3013 | * black-lists for probe_mask | 3013 | * black-lists for probe_mask |
3014 | */ | 3014 | */ |
3015 | static struct snd_pci_quirk probe_mask_list[] __devinitdata = { | 3015 | static struct snd_pci_quirk probe_mask_list[] = { |
3016 | /* Thinkpad often breaks the controller communication when accessing | 3016 | /* Thinkpad often breaks the controller communication when accessing |
3017 | * to the non-working (or non-existing) modem codec slot. | 3017 | * to the non-working (or non-existing) modem codec slot. |
3018 | */ | 3018 | */ |
@@ -3033,7 +3033,7 @@ static struct snd_pci_quirk probe_mask_list[] __devinitdata = { | |||
3033 | 3033 | ||
3034 | #define AZX_FORCE_CODEC_MASK 0x100 | 3034 | #define AZX_FORCE_CODEC_MASK 0x100 |
3035 | 3035 | ||
3036 | static void __devinit check_probe_mask(struct azx *chip, int dev) | 3036 | static void check_probe_mask(struct azx *chip, int dev) |
3037 | { | 3037 | { |
3038 | const struct snd_pci_quirk *q; | 3038 | const struct snd_pci_quirk *q; |
3039 | 3039 | ||
@@ -3061,7 +3061,7 @@ static void __devinit check_probe_mask(struct azx *chip, int dev) | |||
3061 | /* | 3061 | /* |
3062 | * white/black-list for enable_msi | 3062 | * white/black-list for enable_msi |
3063 | */ | 3063 | */ |
3064 | static struct snd_pci_quirk msi_black_list[] __devinitdata = { | 3064 | static struct snd_pci_quirk msi_black_list[] = { |
3065 | SND_PCI_QUIRK(0x1043, 0x81f2, "ASUS", 0), /* Athlon64 X2 + nvidia */ | 3065 | SND_PCI_QUIRK(0x1043, 0x81f2, "ASUS", 0), /* Athlon64 X2 + nvidia */ |
3066 | SND_PCI_QUIRK(0x1043, 0x81f6, "ASUS", 0), /* nvidia */ | 3066 | SND_PCI_QUIRK(0x1043, 0x81f6, "ASUS", 0), /* nvidia */ |
3067 | SND_PCI_QUIRK(0x1043, 0x822d, "ASUS", 0), /* Athlon64 X2 + nvidia MCP55 */ | 3067 | SND_PCI_QUIRK(0x1043, 0x822d, "ASUS", 0), /* Athlon64 X2 + nvidia MCP55 */ |
@@ -3070,7 +3070,7 @@ static struct snd_pci_quirk msi_black_list[] __devinitdata = { | |||
3070 | {} | 3070 | {} |
3071 | }; | 3071 | }; |
3072 | 3072 | ||
3073 | static void __devinit check_msi(struct azx *chip) | 3073 | static void check_msi(struct azx *chip) |
3074 | { | 3074 | { |
3075 | const struct snd_pci_quirk *q; | 3075 | const struct snd_pci_quirk *q; |
3076 | 3076 | ||
@@ -3096,7 +3096,7 @@ static void __devinit check_msi(struct azx *chip) | |||
3096 | } | 3096 | } |
3097 | 3097 | ||
3098 | /* check the snoop mode availability */ | 3098 | /* check the snoop mode availability */ |
3099 | static void __devinit azx_check_snoop_available(struct azx *chip) | 3099 | static void azx_check_snoop_available(struct azx *chip) |
3100 | { | 3100 | { |
3101 | bool snoop = chip->snoop; | 3101 | bool snoop = chip->snoop; |
3102 | 3102 | ||
@@ -3128,9 +3128,9 @@ static void __devinit azx_check_snoop_available(struct azx *chip) | |||
3128 | /* | 3128 | /* |
3129 | * constructor | 3129 | * constructor |
3130 | */ | 3130 | */ |
3131 | static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci, | 3131 | static int azx_create(struct snd_card *card, struct pci_dev *pci, |
3132 | int dev, unsigned int driver_caps, | 3132 | int dev, unsigned int driver_caps, |
3133 | struct azx **rchip) | 3133 | struct azx **rchip) |
3134 | { | 3134 | { |
3135 | static struct snd_device_ops ops = { | 3135 | static struct snd_device_ops ops = { |
3136 | .dev_free = azx_dev_free, | 3136 | .dev_free = azx_dev_free, |
@@ -3410,8 +3410,8 @@ static void azx_firmware_cb(const struct firmware *fw, void *context) | |||
3410 | } | 3410 | } |
3411 | #endif | 3411 | #endif |
3412 | 3412 | ||
3413 | static int __devinit azx_probe(struct pci_dev *pci, | 3413 | static int azx_probe(struct pci_dev *pci, |
3414 | const struct pci_device_id *pci_id) | 3414 | const struct pci_device_id *pci_id) |
3415 | { | 3415 | { |
3416 | static int dev; | 3416 | static int dev; |
3417 | struct snd_card *card; | 3417 | struct snd_card *card; |
@@ -3551,7 +3551,7 @@ out_free: | |||
3551 | return err; | 3551 | return err; |
3552 | } | 3552 | } |
3553 | 3553 | ||
3554 | static void __devexit azx_remove(struct pci_dev *pci) | 3554 | static void azx_remove(struct pci_dev *pci) |
3555 | { | 3555 | { |
3556 | struct snd_card *card = pci_get_drvdata(pci); | 3556 | struct snd_card *card = pci_get_drvdata(pci); |
3557 | 3557 | ||
@@ -3738,7 +3738,7 @@ static struct pci_driver azx_driver = { | |||
3738 | .name = KBUILD_MODNAME, | 3738 | .name = KBUILD_MODNAME, |
3739 | .id_table = azx_ids, | 3739 | .id_table = azx_ids, |
3740 | .probe = azx_probe, | 3740 | .probe = azx_probe, |
3741 | .remove = __devexit_p(azx_remove), | 3741 | .remove = azx_remove, |
3742 | .driver = { | 3742 | .driver = { |
3743 | .pm = AZX_PM_OPS, | 3743 | .pm = AZX_PM_OPS, |
3744 | }, | 3744 | }, |
diff --git a/sound/pci/ice1712/amp.c b/sound/pci/ice1712/amp.c index d9bd27b25100..2f9b93467867 100644 --- a/sound/pci/ice1712/amp.c +++ b/sound/pci/ice1712/amp.c | |||
@@ -37,7 +37,7 @@ static void wm_put(struct snd_ice1712 *ice, int reg, unsigned short val) | |||
37 | snd_vt1724_write_i2c(ice, WM_DEV, cval >> 8, cval & 0xff); | 37 | snd_vt1724_write_i2c(ice, WM_DEV, cval >> 8, cval & 0xff); |
38 | } | 38 | } |
39 | 39 | ||
40 | static int __devinit snd_vt1724_amp_init(struct snd_ice1712 *ice) | 40 | static int snd_vt1724_amp_init(struct snd_ice1712 *ice) |
41 | { | 41 | { |
42 | static const unsigned short wm_inits[] = { | 42 | static const unsigned short wm_inits[] = { |
43 | WM_ATTEN_L, 0x0000, /* 0 db */ | 43 | WM_ATTEN_L, 0x0000, /* 0 db */ |
@@ -65,7 +65,7 @@ static int __devinit snd_vt1724_amp_init(struct snd_ice1712 *ice) | |||
65 | return 0; | 65 | return 0; |
66 | } | 66 | } |
67 | 67 | ||
68 | static int __devinit snd_vt1724_amp_add_controls(struct snd_ice1712 *ice) | 68 | static int snd_vt1724_amp_add_controls(struct snd_ice1712 *ice) |
69 | { | 69 | { |
70 | if (ice->ac97) | 70 | if (ice->ac97) |
71 | /* we use pins 39 and 41 of the VT1616 for left and right | 71 | /* we use pins 39 and 41 of the VT1616 for left and right |
@@ -77,7 +77,7 @@ static int __devinit snd_vt1724_amp_add_controls(struct snd_ice1712 *ice) | |||
77 | 77 | ||
78 | 78 | ||
79 | /* entry point */ | 79 | /* entry point */ |
80 | struct snd_ice1712_card_info snd_vt1724_amp_cards[] __devinitdata = { | 80 | struct snd_ice1712_card_info snd_vt1724_amp_cards[] = { |
81 | { | 81 | { |
82 | .subvendor = VT1724_SUBDEVICE_AV710, | 82 | .subvendor = VT1724_SUBDEVICE_AV710, |
83 | .name = "Chaintech AV-710", | 83 | .name = "Chaintech AV-710", |
diff --git a/sound/pci/ice1712/aureon.c b/sound/pci/ice1712/aureon.c index ce9941c5e988..55902ec40344 100644 --- a/sound/pci/ice1712/aureon.c +++ b/sound/pci/ice1712/aureon.c | |||
@@ -1433,7 +1433,7 @@ static int aureon_oversampling_put(struct snd_kcontrol *kcontrol, struct snd_ctl | |||
1433 | * mixers | 1433 | * mixers |
1434 | */ | 1434 | */ |
1435 | 1435 | ||
1436 | static struct snd_kcontrol_new aureon_dac_controls[] __devinitdata = { | 1436 | static struct snd_kcontrol_new aureon_dac_controls[] = { |
1437 | { | 1437 | { |
1438 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1438 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1439 | .name = "Master Playback Switch", | 1439 | .name = "Master Playback Switch", |
@@ -1548,7 +1548,7 @@ static struct snd_kcontrol_new aureon_dac_controls[] __devinitdata = { | |||
1548 | } | 1548 | } |
1549 | }; | 1549 | }; |
1550 | 1550 | ||
1551 | static struct snd_kcontrol_new wm_controls[] __devinitdata = { | 1551 | static struct snd_kcontrol_new wm_controls[] = { |
1552 | { | 1552 | { |
1553 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1553 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1554 | .name = "PCM Playback Switch", | 1554 | .name = "PCM Playback Switch", |
@@ -1614,7 +1614,7 @@ static struct snd_kcontrol_new wm_controls[] __devinitdata = { | |||
1614 | } | 1614 | } |
1615 | }; | 1615 | }; |
1616 | 1616 | ||
1617 | static struct snd_kcontrol_new ac97_controls[] __devinitdata = { | 1617 | static struct snd_kcontrol_new ac97_controls[] = { |
1618 | { | 1618 | { |
1619 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1619 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1620 | .name = "AC97 Playback Switch", | 1620 | .name = "AC97 Playback Switch", |
@@ -1719,7 +1719,7 @@ static struct snd_kcontrol_new ac97_controls[] __devinitdata = { | |||
1719 | } | 1719 | } |
1720 | }; | 1720 | }; |
1721 | 1721 | ||
1722 | static struct snd_kcontrol_new universe_ac97_controls[] __devinitdata = { | 1722 | static struct snd_kcontrol_new universe_ac97_controls[] = { |
1723 | { | 1723 | { |
1724 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1724 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1725 | .name = "AC97 Playback Switch", | 1725 | .name = "AC97 Playback Switch", |
@@ -1851,7 +1851,7 @@ static struct snd_kcontrol_new universe_ac97_controls[] __devinitdata = { | |||
1851 | 1851 | ||
1852 | }; | 1852 | }; |
1853 | 1853 | ||
1854 | static struct snd_kcontrol_new cs8415_controls[] __devinitdata = { | 1854 | static struct snd_kcontrol_new cs8415_controls[] = { |
1855 | { | 1855 | { |
1856 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1856 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1857 | .name = SNDRV_CTL_NAME_IEC958("", CAPTURE, SWITCH), | 1857 | .name = SNDRV_CTL_NAME_IEC958("", CAPTURE, SWITCH), |
@@ -1896,7 +1896,7 @@ static struct snd_kcontrol_new cs8415_controls[] __devinitdata = { | |||
1896 | } | 1896 | } |
1897 | }; | 1897 | }; |
1898 | 1898 | ||
1899 | static int __devinit aureon_add_controls(struct snd_ice1712 *ice) | 1899 | static int aureon_add_controls(struct snd_ice1712 *ice) |
1900 | { | 1900 | { |
1901 | unsigned int i, counts; | 1901 | unsigned int i, counts; |
1902 | int err; | 1902 | int err; |
@@ -2124,7 +2124,7 @@ static int aureon_resume(struct snd_ice1712 *ice) | |||
2124 | /* | 2124 | /* |
2125 | * initialize the chip | 2125 | * initialize the chip |
2126 | */ | 2126 | */ |
2127 | static int __devinit aureon_init(struct snd_ice1712 *ice) | 2127 | static int aureon_init(struct snd_ice1712 *ice) |
2128 | { | 2128 | { |
2129 | struct aureon_spec *spec; | 2129 | struct aureon_spec *spec; |
2130 | int i, err; | 2130 | int i, err; |
@@ -2174,7 +2174,7 @@ static int __devinit aureon_init(struct snd_ice1712 *ice) | |||
2174 | * hence the driver needs to sets up it properly. | 2174 | * hence the driver needs to sets up it properly. |
2175 | */ | 2175 | */ |
2176 | 2176 | ||
2177 | static unsigned char aureon51_eeprom[] __devinitdata = { | 2177 | static unsigned char aureon51_eeprom[] = { |
2178 | [ICE_EEP2_SYSCONF] = 0x0a, /* clock 512, spdif-in/ADC, 3DACs */ | 2178 | [ICE_EEP2_SYSCONF] = 0x0a, /* clock 512, spdif-in/ADC, 3DACs */ |
2179 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 2179 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
2180 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ | 2180 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ |
@@ -2190,7 +2190,7 @@ static unsigned char aureon51_eeprom[] __devinitdata = { | |||
2190 | [ICE_EEP2_GPIO_STATE2] = 0x00, | 2190 | [ICE_EEP2_GPIO_STATE2] = 0x00, |
2191 | }; | 2191 | }; |
2192 | 2192 | ||
2193 | static unsigned char aureon71_eeprom[] __devinitdata = { | 2193 | static unsigned char aureon71_eeprom[] = { |
2194 | [ICE_EEP2_SYSCONF] = 0x0b, /* clock 512, spdif-in/ADC, 4DACs */ | 2194 | [ICE_EEP2_SYSCONF] = 0x0b, /* clock 512, spdif-in/ADC, 4DACs */ |
2195 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 2195 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
2196 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ | 2196 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ |
@@ -2207,7 +2207,7 @@ static unsigned char aureon71_eeprom[] __devinitdata = { | |||
2207 | }; | 2207 | }; |
2208 | #define prodigy71_eeprom aureon71_eeprom | 2208 | #define prodigy71_eeprom aureon71_eeprom |
2209 | 2209 | ||
2210 | static unsigned char aureon71_universe_eeprom[] __devinitdata = { | 2210 | static unsigned char aureon71_universe_eeprom[] = { |
2211 | [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401, spdif-in/ADC, | 2211 | [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401, spdif-in/ADC, |
2212 | * 4DACs | 2212 | * 4DACs |
2213 | */ | 2213 | */ |
@@ -2225,7 +2225,7 @@ static unsigned char aureon71_universe_eeprom[] __devinitdata = { | |||
2225 | [ICE_EEP2_GPIO_STATE2] = 0x00, | 2225 | [ICE_EEP2_GPIO_STATE2] = 0x00, |
2226 | }; | 2226 | }; |
2227 | 2227 | ||
2228 | static unsigned char prodigy71lt_eeprom[] __devinitdata = { | 2228 | static unsigned char prodigy71lt_eeprom[] = { |
2229 | [ICE_EEP2_SYSCONF] = 0x4b, /* clock 384, spdif-in/ADC, 4DACs */ | 2229 | [ICE_EEP2_SYSCONF] = 0x4b, /* clock 384, spdif-in/ADC, 4DACs */ |
2230 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 2230 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
2231 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ | 2231 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ |
@@ -2243,7 +2243,7 @@ static unsigned char prodigy71lt_eeprom[] __devinitdata = { | |||
2243 | #define prodigy71xt_eeprom prodigy71lt_eeprom | 2243 | #define prodigy71xt_eeprom prodigy71lt_eeprom |
2244 | 2244 | ||
2245 | /* entry point */ | 2245 | /* entry point */ |
2246 | struct snd_ice1712_card_info snd_vt1724_aureon_cards[] __devinitdata = { | 2246 | struct snd_ice1712_card_info snd_vt1724_aureon_cards[] = { |
2247 | { | 2247 | { |
2248 | .subvendor = VT1724_SUBDEVICE_AUREON51_SKY, | 2248 | .subvendor = VT1724_SUBDEVICE_AUREON51_SKY, |
2249 | .name = "Terratec Aureon 5.1-Sky", | 2249 | .name = "Terratec Aureon 5.1-Sky", |
diff --git a/sound/pci/ice1712/delta.c b/sound/pci/ice1712/delta.c index bbef99bf77df..ab2bca164d6f 100644 --- a/sound/pci/ice1712/delta.c +++ b/sound/pci/ice1712/delta.c | |||
@@ -431,7 +431,7 @@ static int snd_ice1712_delta1010lt_wordclock_status_get(struct snd_kcontrol *kco | |||
431 | return 0; | 431 | return 0; |
432 | } | 432 | } |
433 | 433 | ||
434 | static struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_status __devinitdata = | 434 | static struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_status = |
435 | { | 435 | { |
436 | .access = (SNDRV_CTL_ELEM_ACCESS_READ), | 436 | .access = (SNDRV_CTL_ELEM_ACCESS_READ), |
437 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 437 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
@@ -444,7 +444,7 @@ static struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_status __devini | |||
444 | * initialize the chips on M-Audio cards | 444 | * initialize the chips on M-Audio cards |
445 | */ | 445 | */ |
446 | 446 | ||
447 | static struct snd_akm4xxx akm_audiophile __devinitdata = { | 447 | static struct snd_akm4xxx akm_audiophile = { |
448 | .type = SND_AK4528, | 448 | .type = SND_AK4528, |
449 | .num_adcs = 2, | 449 | .num_adcs = 2, |
450 | .num_dacs = 2, | 450 | .num_dacs = 2, |
@@ -453,7 +453,7 @@ static struct snd_akm4xxx akm_audiophile __devinitdata = { | |||
453 | } | 453 | } |
454 | }; | 454 | }; |
455 | 455 | ||
456 | static struct snd_ak4xxx_private akm_audiophile_priv __devinitdata = { | 456 | static struct snd_ak4xxx_private akm_audiophile_priv = { |
457 | .caddr = 2, | 457 | .caddr = 2, |
458 | .cif = 0, | 458 | .cif = 0, |
459 | .data_mask = ICE1712_DELTA_AP_DOUT, | 459 | .data_mask = ICE1712_DELTA_AP_DOUT, |
@@ -465,7 +465,7 @@ static struct snd_ak4xxx_private akm_audiophile_priv __devinitdata = { | |||
465 | .mask_flags = 0, | 465 | .mask_flags = 0, |
466 | }; | 466 | }; |
467 | 467 | ||
468 | static struct snd_akm4xxx akm_delta410 __devinitdata = { | 468 | static struct snd_akm4xxx akm_delta410 = { |
469 | .type = SND_AK4529, | 469 | .type = SND_AK4529, |
470 | .num_adcs = 2, | 470 | .num_adcs = 2, |
471 | .num_dacs = 8, | 471 | .num_dacs = 8, |
@@ -474,7 +474,7 @@ static struct snd_akm4xxx akm_delta410 __devinitdata = { | |||
474 | } | 474 | } |
475 | }; | 475 | }; |
476 | 476 | ||
477 | static struct snd_ak4xxx_private akm_delta410_priv __devinitdata = { | 477 | static struct snd_ak4xxx_private akm_delta410_priv = { |
478 | .caddr = 0, | 478 | .caddr = 0, |
479 | .cif = 0, | 479 | .cif = 0, |
480 | .data_mask = ICE1712_DELTA_AP_DOUT, | 480 | .data_mask = ICE1712_DELTA_AP_DOUT, |
@@ -486,7 +486,7 @@ static struct snd_ak4xxx_private akm_delta410_priv __devinitdata = { | |||
486 | .mask_flags = 0, | 486 | .mask_flags = 0, |
487 | }; | 487 | }; |
488 | 488 | ||
489 | static struct snd_akm4xxx akm_delta1010lt __devinitdata = { | 489 | static struct snd_akm4xxx akm_delta1010lt = { |
490 | .type = SND_AK4524, | 490 | .type = SND_AK4524, |
491 | .num_adcs = 8, | 491 | .num_adcs = 8, |
492 | .num_dacs = 8, | 492 | .num_dacs = 8, |
@@ -496,7 +496,7 @@ static struct snd_akm4xxx akm_delta1010lt __devinitdata = { | |||
496 | } | 496 | } |
497 | }; | 497 | }; |
498 | 498 | ||
499 | static struct snd_ak4xxx_private akm_delta1010lt_priv __devinitdata = { | 499 | static struct snd_ak4xxx_private akm_delta1010lt_priv = { |
500 | .caddr = 2, | 500 | .caddr = 2, |
501 | .cif = 0, /* the default level of the CIF pin from AK4524 */ | 501 | .cif = 0, /* the default level of the CIF pin from AK4524 */ |
502 | .data_mask = ICE1712_DELTA_1010LT_DOUT, | 502 | .data_mask = ICE1712_DELTA_1010LT_DOUT, |
@@ -508,7 +508,7 @@ static struct snd_ak4xxx_private akm_delta1010lt_priv __devinitdata = { | |||
508 | .mask_flags = 0, | 508 | .mask_flags = 0, |
509 | }; | 509 | }; |
510 | 510 | ||
511 | static struct snd_akm4xxx akm_delta66e __devinitdata = { | 511 | static struct snd_akm4xxx akm_delta66e = { |
512 | .type = SND_AK4524, | 512 | .type = SND_AK4524, |
513 | .num_adcs = 4, | 513 | .num_adcs = 4, |
514 | .num_dacs = 4, | 514 | .num_dacs = 4, |
@@ -518,7 +518,7 @@ static struct snd_akm4xxx akm_delta66e __devinitdata = { | |||
518 | } | 518 | } |
519 | }; | 519 | }; |
520 | 520 | ||
521 | static struct snd_ak4xxx_private akm_delta66e_priv __devinitdata = { | 521 | static struct snd_ak4xxx_private akm_delta66e_priv = { |
522 | .caddr = 2, | 522 | .caddr = 2, |
523 | .cif = 0, /* the default level of the CIF pin from AK4524 */ | 523 | .cif = 0, /* the default level of the CIF pin from AK4524 */ |
524 | .data_mask = ICE1712_DELTA_66E_DOUT, | 524 | .data_mask = ICE1712_DELTA_66E_DOUT, |
@@ -531,7 +531,7 @@ static struct snd_ak4xxx_private akm_delta66e_priv __devinitdata = { | |||
531 | }; | 531 | }; |
532 | 532 | ||
533 | 533 | ||
534 | static struct snd_akm4xxx akm_delta44 __devinitdata = { | 534 | static struct snd_akm4xxx akm_delta44 = { |
535 | .type = SND_AK4524, | 535 | .type = SND_AK4524, |
536 | .num_adcs = 4, | 536 | .num_adcs = 4, |
537 | .num_dacs = 4, | 537 | .num_dacs = 4, |
@@ -541,7 +541,7 @@ static struct snd_akm4xxx akm_delta44 __devinitdata = { | |||
541 | } | 541 | } |
542 | }; | 542 | }; |
543 | 543 | ||
544 | static struct snd_ak4xxx_private akm_delta44_priv __devinitdata = { | 544 | static struct snd_ak4xxx_private akm_delta44_priv = { |
545 | .caddr = 2, | 545 | .caddr = 2, |
546 | .cif = 0, /* the default level of the CIF pin from AK4524 */ | 546 | .cif = 0, /* the default level of the CIF pin from AK4524 */ |
547 | .data_mask = ICE1712_DELTA_CODEC_SERIAL_DATA, | 547 | .data_mask = ICE1712_DELTA_CODEC_SERIAL_DATA, |
@@ -553,7 +553,7 @@ static struct snd_ak4xxx_private akm_delta44_priv __devinitdata = { | |||
553 | .mask_flags = 0, | 553 | .mask_flags = 0, |
554 | }; | 554 | }; |
555 | 555 | ||
556 | static struct snd_akm4xxx akm_vx442 __devinitdata = { | 556 | static struct snd_akm4xxx akm_vx442 = { |
557 | .type = SND_AK4524, | 557 | .type = SND_AK4524, |
558 | .num_adcs = 4, | 558 | .num_adcs = 4, |
559 | .num_dacs = 4, | 559 | .num_dacs = 4, |
@@ -563,7 +563,7 @@ static struct snd_akm4xxx akm_vx442 __devinitdata = { | |||
563 | } | 563 | } |
564 | }; | 564 | }; |
565 | 565 | ||
566 | static struct snd_ak4xxx_private akm_vx442_priv __devinitdata = { | 566 | static struct snd_ak4xxx_private akm_vx442_priv = { |
567 | .caddr = 2, | 567 | .caddr = 2, |
568 | .cif = 0, | 568 | .cif = 0, |
569 | .data_mask = ICE1712_VX442_DOUT, | 569 | .data_mask = ICE1712_VX442_DOUT, |
@@ -575,7 +575,7 @@ static struct snd_ak4xxx_private akm_vx442_priv __devinitdata = { | |||
575 | .mask_flags = 0, | 575 | .mask_flags = 0, |
576 | }; | 576 | }; |
577 | 577 | ||
578 | static int __devinit snd_ice1712_delta_init(struct snd_ice1712 *ice) | 578 | static int snd_ice1712_delta_init(struct snd_ice1712 *ice) |
579 | { | 579 | { |
580 | int err; | 580 | int err; |
581 | struct snd_akm4xxx *ak; | 581 | struct snd_akm4xxx *ak; |
@@ -713,19 +713,19 @@ static int __devinit snd_ice1712_delta_init(struct snd_ice1712 *ice) | |||
713 | * additional controls for M-Audio cards | 713 | * additional controls for M-Audio cards |
714 | */ | 714 | */ |
715 | 715 | ||
716 | static struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_select __devinitdata = | 716 | static struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_select = |
717 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Sync", 0, ICE1712_DELTA_WORD_CLOCK_SELECT, 1, 0); | 717 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Sync", 0, ICE1712_DELTA_WORD_CLOCK_SELECT, 1, 0); |
718 | static struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_select __devinitdata = | 718 | static struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_select = |
719 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Sync", 0, ICE1712_DELTA_1010LT_WORDCLOCK, 0, 0); | 719 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Sync", 0, ICE1712_DELTA_1010LT_WORDCLOCK, 0, 0); |
720 | static struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_status __devinitdata = | 720 | static struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_status = |
721 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Status", 0, ICE1712_DELTA_WORD_CLOCK_STATUS, 1, SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE); | 721 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Status", 0, ICE1712_DELTA_WORD_CLOCK_STATUS, 1, SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE); |
722 | static struct snd_kcontrol_new snd_ice1712_deltadio2496_spdif_in_select __devinitdata = | 722 | static struct snd_kcontrol_new snd_ice1712_deltadio2496_spdif_in_select = |
723 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "IEC958 Input Optical", 0, ICE1712_DELTA_SPDIF_INPUT_SELECT, 0, 0); | 723 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "IEC958 Input Optical", 0, ICE1712_DELTA_SPDIF_INPUT_SELECT, 0, 0); |
724 | static struct snd_kcontrol_new snd_ice1712_delta_spdif_in_status __devinitdata = | 724 | static struct snd_kcontrol_new snd_ice1712_delta_spdif_in_status = |
725 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Delta IEC958 Input Status", 0, ICE1712_DELTA_SPDIF_IN_STAT, 1, SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE); | 725 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Delta IEC958 Input Status", 0, ICE1712_DELTA_SPDIF_IN_STAT, 1, SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE); |
726 | 726 | ||
727 | 727 | ||
728 | static int __devinit snd_ice1712_delta_add_controls(struct snd_ice1712 *ice) | 728 | static int snd_ice1712_delta_add_controls(struct snd_ice1712 *ice) |
729 | { | 729 | { |
730 | int err; | 730 | int err; |
731 | 731 | ||
@@ -801,7 +801,7 @@ static int __devinit snd_ice1712_delta_add_controls(struct snd_ice1712 *ice) | |||
801 | 801 | ||
802 | 802 | ||
803 | /* entry point */ | 803 | /* entry point */ |
804 | struct snd_ice1712_card_info snd_ice1712_delta_cards[] __devinitdata = { | 804 | struct snd_ice1712_card_info snd_ice1712_delta_cards[] = { |
805 | { | 805 | { |
806 | .subvendor = ICE1712_SUBDEVICE_DELTA1010, | 806 | .subvendor = ICE1712_SUBDEVICE_DELTA1010, |
807 | .name = "M Audio Delta 1010", | 807 | .name = "M Audio Delta 1010", |
diff --git a/sound/pci/ice1712/ews.c b/sound/pci/ice1712/ews.c index bf289f0a1ed4..bc2e7011c55d 100644 --- a/sound/pci/ice1712/ews.c +++ b/sound/pci/ice1712/ews.c | |||
@@ -343,7 +343,7 @@ static void ews88_setup_spdif(struct snd_ice1712 *ice, int rate) | |||
343 | 343 | ||
344 | /* | 344 | /* |
345 | */ | 345 | */ |
346 | static struct snd_akm4xxx akm_ews88mt __devinitdata = { | 346 | static struct snd_akm4xxx akm_ews88mt = { |
347 | .num_adcs = 8, | 347 | .num_adcs = 8, |
348 | .num_dacs = 8, | 348 | .num_dacs = 8, |
349 | .type = SND_AK4524, | 349 | .type = SND_AK4524, |
@@ -353,7 +353,7 @@ static struct snd_akm4xxx akm_ews88mt __devinitdata = { | |||
353 | } | 353 | } |
354 | }; | 354 | }; |
355 | 355 | ||
356 | static struct snd_ak4xxx_private akm_ews88mt_priv __devinitdata = { | 356 | static struct snd_ak4xxx_private akm_ews88mt_priv = { |
357 | .caddr = 2, | 357 | .caddr = 2, |
358 | .cif = 1, /* CIF high */ | 358 | .cif = 1, /* CIF high */ |
359 | .data_mask = ICE1712_EWS88_SERIAL_DATA, | 359 | .data_mask = ICE1712_EWS88_SERIAL_DATA, |
@@ -365,7 +365,7 @@ static struct snd_ak4xxx_private akm_ews88mt_priv __devinitdata = { | |||
365 | .mask_flags = 0, | 365 | .mask_flags = 0, |
366 | }; | 366 | }; |
367 | 367 | ||
368 | static struct snd_akm4xxx akm_ewx2496 __devinitdata = { | 368 | static struct snd_akm4xxx akm_ewx2496 = { |
369 | .num_adcs = 2, | 369 | .num_adcs = 2, |
370 | .num_dacs = 2, | 370 | .num_dacs = 2, |
371 | .type = SND_AK4524, | 371 | .type = SND_AK4524, |
@@ -374,7 +374,7 @@ static struct snd_akm4xxx akm_ewx2496 __devinitdata = { | |||
374 | } | 374 | } |
375 | }; | 375 | }; |
376 | 376 | ||
377 | static struct snd_ak4xxx_private akm_ewx2496_priv __devinitdata = { | 377 | static struct snd_ak4xxx_private akm_ewx2496_priv = { |
378 | .caddr = 2, | 378 | .caddr = 2, |
379 | .cif = 1, /* CIF high */ | 379 | .cif = 1, /* CIF high */ |
380 | .data_mask = ICE1712_EWS88_SERIAL_DATA, | 380 | .data_mask = ICE1712_EWS88_SERIAL_DATA, |
@@ -386,7 +386,7 @@ static struct snd_ak4xxx_private akm_ewx2496_priv __devinitdata = { | |||
386 | .mask_flags = 0, | 386 | .mask_flags = 0, |
387 | }; | 387 | }; |
388 | 388 | ||
389 | static struct snd_akm4xxx akm_6fire __devinitdata = { | 389 | static struct snd_akm4xxx akm_6fire = { |
390 | .num_adcs = 6, | 390 | .num_adcs = 6, |
391 | .num_dacs = 6, | 391 | .num_dacs = 6, |
392 | .type = SND_AK4524, | 392 | .type = SND_AK4524, |
@@ -395,7 +395,7 @@ static struct snd_akm4xxx akm_6fire __devinitdata = { | |||
395 | } | 395 | } |
396 | }; | 396 | }; |
397 | 397 | ||
398 | static struct snd_ak4xxx_private akm_6fire_priv __devinitdata = { | 398 | static struct snd_ak4xxx_private akm_6fire_priv = { |
399 | .caddr = 2, | 399 | .caddr = 2, |
400 | .cif = 1, /* CIF high */ | 400 | .cif = 1, /* CIF high */ |
401 | .data_mask = ICE1712_6FIRE_SERIAL_DATA, | 401 | .data_mask = ICE1712_6FIRE_SERIAL_DATA, |
@@ -419,7 +419,7 @@ static struct snd_ak4xxx_private akm_6fire_priv __devinitdata = { | |||
419 | 419 | ||
420 | static int snd_ice1712_6fire_write_pca(struct snd_ice1712 *ice, unsigned char reg, unsigned char data); | 420 | static int snd_ice1712_6fire_write_pca(struct snd_ice1712 *ice, unsigned char reg, unsigned char data); |
421 | 421 | ||
422 | static int __devinit snd_ice1712_ews_init(struct snd_ice1712 *ice) | 422 | static int snd_ice1712_ews_init(struct snd_ice1712 *ice) |
423 | { | 423 | { |
424 | int err; | 424 | int err; |
425 | struct snd_akm4xxx *ak; | 425 | struct snd_akm4xxx *ak; |
@@ -615,7 +615,7 @@ static int snd_ice1712_ewx_io_sense_put(struct snd_kcontrol *kcontrol, struct sn | |||
615 | return val != nval; | 615 | return val != nval; |
616 | } | 616 | } |
617 | 617 | ||
618 | static struct snd_kcontrol_new snd_ice1712_ewx2496_controls[] __devinitdata = { | 618 | static struct snd_kcontrol_new snd_ice1712_ewx2496_controls[] = { |
619 | { | 619 | { |
620 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 620 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
621 | .name = "Input Sensitivity Switch", | 621 | .name = "Input Sensitivity Switch", |
@@ -723,7 +723,7 @@ static int snd_ice1712_ews88mt_input_sense_put(struct snd_kcontrol *kcontrol, st | |||
723 | return ndata != data; | 723 | return ndata != data; |
724 | } | 724 | } |
725 | 725 | ||
726 | static struct snd_kcontrol_new snd_ice1712_ews88mt_input_sense __devinitdata = { | 726 | static struct snd_kcontrol_new snd_ice1712_ews88mt_input_sense = { |
727 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 727 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
728 | .name = "Input Sensitivity Switch", | 728 | .name = "Input Sensitivity Switch", |
729 | .info = snd_ice1712_ewx_io_sense_info, | 729 | .info = snd_ice1712_ewx_io_sense_info, |
@@ -732,7 +732,7 @@ static struct snd_kcontrol_new snd_ice1712_ews88mt_input_sense __devinitdata = { | |||
732 | .count = 8, | 732 | .count = 8, |
733 | }; | 733 | }; |
734 | 734 | ||
735 | static struct snd_kcontrol_new snd_ice1712_ews88mt_output_sense __devinitdata = { | 735 | static struct snd_kcontrol_new snd_ice1712_ews88mt_output_sense = { |
736 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 736 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
737 | .name = "Output Sensitivity Switch", | 737 | .name = "Output Sensitivity Switch", |
738 | .info = snd_ice1712_ewx_io_sense_info, | 738 | .info = snd_ice1712_ewx_io_sense_info, |
@@ -810,7 +810,7 @@ static int snd_ice1712_ews88d_control_put(struct snd_kcontrol *kcontrol, struct | |||
810 | .private_value = xshift | (xinvert << 8),\ | 810 | .private_value = xshift | (xinvert << 8),\ |
811 | } | 811 | } |
812 | 812 | ||
813 | static struct snd_kcontrol_new snd_ice1712_ews88d_controls[] __devinitdata = { | 813 | static struct snd_kcontrol_new snd_ice1712_ews88d_controls[] = { |
814 | EWS88D_CONTROL(SNDRV_CTL_ELEM_IFACE_MIXER, "IEC958 Input Optical", 0, 1, 0), /* inverted */ | 814 | EWS88D_CONTROL(SNDRV_CTL_ELEM_IFACE_MIXER, "IEC958 Input Optical", 0, 1, 0), /* inverted */ |
815 | EWS88D_CONTROL(SNDRV_CTL_ELEM_IFACE_MIXER, "ADAT Output Optical", 1, 0, 0), | 815 | EWS88D_CONTROL(SNDRV_CTL_ELEM_IFACE_MIXER, "ADAT Output Optical", 1, 0, 0), |
816 | EWS88D_CONTROL(SNDRV_CTL_ELEM_IFACE_MIXER, "ADAT External Master Clock", 2, 0, 0), | 816 | EWS88D_CONTROL(SNDRV_CTL_ELEM_IFACE_MIXER, "ADAT External Master Clock", 2, 0, 0), |
@@ -947,7 +947,7 @@ static int snd_ice1712_6fire_select_input_put(struct snd_kcontrol *kcontrol, str | |||
947 | .private_value = xshift | (xinvert << 8),\ | 947 | .private_value = xshift | (xinvert << 8),\ |
948 | } | 948 | } |
949 | 949 | ||
950 | static struct snd_kcontrol_new snd_ice1712_6fire_controls[] __devinitdata = { | 950 | static struct snd_kcontrol_new snd_ice1712_6fire_controls[] = { |
951 | { | 951 | { |
952 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 952 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
953 | .name = "Analog Input Select", | 953 | .name = "Analog Input Select", |
@@ -963,7 +963,7 @@ static struct snd_kcontrol_new snd_ice1712_6fire_controls[] __devinitdata = { | |||
963 | }; | 963 | }; |
964 | 964 | ||
965 | 965 | ||
966 | static int __devinit snd_ice1712_ews_add_controls(struct snd_ice1712 *ice) | 966 | static int snd_ice1712_ews_add_controls(struct snd_ice1712 *ice) |
967 | { | 967 | { |
968 | unsigned int idx; | 968 | unsigned int idx; |
969 | int err; | 969 | int err; |
@@ -1029,7 +1029,7 @@ static int __devinit snd_ice1712_ews_add_controls(struct snd_ice1712 *ice) | |||
1029 | 1029 | ||
1030 | 1030 | ||
1031 | /* entry point */ | 1031 | /* entry point */ |
1032 | struct snd_ice1712_card_info snd_ice1712_ews_cards[] __devinitdata = { | 1032 | struct snd_ice1712_card_info snd_ice1712_ews_cards[] = { |
1033 | { | 1033 | { |
1034 | .subvendor = ICE1712_SUBDEVICE_EWX2496, | 1034 | .subvendor = ICE1712_SUBDEVICE_EWX2496, |
1035 | .name = "TerraTec EWX24/96", | 1035 | .name = "TerraTec EWX24/96", |
diff --git a/sound/pci/ice1712/hoontech.c b/sound/pci/ice1712/hoontech.c index 3d84d21e484d..59e37c581691 100644 --- a/sound/pci/ice1712/hoontech.c +++ b/sound/pci/ice1712/hoontech.c | |||
@@ -39,7 +39,7 @@ struct hoontech_spec { | |||
39 | unsigned short boxconfig[4]; | 39 | unsigned short boxconfig[4]; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | static void __devinit snd_ice1712_stdsp24_gpio_write(struct snd_ice1712 *ice, unsigned char byte) | 42 | static void snd_ice1712_stdsp24_gpio_write(struct snd_ice1712 *ice, unsigned char byte) |
43 | { | 43 | { |
44 | byte |= ICE1712_STDSP24_CLOCK_BIT; | 44 | byte |= ICE1712_STDSP24_CLOCK_BIT; |
45 | udelay(100); | 45 | udelay(100); |
@@ -52,7 +52,7 @@ static void __devinit snd_ice1712_stdsp24_gpio_write(struct snd_ice1712 *ice, un | |||
52 | snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, byte); | 52 | snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, byte); |
53 | } | 53 | } |
54 | 54 | ||
55 | static void __devinit snd_ice1712_stdsp24_darear(struct snd_ice1712 *ice, int activate) | 55 | static void snd_ice1712_stdsp24_darear(struct snd_ice1712 *ice, int activate) |
56 | { | 56 | { |
57 | struct hoontech_spec *spec = ice->spec; | 57 | struct hoontech_spec *spec = ice->spec; |
58 | mutex_lock(&ice->gpio_mutex); | 58 | mutex_lock(&ice->gpio_mutex); |
@@ -61,7 +61,7 @@ static void __devinit snd_ice1712_stdsp24_darear(struct snd_ice1712 *ice, int ac | |||
61 | mutex_unlock(&ice->gpio_mutex); | 61 | mutex_unlock(&ice->gpio_mutex); |
62 | } | 62 | } |
63 | 63 | ||
64 | static void __devinit snd_ice1712_stdsp24_mute(struct snd_ice1712 *ice, int activate) | 64 | static void snd_ice1712_stdsp24_mute(struct snd_ice1712 *ice, int activate) |
65 | { | 65 | { |
66 | struct hoontech_spec *spec = ice->spec; | 66 | struct hoontech_spec *spec = ice->spec; |
67 | mutex_lock(&ice->gpio_mutex); | 67 | mutex_lock(&ice->gpio_mutex); |
@@ -70,7 +70,7 @@ static void __devinit snd_ice1712_stdsp24_mute(struct snd_ice1712 *ice, int acti | |||
70 | mutex_unlock(&ice->gpio_mutex); | 70 | mutex_unlock(&ice->gpio_mutex); |
71 | } | 71 | } |
72 | 72 | ||
73 | static void __devinit snd_ice1712_stdsp24_insel(struct snd_ice1712 *ice, int activate) | 73 | static void snd_ice1712_stdsp24_insel(struct snd_ice1712 *ice, int activate) |
74 | { | 74 | { |
75 | struct hoontech_spec *spec = ice->spec; | 75 | struct hoontech_spec *spec = ice->spec; |
76 | mutex_lock(&ice->gpio_mutex); | 76 | mutex_lock(&ice->gpio_mutex); |
@@ -79,7 +79,7 @@ static void __devinit snd_ice1712_stdsp24_insel(struct snd_ice1712 *ice, int act | |||
79 | mutex_unlock(&ice->gpio_mutex); | 79 | mutex_unlock(&ice->gpio_mutex); |
80 | } | 80 | } |
81 | 81 | ||
82 | static void __devinit snd_ice1712_stdsp24_box_channel(struct snd_ice1712 *ice, int box, int chn, int activate) | 82 | static void snd_ice1712_stdsp24_box_channel(struct snd_ice1712 *ice, int box, int chn, int activate) |
83 | { | 83 | { |
84 | struct hoontech_spec *spec = ice->spec; | 84 | struct hoontech_spec *spec = ice->spec; |
85 | 85 | ||
@@ -129,7 +129,7 @@ static void __devinit snd_ice1712_stdsp24_box_channel(struct snd_ice1712 *ice, i | |||
129 | mutex_unlock(&ice->gpio_mutex); | 129 | mutex_unlock(&ice->gpio_mutex); |
130 | } | 130 | } |
131 | 131 | ||
132 | static void __devinit snd_ice1712_stdsp24_box_midi(struct snd_ice1712 *ice, int box, int master) | 132 | static void snd_ice1712_stdsp24_box_midi(struct snd_ice1712 *ice, int box, int master) |
133 | { | 133 | { |
134 | struct hoontech_spec *spec = ice->spec; | 134 | struct hoontech_spec *spec = ice->spec; |
135 | 135 | ||
@@ -157,7 +157,7 @@ static void __devinit snd_ice1712_stdsp24_box_midi(struct snd_ice1712 *ice, int | |||
157 | mutex_unlock(&ice->gpio_mutex); | 157 | mutex_unlock(&ice->gpio_mutex); |
158 | } | 158 | } |
159 | 159 | ||
160 | static void __devinit snd_ice1712_stdsp24_midi2(struct snd_ice1712 *ice, int activate) | 160 | static void snd_ice1712_stdsp24_midi2(struct snd_ice1712 *ice, int activate) |
161 | { | 161 | { |
162 | struct hoontech_spec *spec = ice->spec; | 162 | struct hoontech_spec *spec = ice->spec; |
163 | mutex_lock(&ice->gpio_mutex); | 163 | mutex_lock(&ice->gpio_mutex); |
@@ -166,7 +166,7 @@ static void __devinit snd_ice1712_stdsp24_midi2(struct snd_ice1712 *ice, int act | |||
166 | mutex_unlock(&ice->gpio_mutex); | 166 | mutex_unlock(&ice->gpio_mutex); |
167 | } | 167 | } |
168 | 168 | ||
169 | static int __devinit snd_ice1712_hoontech_init(struct snd_ice1712 *ice) | 169 | static int snd_ice1712_hoontech_init(struct snd_ice1712 *ice) |
170 | { | 170 | { |
171 | struct hoontech_spec *spec; | 171 | struct hoontech_spec *spec; |
172 | int box, chn; | 172 | int box, chn; |
@@ -266,10 +266,10 @@ static void stdsp24_ak4524_lock(struct snd_akm4xxx *ak, int chip) | |||
266 | snd_ice1712_write(ice, ICE1712_IREG_GPIO_WRITE_MASK, ~tmp); | 266 | snd_ice1712_write(ice, ICE1712_IREG_GPIO_WRITE_MASK, ~tmp); |
267 | } | 267 | } |
268 | 268 | ||
269 | static int __devinit snd_ice1712_value_init(struct snd_ice1712 *ice) | 269 | static int snd_ice1712_value_init(struct snd_ice1712 *ice) |
270 | { | 270 | { |
271 | /* Hoontech STDSP24 with modified hardware */ | 271 | /* Hoontech STDSP24 with modified hardware */ |
272 | static struct snd_akm4xxx akm_stdsp24_mv __devinitdata = { | 272 | static struct snd_akm4xxx akm_stdsp24_mv = { |
273 | .num_adcs = 2, | 273 | .num_adcs = 2, |
274 | .num_dacs = 2, | 274 | .num_dacs = 2, |
275 | .type = SND_AK4524, | 275 | .type = SND_AK4524, |
@@ -278,7 +278,7 @@ static int __devinit snd_ice1712_value_init(struct snd_ice1712 *ice) | |||
278 | } | 278 | } |
279 | }; | 279 | }; |
280 | 280 | ||
281 | static struct snd_ak4xxx_private akm_stdsp24_mv_priv __devinitdata = { | 281 | static struct snd_ak4xxx_private akm_stdsp24_mv_priv = { |
282 | .caddr = 2, | 282 | .caddr = 2, |
283 | .cif = 1, /* CIF high */ | 283 | .cif = 1, /* CIF high */ |
284 | .data_mask = ICE1712_STDSP24_SERIAL_DATA, | 284 | .data_mask = ICE1712_STDSP24_SERIAL_DATA, |
@@ -316,7 +316,7 @@ static int __devinit snd_ice1712_value_init(struct snd_ice1712 *ice) | |||
316 | return 0; | 316 | return 0; |
317 | } | 317 | } |
318 | 318 | ||
319 | static int __devinit snd_ice1712_ez8_init(struct snd_ice1712 *ice) | 319 | static int snd_ice1712_ez8_init(struct snd_ice1712 *ice) |
320 | { | 320 | { |
321 | ice->gpio.write_mask = ice->eeprom.gpiomask; | 321 | ice->gpio.write_mask = ice->eeprom.gpiomask; |
322 | ice->gpio.direction = ice->eeprom.gpiodir; | 322 | ice->gpio.direction = ice->eeprom.gpiodir; |
@@ -328,7 +328,7 @@ static int __devinit snd_ice1712_ez8_init(struct snd_ice1712 *ice) | |||
328 | 328 | ||
329 | 329 | ||
330 | /* entry point */ | 330 | /* entry point */ |
331 | struct snd_ice1712_card_info snd_ice1712_hoontech_cards[] __devinitdata = { | 331 | struct snd_ice1712_card_info snd_ice1712_hoontech_cards[] = { |
332 | { | 332 | { |
333 | .subvendor = ICE1712_SUBDEVICE_STDSP24, | 333 | .subvendor = ICE1712_SUBDEVICE_STDSP24, |
334 | .name = "Hoontech SoundTrack Audio DSP24", | 334 | .name = "Hoontech SoundTrack Audio DSP24", |
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index dd64e223f5cf..2ffdc35d5ffd 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c | |||
@@ -279,7 +279,7 @@ static int snd_ice1712_digmix_route_ac97_put(struct snd_kcontrol *kcontrol, stru | |||
279 | return val != nval; | 279 | return val != nval; |
280 | } | 280 | } |
281 | 281 | ||
282 | static struct snd_kcontrol_new snd_ice1712_mixer_digmix_route_ac97 __devinitdata = { | 282 | static struct snd_kcontrol_new snd_ice1712_mixer_digmix_route_ac97 = { |
283 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 283 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
284 | .name = "Digital Mixer To AC97", | 284 | .name = "Digital Mixer To AC97", |
285 | .info = snd_ice1712_digmix_route_ac97_info, | 285 | .info = snd_ice1712_digmix_route_ac97_info, |
@@ -387,7 +387,7 @@ static void setup_cs8427(struct snd_ice1712 *ice, int rate) | |||
387 | /* | 387 | /* |
388 | * create and initialize callbacks for cs8427 interface | 388 | * create and initialize callbacks for cs8427 interface |
389 | */ | 389 | */ |
390 | int __devinit snd_ice1712_init_cs8427(struct snd_ice1712 *ice, int addr) | 390 | int snd_ice1712_init_cs8427(struct snd_ice1712 *ice, int addr) |
391 | { | 391 | { |
392 | int err; | 392 | int err; |
393 | 393 | ||
@@ -878,7 +878,7 @@ static struct snd_pcm_ops snd_ice1712_capture_ops = { | |||
878 | .pointer = snd_ice1712_capture_pointer, | 878 | .pointer = snd_ice1712_capture_pointer, |
879 | }; | 879 | }; |
880 | 880 | ||
881 | static int __devinit snd_ice1712_pcm(struct snd_ice1712 *ice, int device, struct snd_pcm **rpcm) | 881 | static int snd_ice1712_pcm(struct snd_ice1712 *ice, int device, struct snd_pcm **rpcm) |
882 | { | 882 | { |
883 | struct snd_pcm *pcm; | 883 | struct snd_pcm *pcm; |
884 | int err; | 884 | int err; |
@@ -908,7 +908,7 @@ static int __devinit snd_ice1712_pcm(struct snd_ice1712 *ice, int device, struct | |||
908 | return 0; | 908 | return 0; |
909 | } | 909 | } |
910 | 910 | ||
911 | static int __devinit snd_ice1712_pcm_ds(struct snd_ice1712 *ice, int device, struct snd_pcm **rpcm) | 911 | static int snd_ice1712_pcm_ds(struct snd_ice1712 *ice, int device, struct snd_pcm **rpcm) |
912 | { | 912 | { |
913 | struct snd_pcm *pcm; | 913 | struct snd_pcm *pcm; |
914 | int err; | 914 | int err; |
@@ -1253,7 +1253,7 @@ static struct snd_pcm_ops snd_ice1712_capture_pro_ops = { | |||
1253 | .pointer = snd_ice1712_capture_pro_pointer, | 1253 | .pointer = snd_ice1712_capture_pro_pointer, |
1254 | }; | 1254 | }; |
1255 | 1255 | ||
1256 | static int __devinit snd_ice1712_pcm_profi(struct snd_ice1712 *ice, int device, struct snd_pcm **rpcm) | 1256 | static int snd_ice1712_pcm_profi(struct snd_ice1712 *ice, int device, struct snd_pcm **rpcm) |
1257 | { | 1257 | { |
1258 | struct snd_pcm *pcm; | 1258 | struct snd_pcm *pcm; |
1259 | int err; | 1259 | int err; |
@@ -1387,7 +1387,7 @@ static int snd_ice1712_pro_mixer_volume_put(struct snd_kcontrol *kcontrol, struc | |||
1387 | 1387 | ||
1388 | static const DECLARE_TLV_DB_SCALE(db_scale_playback, -14400, 150, 0); | 1388 | static const DECLARE_TLV_DB_SCALE(db_scale_playback, -14400, 150, 0); |
1389 | 1389 | ||
1390 | static struct snd_kcontrol_new snd_ice1712_multi_playback_ctrls[] __devinitdata = { | 1390 | static struct snd_kcontrol_new snd_ice1712_multi_playback_ctrls[] = { |
1391 | { | 1391 | { |
1392 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1392 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1393 | .name = "Multi Playback Switch", | 1393 | .name = "Multi Playback Switch", |
@@ -1411,7 +1411,7 @@ static struct snd_kcontrol_new snd_ice1712_multi_playback_ctrls[] __devinitdata | |||
1411 | }, | 1411 | }, |
1412 | }; | 1412 | }; |
1413 | 1413 | ||
1414 | static struct snd_kcontrol_new snd_ice1712_multi_capture_analog_switch __devinitdata = { | 1414 | static struct snd_kcontrol_new snd_ice1712_multi_capture_analog_switch = { |
1415 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1415 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1416 | .name = "H/W Multi Capture Switch", | 1416 | .name = "H/W Multi Capture Switch", |
1417 | .info = snd_ice1712_pro_mixer_switch_info, | 1417 | .info = snd_ice1712_pro_mixer_switch_info, |
@@ -1420,7 +1420,7 @@ static struct snd_kcontrol_new snd_ice1712_multi_capture_analog_switch __devinit | |||
1420 | .private_value = 10, | 1420 | .private_value = 10, |
1421 | }; | 1421 | }; |
1422 | 1422 | ||
1423 | static struct snd_kcontrol_new snd_ice1712_multi_capture_spdif_switch __devinitdata = { | 1423 | static struct snd_kcontrol_new snd_ice1712_multi_capture_spdif_switch = { |
1424 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1424 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1425 | .name = SNDRV_CTL_NAME_IEC958("Multi ", CAPTURE, SWITCH), | 1425 | .name = SNDRV_CTL_NAME_IEC958("Multi ", CAPTURE, SWITCH), |
1426 | .info = snd_ice1712_pro_mixer_switch_info, | 1426 | .info = snd_ice1712_pro_mixer_switch_info, |
@@ -1430,7 +1430,7 @@ static struct snd_kcontrol_new snd_ice1712_multi_capture_spdif_switch __devinitd | |||
1430 | .count = 2, | 1430 | .count = 2, |
1431 | }; | 1431 | }; |
1432 | 1432 | ||
1433 | static struct snd_kcontrol_new snd_ice1712_multi_capture_analog_volume __devinitdata = { | 1433 | static struct snd_kcontrol_new snd_ice1712_multi_capture_analog_volume = { |
1434 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1434 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1435 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 1435 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
1436 | SNDRV_CTL_ELEM_ACCESS_TLV_READ), | 1436 | SNDRV_CTL_ELEM_ACCESS_TLV_READ), |
@@ -1442,7 +1442,7 @@ static struct snd_kcontrol_new snd_ice1712_multi_capture_analog_volume __devinit | |||
1442 | .tlv = { .p = db_scale_playback } | 1442 | .tlv = { .p = db_scale_playback } |
1443 | }; | 1443 | }; |
1444 | 1444 | ||
1445 | static struct snd_kcontrol_new snd_ice1712_multi_capture_spdif_volume __devinitdata = { | 1445 | static struct snd_kcontrol_new snd_ice1712_multi_capture_spdif_volume = { |
1446 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1446 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1447 | .name = SNDRV_CTL_NAME_IEC958("Multi ", CAPTURE, VOLUME), | 1447 | .name = SNDRV_CTL_NAME_IEC958("Multi ", CAPTURE, VOLUME), |
1448 | .info = snd_ice1712_pro_mixer_volume_info, | 1448 | .info = snd_ice1712_pro_mixer_volume_info, |
@@ -1452,7 +1452,7 @@ static struct snd_kcontrol_new snd_ice1712_multi_capture_spdif_volume __devinitd | |||
1452 | .count = 2, | 1452 | .count = 2, |
1453 | }; | 1453 | }; |
1454 | 1454 | ||
1455 | static int __devinit snd_ice1712_build_pro_mixer(struct snd_ice1712 *ice) | 1455 | static int snd_ice1712_build_pro_mixer(struct snd_ice1712 *ice) |
1456 | { | 1456 | { |
1457 | struct snd_card *card = ice->card; | 1457 | struct snd_card *card = ice->card; |
1458 | unsigned int idx; | 1458 | unsigned int idx; |
@@ -1511,7 +1511,7 @@ static void snd_ice1712_mixer_free_ac97(struct snd_ac97 *ac97) | |||
1511 | ice->ac97 = NULL; | 1511 | ice->ac97 = NULL; |
1512 | } | 1512 | } |
1513 | 1513 | ||
1514 | static int __devinit snd_ice1712_ac97_mixer(struct snd_ice1712 *ice) | 1514 | static int snd_ice1712_ac97_mixer(struct snd_ice1712 *ice) |
1515 | { | 1515 | { |
1516 | int err, bus_num = 0; | 1516 | int err, bus_num = 0; |
1517 | struct snd_ac97_template ac97; | 1517 | struct snd_ac97_template ac97; |
@@ -1610,7 +1610,7 @@ static void snd_ice1712_proc_read(struct snd_info_entry *entry, | |||
1610 | snd_iprintf(buffer, " GPIO_DIRECTION : 0x%02x\n", (unsigned)snd_ice1712_read(ice, ICE1712_IREG_GPIO_DIRECTION)); | 1610 | snd_iprintf(buffer, " GPIO_DIRECTION : 0x%02x\n", (unsigned)snd_ice1712_read(ice, ICE1712_IREG_GPIO_DIRECTION)); |
1611 | } | 1611 | } |
1612 | 1612 | ||
1613 | static void __devinit snd_ice1712_proc_init(struct snd_ice1712 *ice) | 1613 | static void snd_ice1712_proc_init(struct snd_ice1712 *ice) |
1614 | { | 1614 | { |
1615 | struct snd_info_entry *entry; | 1615 | struct snd_info_entry *entry; |
1616 | 1616 | ||
@@ -1639,7 +1639,7 @@ static int snd_ice1712_eeprom_get(struct snd_kcontrol *kcontrol, | |||
1639 | return 0; | 1639 | return 0; |
1640 | } | 1640 | } |
1641 | 1641 | ||
1642 | static struct snd_kcontrol_new snd_ice1712_eeprom __devinitdata = { | 1642 | static struct snd_kcontrol_new snd_ice1712_eeprom = { |
1643 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1643 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1644 | .name = "ICE1712 EEPROM", | 1644 | .name = "ICE1712 EEPROM", |
1645 | .access = SNDRV_CTL_ELEM_ACCESS_READ, | 1645 | .access = SNDRV_CTL_ELEM_ACCESS_READ, |
@@ -1675,7 +1675,7 @@ static int snd_ice1712_spdif_default_put(struct snd_kcontrol *kcontrol, | |||
1675 | return 0; | 1675 | return 0; |
1676 | } | 1676 | } |
1677 | 1677 | ||
1678 | static struct snd_kcontrol_new snd_ice1712_spdif_default __devinitdata = | 1678 | static struct snd_kcontrol_new snd_ice1712_spdif_default = |
1679 | { | 1679 | { |
1680 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1680 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
1681 | .name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, DEFAULT), | 1681 | .name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, DEFAULT), |
@@ -1726,7 +1726,7 @@ static int snd_ice1712_spdif_maskp_get(struct snd_kcontrol *kcontrol, | |||
1726 | return 0; | 1726 | return 0; |
1727 | } | 1727 | } |
1728 | 1728 | ||
1729 | static struct snd_kcontrol_new snd_ice1712_spdif_maskc __devinitdata = | 1729 | static struct snd_kcontrol_new snd_ice1712_spdif_maskc = |
1730 | { | 1730 | { |
1731 | .access = SNDRV_CTL_ELEM_ACCESS_READ, | 1731 | .access = SNDRV_CTL_ELEM_ACCESS_READ, |
1732 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1732 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
@@ -1735,7 +1735,7 @@ static struct snd_kcontrol_new snd_ice1712_spdif_maskc __devinitdata = | |||
1735 | .get = snd_ice1712_spdif_maskc_get, | 1735 | .get = snd_ice1712_spdif_maskc_get, |
1736 | }; | 1736 | }; |
1737 | 1737 | ||
1738 | static struct snd_kcontrol_new snd_ice1712_spdif_maskp __devinitdata = | 1738 | static struct snd_kcontrol_new snd_ice1712_spdif_maskp = |
1739 | { | 1739 | { |
1740 | .access = SNDRV_CTL_ELEM_ACCESS_READ, | 1740 | .access = SNDRV_CTL_ELEM_ACCESS_READ, |
1741 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1741 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
@@ -1762,7 +1762,7 @@ static int snd_ice1712_spdif_stream_put(struct snd_kcontrol *kcontrol, | |||
1762 | return 0; | 1762 | return 0; |
1763 | } | 1763 | } |
1764 | 1764 | ||
1765 | static struct snd_kcontrol_new snd_ice1712_spdif_stream __devinitdata = | 1765 | static struct snd_kcontrol_new snd_ice1712_spdif_stream = |
1766 | { | 1766 | { |
1767 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 1767 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
1768 | SNDRV_CTL_ELEM_ACCESS_INACTIVE), | 1768 | SNDRV_CTL_ELEM_ACCESS_INACTIVE), |
@@ -1893,7 +1893,7 @@ static int snd_ice1712_pro_internal_clock_put(struct snd_kcontrol *kcontrol, | |||
1893 | return change; | 1893 | return change; |
1894 | } | 1894 | } |
1895 | 1895 | ||
1896 | static struct snd_kcontrol_new snd_ice1712_pro_internal_clock __devinitdata = { | 1896 | static struct snd_kcontrol_new snd_ice1712_pro_internal_clock = { |
1897 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1897 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1898 | .name = "Multi Track Internal Clock", | 1898 | .name = "Multi Track Internal Clock", |
1899 | .info = snd_ice1712_pro_internal_clock_info, | 1899 | .info = snd_ice1712_pro_internal_clock_info, |
@@ -1964,7 +1964,7 @@ static int snd_ice1712_pro_internal_clock_default_put(struct snd_kcontrol *kcont | |||
1964 | return change; | 1964 | return change; |
1965 | } | 1965 | } |
1966 | 1966 | ||
1967 | static struct snd_kcontrol_new snd_ice1712_pro_internal_clock_default __devinitdata = { | 1967 | static struct snd_kcontrol_new snd_ice1712_pro_internal_clock_default = { |
1968 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1968 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1969 | .name = "Multi Track Internal Clock Default", | 1969 | .name = "Multi Track Internal Clock Default", |
1970 | .info = snd_ice1712_pro_internal_clock_default_info, | 1970 | .info = snd_ice1712_pro_internal_clock_default_info, |
@@ -1995,7 +1995,7 @@ static int snd_ice1712_pro_rate_locking_put(struct snd_kcontrol *kcontrol, | |||
1995 | return change; | 1995 | return change; |
1996 | } | 1996 | } |
1997 | 1997 | ||
1998 | static struct snd_kcontrol_new snd_ice1712_pro_rate_locking __devinitdata = { | 1998 | static struct snd_kcontrol_new snd_ice1712_pro_rate_locking = { |
1999 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1999 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2000 | .name = "Multi Track Rate Locking", | 2000 | .name = "Multi Track Rate Locking", |
2001 | .info = snd_ice1712_pro_rate_locking_info, | 2001 | .info = snd_ice1712_pro_rate_locking_info, |
@@ -2026,7 +2026,7 @@ static int snd_ice1712_pro_rate_reset_put(struct snd_kcontrol *kcontrol, | |||
2026 | return change; | 2026 | return change; |
2027 | } | 2027 | } |
2028 | 2028 | ||
2029 | static struct snd_kcontrol_new snd_ice1712_pro_rate_reset __devinitdata = { | 2029 | static struct snd_kcontrol_new snd_ice1712_pro_rate_reset = { |
2030 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2030 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2031 | .name = "Multi Track Rate Reset", | 2031 | .name = "Multi Track Rate Reset", |
2032 | .info = snd_ice1712_pro_rate_reset_info, | 2032 | .info = snd_ice1712_pro_rate_reset_info, |
@@ -2193,7 +2193,7 @@ static int snd_ice1712_pro_route_spdif_put(struct snd_kcontrol *kcontrol, | |||
2193 | return change; | 2193 | return change; |
2194 | } | 2194 | } |
2195 | 2195 | ||
2196 | static struct snd_kcontrol_new snd_ice1712_mixer_pro_analog_route __devinitdata = { | 2196 | static struct snd_kcontrol_new snd_ice1712_mixer_pro_analog_route = { |
2197 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2197 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2198 | .name = "H/W Playback Route", | 2198 | .name = "H/W Playback Route", |
2199 | .info = snd_ice1712_pro_route_info, | 2199 | .info = snd_ice1712_pro_route_info, |
@@ -2201,7 +2201,7 @@ static struct snd_kcontrol_new snd_ice1712_mixer_pro_analog_route __devinitdata | |||
2201 | .put = snd_ice1712_pro_route_analog_put, | 2201 | .put = snd_ice1712_pro_route_analog_put, |
2202 | }; | 2202 | }; |
2203 | 2203 | ||
2204 | static struct snd_kcontrol_new snd_ice1712_mixer_pro_spdif_route __devinitdata = { | 2204 | static struct snd_kcontrol_new snd_ice1712_mixer_pro_spdif_route = { |
2205 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2205 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2206 | .name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, NONE) "Route", | 2206 | .name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, NONE) "Route", |
2207 | .info = snd_ice1712_pro_route_info, | 2207 | .info = snd_ice1712_pro_route_info, |
@@ -2243,7 +2243,7 @@ static int snd_ice1712_pro_volume_rate_put(struct snd_kcontrol *kcontrol, | |||
2243 | return change; | 2243 | return change; |
2244 | } | 2244 | } |
2245 | 2245 | ||
2246 | static struct snd_kcontrol_new snd_ice1712_mixer_pro_volume_rate __devinitdata = { | 2246 | static struct snd_kcontrol_new snd_ice1712_mixer_pro_volume_rate = { |
2247 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2247 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2248 | .name = "Multi Track Volume Rate", | 2248 | .name = "Multi Track Volume Rate", |
2249 | .info = snd_ice1712_pro_volume_rate_info, | 2249 | .info = snd_ice1712_pro_volume_rate_info, |
@@ -2276,7 +2276,7 @@ static int snd_ice1712_pro_peak_get(struct snd_kcontrol *kcontrol, | |||
2276 | return 0; | 2276 | return 0; |
2277 | } | 2277 | } |
2278 | 2278 | ||
2279 | static struct snd_kcontrol_new snd_ice1712_mixer_pro_peak __devinitdata = { | 2279 | static struct snd_kcontrol_new snd_ice1712_mixer_pro_peak = { |
2280 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 2280 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
2281 | .name = "Multi Track Peak", | 2281 | .name = "Multi Track Peak", |
2282 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, | 2282 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, |
@@ -2291,16 +2291,16 @@ static struct snd_kcontrol_new snd_ice1712_mixer_pro_peak __devinitdata = { | |||
2291 | /* | 2291 | /* |
2292 | * list of available boards | 2292 | * list of available boards |
2293 | */ | 2293 | */ |
2294 | static struct snd_ice1712_card_info *card_tables[] __devinitdata = { | 2294 | static struct snd_ice1712_card_info *card_tables[] = { |
2295 | snd_ice1712_hoontech_cards, | 2295 | snd_ice1712_hoontech_cards, |
2296 | snd_ice1712_delta_cards, | 2296 | snd_ice1712_delta_cards, |
2297 | snd_ice1712_ews_cards, | 2297 | snd_ice1712_ews_cards, |
2298 | NULL, | 2298 | NULL, |
2299 | }; | 2299 | }; |
2300 | 2300 | ||
2301 | static unsigned char __devinit snd_ice1712_read_i2c(struct snd_ice1712 *ice, | 2301 | static unsigned char snd_ice1712_read_i2c(struct snd_ice1712 *ice, |
2302 | unsigned char dev, | 2302 | unsigned char dev, |
2303 | unsigned char addr) | 2303 | unsigned char addr) |
2304 | { | 2304 | { |
2305 | long t = 0x10000; | 2305 | long t = 0x10000; |
2306 | 2306 | ||
@@ -2310,8 +2310,8 @@ static unsigned char __devinit snd_ice1712_read_i2c(struct snd_ice1712 *ice, | |||
2310 | return inb(ICEREG(ice, I2C_DATA)); | 2310 | return inb(ICEREG(ice, I2C_DATA)); |
2311 | } | 2311 | } |
2312 | 2312 | ||
2313 | static int __devinit snd_ice1712_read_eeprom(struct snd_ice1712 *ice, | 2313 | static int snd_ice1712_read_eeprom(struct snd_ice1712 *ice, |
2314 | const char *modelname) | 2314 | const char *modelname) |
2315 | { | 2315 | { |
2316 | int dev = 0xa0; /* EEPROM device address */ | 2316 | int dev = 0xa0; /* EEPROM device address */ |
2317 | unsigned int i, size; | 2317 | unsigned int i, size; |
@@ -2385,7 +2385,7 @@ static int __devinit snd_ice1712_read_eeprom(struct snd_ice1712 *ice, | |||
2385 | 2385 | ||
2386 | 2386 | ||
2387 | 2387 | ||
2388 | static int __devinit snd_ice1712_chip_init(struct snd_ice1712 *ice) | 2388 | static int snd_ice1712_chip_init(struct snd_ice1712 *ice) |
2389 | { | 2389 | { |
2390 | outb(ICE1712_RESET | ICE1712_NATIVE, ICEREG(ice, CONTROL)); | 2390 | outb(ICE1712_RESET | ICE1712_NATIVE, ICEREG(ice, CONTROL)); |
2391 | udelay(200); | 2391 | udelay(200); |
@@ -2432,7 +2432,7 @@ static int __devinit snd_ice1712_chip_init(struct snd_ice1712 *ice) | |||
2432 | return 0; | 2432 | return 0; |
2433 | } | 2433 | } |
2434 | 2434 | ||
2435 | int __devinit snd_ice1712_spdif_build_controls(struct snd_ice1712 *ice) | 2435 | int snd_ice1712_spdif_build_controls(struct snd_ice1712 *ice) |
2436 | { | 2436 | { |
2437 | int err; | 2437 | int err; |
2438 | struct snd_kcontrol *kctl; | 2438 | struct snd_kcontrol *kctl; |
@@ -2460,7 +2460,7 @@ int __devinit snd_ice1712_spdif_build_controls(struct snd_ice1712 *ice) | |||
2460 | } | 2460 | } |
2461 | 2461 | ||
2462 | 2462 | ||
2463 | static int __devinit snd_ice1712_build_controls(struct snd_ice1712 *ice) | 2463 | static int snd_ice1712_build_controls(struct snd_ice1712 *ice) |
2464 | { | 2464 | { |
2465 | int err; | 2465 | int err; |
2466 | 2466 | ||
@@ -2530,13 +2530,13 @@ static int snd_ice1712_dev_free(struct snd_device *device) | |||
2530 | return snd_ice1712_free(ice); | 2530 | return snd_ice1712_free(ice); |
2531 | } | 2531 | } |
2532 | 2532 | ||
2533 | static int __devinit snd_ice1712_create(struct snd_card *card, | 2533 | static int snd_ice1712_create(struct snd_card *card, |
2534 | struct pci_dev *pci, | 2534 | struct pci_dev *pci, |
2535 | const char *modelname, | 2535 | const char *modelname, |
2536 | int omni, | 2536 | int omni, |
2537 | int cs8427_timeout, | 2537 | int cs8427_timeout, |
2538 | int dxr_enable, | 2538 | int dxr_enable, |
2539 | struct snd_ice1712 **r_ice1712) | 2539 | struct snd_ice1712 **r_ice1712) |
2540 | { | 2540 | { |
2541 | struct snd_ice1712 *ice; | 2541 | struct snd_ice1712 *ice; |
2542 | int err; | 2542 | int err; |
@@ -2650,10 +2650,10 @@ static int __devinit snd_ice1712_create(struct snd_card *card, | |||
2650 | * | 2650 | * |
2651 | */ | 2651 | */ |
2652 | 2652 | ||
2653 | static struct snd_ice1712_card_info no_matched __devinitdata; | 2653 | static struct snd_ice1712_card_info no_matched; |
2654 | 2654 | ||
2655 | static int __devinit snd_ice1712_probe(struct pci_dev *pci, | 2655 | static int snd_ice1712_probe(struct pci_dev *pci, |
2656 | const struct pci_device_id *pci_id) | 2656 | const struct pci_device_id *pci_id) |
2657 | { | 2657 | { |
2658 | static int dev; | 2658 | static int dev; |
2659 | struct snd_card *card; | 2659 | struct snd_card *card; |
@@ -2797,7 +2797,7 @@ static int __devinit snd_ice1712_probe(struct pci_dev *pci, | |||
2797 | return 0; | 2797 | return 0; |
2798 | } | 2798 | } |
2799 | 2799 | ||
2800 | static void __devexit snd_ice1712_remove(struct pci_dev *pci) | 2800 | static void snd_ice1712_remove(struct pci_dev *pci) |
2801 | { | 2801 | { |
2802 | struct snd_card *card = pci_get_drvdata(pci); | 2802 | struct snd_card *card = pci_get_drvdata(pci); |
2803 | struct snd_ice1712 *ice = card->private_data; | 2803 | struct snd_ice1712 *ice = card->private_data; |
@@ -2812,7 +2812,7 @@ static struct pci_driver ice1712_driver = { | |||
2812 | .name = KBUILD_MODNAME, | 2812 | .name = KBUILD_MODNAME, |
2813 | .id_table = snd_ice1712_ids, | 2813 | .id_table = snd_ice1712_ids, |
2814 | .probe = snd_ice1712_probe, | 2814 | .probe = snd_ice1712_probe, |
2815 | .remove = __devexit_p(snd_ice1712_remove), | 2815 | .remove = snd_ice1712_remove, |
2816 | }; | 2816 | }; |
2817 | 2817 | ||
2818 | module_pci_driver(ice1712_driver); | 2818 | module_pci_driver(ice1712_driver); |
diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index ea99e5695f9f..ce70e7f113e0 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c | |||
@@ -1135,7 +1135,7 @@ static struct snd_pcm_ops snd_vt1724_capture_pro_ops = { | |||
1135 | .pointer = snd_vt1724_pcm_pointer, | 1135 | .pointer = snd_vt1724_pcm_pointer, |
1136 | }; | 1136 | }; |
1137 | 1137 | ||
1138 | static int __devinit snd_vt1724_pcm_profi(struct snd_ice1712 *ice, int device) | 1138 | static int snd_vt1724_pcm_profi(struct snd_ice1712 *ice, int device) |
1139 | { | 1139 | { |
1140 | struct snd_pcm *pcm; | 1140 | struct snd_pcm *pcm; |
1141 | int capt, err; | 1141 | int capt, err; |
@@ -1315,7 +1315,7 @@ static struct snd_pcm_ops snd_vt1724_capture_spdif_ops = { | |||
1315 | }; | 1315 | }; |
1316 | 1316 | ||
1317 | 1317 | ||
1318 | static int __devinit snd_vt1724_pcm_spdif(struct snd_ice1712 *ice, int device) | 1318 | static int snd_vt1724_pcm_spdif(struct snd_ice1712 *ice, int device) |
1319 | { | 1319 | { |
1320 | char *name; | 1320 | char *name; |
1321 | struct snd_pcm *pcm; | 1321 | struct snd_pcm *pcm; |
@@ -1449,7 +1449,7 @@ static struct snd_pcm_ops snd_vt1724_playback_indep_ops = { | |||
1449 | }; | 1449 | }; |
1450 | 1450 | ||
1451 | 1451 | ||
1452 | static int __devinit snd_vt1724_pcm_indep(struct snd_ice1712 *ice, int device) | 1452 | static int snd_vt1724_pcm_indep(struct snd_ice1712 *ice, int device) |
1453 | { | 1453 | { |
1454 | struct snd_pcm *pcm; | 1454 | struct snd_pcm *pcm; |
1455 | int play; | 1455 | int play; |
@@ -1484,7 +1484,7 @@ static int __devinit snd_vt1724_pcm_indep(struct snd_ice1712 *ice, int device) | |||
1484 | * Mixer section | 1484 | * Mixer section |
1485 | */ | 1485 | */ |
1486 | 1486 | ||
1487 | static int __devinit snd_vt1724_ac97_mixer(struct snd_ice1712 *ice) | 1487 | static int snd_vt1724_ac97_mixer(struct snd_ice1712 *ice) |
1488 | { | 1488 | { |
1489 | int err; | 1489 | int err; |
1490 | 1490 | ||
@@ -1570,7 +1570,7 @@ static void snd_vt1724_proc_read(struct snd_info_entry *entry, | |||
1570 | idx, inb(ice->profi_port+idx)); | 1570 | idx, inb(ice->profi_port+idx)); |
1571 | } | 1571 | } |
1572 | 1572 | ||
1573 | static void __devinit snd_vt1724_proc_init(struct snd_ice1712 *ice) | 1573 | static void snd_vt1724_proc_init(struct snd_ice1712 *ice) |
1574 | { | 1574 | { |
1575 | struct snd_info_entry *entry; | 1575 | struct snd_info_entry *entry; |
1576 | 1576 | ||
@@ -1599,7 +1599,7 @@ static int snd_vt1724_eeprom_get(struct snd_kcontrol *kcontrol, | |||
1599 | return 0; | 1599 | return 0; |
1600 | } | 1600 | } |
1601 | 1601 | ||
1602 | static struct snd_kcontrol_new snd_vt1724_eeprom __devinitdata = { | 1602 | static struct snd_kcontrol_new snd_vt1724_eeprom = { |
1603 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1603 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1604 | .name = "ICE1724 EEPROM", | 1604 | .name = "ICE1724 EEPROM", |
1605 | .access = SNDRV_CTL_ELEM_ACCESS_READ, | 1605 | .access = SNDRV_CTL_ELEM_ACCESS_READ, |
@@ -1712,7 +1712,7 @@ static int snd_vt1724_spdif_default_put(struct snd_kcontrol *kcontrol, | |||
1712 | return val != old; | 1712 | return val != old; |
1713 | } | 1713 | } |
1714 | 1714 | ||
1715 | static struct snd_kcontrol_new snd_vt1724_spdif_default __devinitdata = | 1715 | static struct snd_kcontrol_new snd_vt1724_spdif_default = |
1716 | { | 1716 | { |
1717 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1717 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
1718 | .name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, DEFAULT), | 1718 | .name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, DEFAULT), |
@@ -1744,7 +1744,7 @@ static int snd_vt1724_spdif_maskp_get(struct snd_kcontrol *kcontrol, | |||
1744 | return 0; | 1744 | return 0; |
1745 | } | 1745 | } |
1746 | 1746 | ||
1747 | static struct snd_kcontrol_new snd_vt1724_spdif_maskc __devinitdata = | 1747 | static struct snd_kcontrol_new snd_vt1724_spdif_maskc = |
1748 | { | 1748 | { |
1749 | .access = SNDRV_CTL_ELEM_ACCESS_READ, | 1749 | .access = SNDRV_CTL_ELEM_ACCESS_READ, |
1750 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1750 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
@@ -1753,7 +1753,7 @@ static struct snd_kcontrol_new snd_vt1724_spdif_maskc __devinitdata = | |||
1753 | .get = snd_vt1724_spdif_maskc_get, | 1753 | .get = snd_vt1724_spdif_maskc_get, |
1754 | }; | 1754 | }; |
1755 | 1755 | ||
1756 | static struct snd_kcontrol_new snd_vt1724_spdif_maskp __devinitdata = | 1756 | static struct snd_kcontrol_new snd_vt1724_spdif_maskp = |
1757 | { | 1757 | { |
1758 | .access = SNDRV_CTL_ELEM_ACCESS_READ, | 1758 | .access = SNDRV_CTL_ELEM_ACCESS_READ, |
1759 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1759 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
@@ -1790,7 +1790,7 @@ static int snd_vt1724_spdif_sw_put(struct snd_kcontrol *kcontrol, | |||
1790 | return old != val; | 1790 | return old != val; |
1791 | } | 1791 | } |
1792 | 1792 | ||
1793 | static struct snd_kcontrol_new snd_vt1724_spdif_switch __devinitdata = | 1793 | static struct snd_kcontrol_new snd_vt1724_spdif_switch = |
1794 | { | 1794 | { |
1795 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1795 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1796 | /* FIXME: the following conflict with IEC958 Playback Route */ | 1796 | /* FIXME: the following conflict with IEC958 Playback Route */ |
@@ -1965,7 +1965,7 @@ static int snd_vt1724_pro_internal_clock_put(struct snd_kcontrol *kcontrol, | |||
1965 | return old_rate != new_rate; | 1965 | return old_rate != new_rate; |
1966 | } | 1966 | } |
1967 | 1967 | ||
1968 | static struct snd_kcontrol_new snd_vt1724_pro_internal_clock __devinitdata = { | 1968 | static struct snd_kcontrol_new snd_vt1724_pro_internal_clock = { |
1969 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1969 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1970 | .name = "Multi Track Internal Clock", | 1970 | .name = "Multi Track Internal Clock", |
1971 | .info = snd_vt1724_pro_internal_clock_info, | 1971 | .info = snd_vt1724_pro_internal_clock_info, |
@@ -1996,7 +1996,7 @@ static int snd_vt1724_pro_rate_locking_put(struct snd_kcontrol *kcontrol, | |||
1996 | return change; | 1996 | return change; |
1997 | } | 1997 | } |
1998 | 1998 | ||
1999 | static struct snd_kcontrol_new snd_vt1724_pro_rate_locking __devinitdata = { | 1999 | static struct snd_kcontrol_new snd_vt1724_pro_rate_locking = { |
2000 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2000 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2001 | .name = "Multi Track Rate Locking", | 2001 | .name = "Multi Track Rate Locking", |
2002 | .info = snd_vt1724_pro_rate_locking_info, | 2002 | .info = snd_vt1724_pro_rate_locking_info, |
@@ -2027,7 +2027,7 @@ static int snd_vt1724_pro_rate_reset_put(struct snd_kcontrol *kcontrol, | |||
2027 | return change; | 2027 | return change; |
2028 | } | 2028 | } |
2029 | 2029 | ||
2030 | static struct snd_kcontrol_new snd_vt1724_pro_rate_reset __devinitdata = { | 2030 | static struct snd_kcontrol_new snd_vt1724_pro_rate_reset = { |
2031 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2031 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2032 | .name = "Multi Track Rate Reset", | 2032 | .name = "Multi Track Rate Reset", |
2033 | .info = snd_vt1724_pro_rate_reset_info, | 2033 | .info = snd_vt1724_pro_rate_reset_info, |
@@ -2149,7 +2149,7 @@ static int snd_vt1724_pro_route_spdif_put(struct snd_kcontrol *kcontrol, | |||
2149 | digital_route_shift(idx)); | 2149 | digital_route_shift(idx)); |
2150 | } | 2150 | } |
2151 | 2151 | ||
2152 | static struct snd_kcontrol_new snd_vt1724_mixer_pro_analog_route __devinitdata = | 2152 | static struct snd_kcontrol_new snd_vt1724_mixer_pro_analog_route = |
2153 | { | 2153 | { |
2154 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2154 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2155 | .name = "H/W Playback Route", | 2155 | .name = "H/W Playback Route", |
@@ -2158,7 +2158,7 @@ static struct snd_kcontrol_new snd_vt1724_mixer_pro_analog_route __devinitdata = | |||
2158 | .put = snd_vt1724_pro_route_analog_put, | 2158 | .put = snd_vt1724_pro_route_analog_put, |
2159 | }; | 2159 | }; |
2160 | 2160 | ||
2161 | static struct snd_kcontrol_new snd_vt1724_mixer_pro_spdif_route __devinitdata = { | 2161 | static struct snd_kcontrol_new snd_vt1724_mixer_pro_spdif_route = { |
2162 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2162 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2163 | .name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, NONE) "Route", | 2163 | .name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, NONE) "Route", |
2164 | .info = snd_vt1724_pro_route_info, | 2164 | .info = snd_vt1724_pro_route_info, |
@@ -2194,7 +2194,7 @@ static int snd_vt1724_pro_peak_get(struct snd_kcontrol *kcontrol, | |||
2194 | return 0; | 2194 | return 0; |
2195 | } | 2195 | } |
2196 | 2196 | ||
2197 | static struct snd_kcontrol_new snd_vt1724_mixer_pro_peak __devinitdata = { | 2197 | static struct snd_kcontrol_new snd_vt1724_mixer_pro_peak = { |
2198 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 2198 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
2199 | .name = "Multi Track Peak", | 2199 | .name = "Multi Track Peak", |
2200 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, | 2200 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, |
@@ -2206,13 +2206,13 @@ static struct snd_kcontrol_new snd_vt1724_mixer_pro_peak __devinitdata = { | |||
2206 | * | 2206 | * |
2207 | */ | 2207 | */ |
2208 | 2208 | ||
2209 | static struct snd_ice1712_card_info no_matched __devinitdata; | 2209 | static struct snd_ice1712_card_info no_matched; |
2210 | 2210 | ||
2211 | 2211 | ||
2212 | /* | 2212 | /* |
2213 | ooAoo cards with no controls | 2213 | ooAoo cards with no controls |
2214 | */ | 2214 | */ |
2215 | static unsigned char ooaoo_sq210_eeprom[] __devinitdata = { | 2215 | static unsigned char ooaoo_sq210_eeprom[] = { |
2216 | [ICE_EEP2_SYSCONF] = 0x4c, /* 49MHz crystal, no mpu401, no ADC, | 2216 | [ICE_EEP2_SYSCONF] = 0x4c, /* 49MHz crystal, no mpu401, no ADC, |
2217 | 1xDACs */ | 2217 | 1xDACs */ |
2218 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 2218 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
@@ -2232,7 +2232,7 @@ static unsigned char ooaoo_sq210_eeprom[] __devinitdata = { | |||
2232 | }; | 2232 | }; |
2233 | 2233 | ||
2234 | 2234 | ||
2235 | static struct snd_ice1712_card_info snd_vt1724_ooaoo_cards[] __devinitdata = { | 2235 | static struct snd_ice1712_card_info snd_vt1724_ooaoo_cards[] = { |
2236 | { | 2236 | { |
2237 | .name = "ooAoo SQ210a", | 2237 | .name = "ooAoo SQ210a", |
2238 | .model = "sq210a", | 2238 | .model = "sq210a", |
@@ -2242,7 +2242,7 @@ static struct snd_ice1712_card_info snd_vt1724_ooaoo_cards[] __devinitdata = { | |||
2242 | { } /* terminator */ | 2242 | { } /* terminator */ |
2243 | }; | 2243 | }; |
2244 | 2244 | ||
2245 | static struct snd_ice1712_card_info *card_tables[] __devinitdata = { | 2245 | static struct snd_ice1712_card_info *card_tables[] = { |
2246 | snd_vt1724_revo_cards, | 2246 | snd_vt1724_revo_cards, |
2247 | snd_vt1724_amp_cards, | 2247 | snd_vt1724_amp_cards, |
2248 | snd_vt1724_aureon_cards, | 2248 | snd_vt1724_aureon_cards, |
@@ -2307,8 +2307,8 @@ void snd_vt1724_write_i2c(struct snd_ice1712 *ice, | |||
2307 | mutex_unlock(&ice->i2c_mutex); | 2307 | mutex_unlock(&ice->i2c_mutex); |
2308 | } | 2308 | } |
2309 | 2309 | ||
2310 | static int __devinit snd_vt1724_read_eeprom(struct snd_ice1712 *ice, | 2310 | static int snd_vt1724_read_eeprom(struct snd_ice1712 *ice, |
2311 | const char *modelname) | 2311 | const char *modelname) |
2312 | { | 2312 | { |
2313 | const int dev = 0xa0; /* EEPROM device address */ | 2313 | const int dev = 0xa0; /* EEPROM device address */ |
2314 | unsigned int i, size; | 2314 | unsigned int i, size; |
@@ -2430,7 +2430,7 @@ static int snd_vt1724_chip_init(struct snd_ice1712 *ice) | |||
2430 | return 0; | 2430 | return 0; |
2431 | } | 2431 | } |
2432 | 2432 | ||
2433 | static int __devinit snd_vt1724_spdif_build_controls(struct snd_ice1712 *ice) | 2433 | static int snd_vt1724_spdif_build_controls(struct snd_ice1712 *ice) |
2434 | { | 2434 | { |
2435 | int err; | 2435 | int err; |
2436 | struct snd_kcontrol *kctl; | 2436 | struct snd_kcontrol *kctl; |
@@ -2472,7 +2472,7 @@ static int __devinit snd_vt1724_spdif_build_controls(struct snd_ice1712 *ice) | |||
2472 | } | 2472 | } |
2473 | 2473 | ||
2474 | 2474 | ||
2475 | static int __devinit snd_vt1724_build_controls(struct snd_ice1712 *ice) | 2475 | static int snd_vt1724_build_controls(struct snd_ice1712 *ice) |
2476 | { | 2476 | { |
2477 | int err; | 2477 | int err; |
2478 | 2478 | ||
@@ -2532,10 +2532,10 @@ static int snd_vt1724_dev_free(struct snd_device *device) | |||
2532 | return snd_vt1724_free(ice); | 2532 | return snd_vt1724_free(ice); |
2533 | } | 2533 | } |
2534 | 2534 | ||
2535 | static int __devinit snd_vt1724_create(struct snd_card *card, | 2535 | static int snd_vt1724_create(struct snd_card *card, |
2536 | struct pci_dev *pci, | 2536 | struct pci_dev *pci, |
2537 | const char *modelname, | 2537 | const char *modelname, |
2538 | struct snd_ice1712 **r_ice1712) | 2538 | struct snd_ice1712 **r_ice1712) |
2539 | { | 2539 | { |
2540 | struct snd_ice1712 *ice; | 2540 | struct snd_ice1712 *ice; |
2541 | int err; | 2541 | int err; |
@@ -2622,8 +2622,8 @@ static int __devinit snd_vt1724_create(struct snd_card *card, | |||
2622 | * | 2622 | * |
2623 | */ | 2623 | */ |
2624 | 2624 | ||
2625 | static int __devinit snd_vt1724_probe(struct pci_dev *pci, | 2625 | static int snd_vt1724_probe(struct pci_dev *pci, |
2626 | const struct pci_device_id *pci_id) | 2626 | const struct pci_device_id *pci_id) |
2627 | { | 2627 | { |
2628 | static int dev; | 2628 | static int dev; |
2629 | struct snd_card *card; | 2629 | struct snd_card *card; |
@@ -2792,7 +2792,7 @@ __found: | |||
2792 | return 0; | 2792 | return 0; |
2793 | } | 2793 | } |
2794 | 2794 | ||
2795 | static void __devexit snd_vt1724_remove(struct pci_dev *pci) | 2795 | static void snd_vt1724_remove(struct pci_dev *pci) |
2796 | { | 2796 | { |
2797 | struct snd_card *card = pci_get_drvdata(pci); | 2797 | struct snd_card *card = pci_get_drvdata(pci); |
2798 | struct snd_ice1712 *ice = card->private_data; | 2798 | struct snd_ice1712 *ice = card->private_data; |
@@ -2900,7 +2900,7 @@ static struct pci_driver vt1724_driver = { | |||
2900 | .name = KBUILD_MODNAME, | 2900 | .name = KBUILD_MODNAME, |
2901 | .id_table = snd_vt1724_ids, | 2901 | .id_table = snd_vt1724_ids, |
2902 | .probe = snd_vt1724_probe, | 2902 | .probe = snd_vt1724_probe, |
2903 | .remove = __devexit_p(snd_vt1724_remove), | 2903 | .remove = snd_vt1724_remove, |
2904 | .driver = { | 2904 | .driver = { |
2905 | .pm = SND_VT1724_PM_OPS, | 2905 | .pm = SND_VT1724_PM_OPS, |
2906 | }, | 2906 | }, |
diff --git a/sound/pci/ice1712/juli.c b/sound/pci/ice1712/juli.c index a6b23b421512..8855933e710d 100644 --- a/sound/pci/ice1712/juli.c +++ b/sound/pci/ice1712/juli.c | |||
@@ -282,7 +282,7 @@ static const struct snd_akm4xxx_dac_channel juli_dac[] = { | |||
282 | }; | 282 | }; |
283 | 283 | ||
284 | 284 | ||
285 | static struct snd_akm4xxx akm_juli_dac __devinitdata = { | 285 | static struct snd_akm4xxx akm_juli_dac = { |
286 | .type = SND_AK4358, | 286 | .type = SND_AK4358, |
287 | .num_dacs = 8, /* DAC1 - analog out | 287 | .num_dacs = 8, /* DAC1 - analog out |
288 | DAC2 - analog in monitor | 288 | DAC2 - analog in monitor |
@@ -357,7 +357,7 @@ static int juli_mute_put(struct snd_kcontrol *kcontrol, | |||
357 | return 0; | 357 | return 0; |
358 | } | 358 | } |
359 | 359 | ||
360 | static struct snd_kcontrol_new juli_mute_controls[] __devinitdata = { | 360 | static struct snd_kcontrol_new juli_mute_controls[] = { |
361 | { | 361 | { |
362 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 362 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
363 | .name = "Master Playback Switch", | 363 | .name = "Master Playback Switch", |
@@ -411,7 +411,7 @@ static struct snd_kcontrol_new juli_mute_controls[] __devinitdata = { | |||
411 | }, | 411 | }, |
412 | }; | 412 | }; |
413 | 413 | ||
414 | static char *slave_vols[] __devinitdata = { | 414 | static char *slave_vols[] = { |
415 | PCM_VOLUME, | 415 | PCM_VOLUME, |
416 | MONITOR_AN_IN_VOLUME, | 416 | MONITOR_AN_IN_VOLUME, |
417 | MONITOR_DIG_IN_VOLUME, | 417 | MONITOR_DIG_IN_VOLUME, |
@@ -419,11 +419,11 @@ static char *slave_vols[] __devinitdata = { | |||
419 | NULL | 419 | NULL |
420 | }; | 420 | }; |
421 | 421 | ||
422 | static __devinitdata | 422 | static |
423 | DECLARE_TLV_DB_SCALE(juli_master_db_scale, -6350, 50, 1); | 423 | DECLARE_TLV_DB_SCALE(juli_master_db_scale, -6350, 50, 1); |
424 | 424 | ||
425 | static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card, | 425 | static struct snd_kcontrol *ctl_find(struct snd_card *card, |
426 | const char *name) | 426 | const char *name) |
427 | { | 427 | { |
428 | struct snd_ctl_elem_id sid; | 428 | struct snd_ctl_elem_id sid; |
429 | memset(&sid, 0, sizeof(sid)); | 429 | memset(&sid, 0, sizeof(sid)); |
@@ -433,9 +433,9 @@ static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card, | |||
433 | return snd_ctl_find_id(card, &sid); | 433 | return snd_ctl_find_id(card, &sid); |
434 | } | 434 | } |
435 | 435 | ||
436 | static void __devinit add_slaves(struct snd_card *card, | 436 | static void add_slaves(struct snd_card *card, |
437 | struct snd_kcontrol *master, | 437 | struct snd_kcontrol *master, |
438 | char * const *list) | 438 | char * const *list) |
439 | { | 439 | { |
440 | for (; *list; list++) { | 440 | for (; *list; list++) { |
441 | struct snd_kcontrol *slave = ctl_find(card, *list); | 441 | struct snd_kcontrol *slave = ctl_find(card, *list); |
@@ -447,7 +447,7 @@ static void __devinit add_slaves(struct snd_card *card, | |||
447 | } | 447 | } |
448 | } | 448 | } |
449 | 449 | ||
450 | static int __devinit juli_add_controls(struct snd_ice1712 *ice) | 450 | static int juli_add_controls(struct snd_ice1712 *ice) |
451 | { | 451 | { |
452 | struct juli_spec *spec = ice->spec; | 452 | struct juli_spec *spec = ice->spec; |
453 | int err; | 453 | int err; |
@@ -579,7 +579,7 @@ static void juli_ak4114_change(struct ak4114 *ak4114, unsigned char c0, | |||
579 | } | 579 | } |
580 | } | 580 | } |
581 | 581 | ||
582 | static int __devinit juli_init(struct snd_ice1712 *ice) | 582 | static int juli_init(struct snd_ice1712 *ice) |
583 | { | 583 | { |
584 | static const unsigned char ak4114_init_vals[] = { | 584 | static const unsigned char ak4114_init_vals[] = { |
585 | /* AK4117_REG_PWRDN */ AK4114_RST | AK4114_PWN | | 585 | /* AK4117_REG_PWRDN */ AK4114_RST | AK4114_PWN | |
@@ -667,7 +667,7 @@ static int __devinit juli_init(struct snd_ice1712 *ice) | |||
667 | * hence the driver needs to sets up it properly. | 667 | * hence the driver needs to sets up it properly. |
668 | */ | 668 | */ |
669 | 669 | ||
670 | static unsigned char juli_eeprom[] __devinitdata = { | 670 | static unsigned char juli_eeprom[] = { |
671 | [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401, 1xADC, 1xDACs, | 671 | [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401, 1xADC, 1xDACs, |
672 | SPDIF in */ | 672 | SPDIF in */ |
673 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 673 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
@@ -686,7 +686,7 @@ static unsigned char juli_eeprom[] __devinitdata = { | |||
686 | }; | 686 | }; |
687 | 687 | ||
688 | /* entry point */ | 688 | /* entry point */ |
689 | struct snd_ice1712_card_info snd_vt1724_juli_cards[] __devinitdata = { | 689 | struct snd_ice1712_card_info snd_vt1724_juli_cards[] = { |
690 | { | 690 | { |
691 | .subvendor = VT1724_SUBDEVICE_JULI, | 691 | .subvendor = VT1724_SUBDEVICE_JULI, |
692 | .name = "ESI Juli@", | 692 | .name = "ESI Juli@", |
diff --git a/sound/pci/ice1712/maya44.c b/sound/pci/ice1712/maya44.c index d8d749e5ed41..63aa39f06f02 100644 --- a/sound/pci/ice1712/maya44.c +++ b/sound/pci/ice1712/maya44.c | |||
@@ -454,7 +454,7 @@ static int maya_pb_route_put(struct snd_kcontrol *kcontrol, | |||
454 | * controls to be added | 454 | * controls to be added |
455 | */ | 455 | */ |
456 | 456 | ||
457 | static struct snd_kcontrol_new maya_controls[] __devinitdata = { | 457 | static struct snd_kcontrol_new maya_controls[] = { |
458 | { | 458 | { |
459 | .name = "Crossmix Playback Volume", | 459 | .name = "Crossmix Playback Volume", |
460 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 460 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
@@ -544,7 +544,7 @@ static struct snd_kcontrol_new maya_controls[] __devinitdata = { | |||
544 | }, | 544 | }, |
545 | }; | 545 | }; |
546 | 546 | ||
547 | static int __devinit maya44_add_controls(struct snd_ice1712 *ice) | 547 | static int maya44_add_controls(struct snd_ice1712 *ice) |
548 | { | 548 | { |
549 | int err, i; | 549 | int err, i; |
550 | 550 | ||
@@ -561,8 +561,8 @@ static int __devinit maya44_add_controls(struct snd_ice1712 *ice) | |||
561 | /* | 561 | /* |
562 | * initialize a wm8776 chip | 562 | * initialize a wm8776 chip |
563 | */ | 563 | */ |
564 | static void __devinit wm8776_init(struct snd_ice1712 *ice, | 564 | static void wm8776_init(struct snd_ice1712 *ice, |
565 | struct snd_wm8776 *wm, unsigned int addr) | 565 | struct snd_wm8776 *wm, unsigned int addr) |
566 | { | 566 | { |
567 | static const unsigned short inits_wm8776[] = { | 567 | static const unsigned short inits_wm8776[] = { |
568 | 0x02, 0x100, /* R2: headphone L+R muted + update */ | 568 | 0x02, 0x100, /* R2: headphone L+R muted + update */ |
@@ -692,14 +692,14 @@ static struct snd_pcm_hw_constraint_list dac_rates = { | |||
692 | /* | 692 | /* |
693 | * chip addresses on I2C bus | 693 | * chip addresses on I2C bus |
694 | */ | 694 | */ |
695 | static unsigned char wm8776_addr[2] __devinitdata = { | 695 | static unsigned char wm8776_addr[2] = { |
696 | 0x34, 0x36, /* codec 0 & 1 */ | 696 | 0x34, 0x36, /* codec 0 & 1 */ |
697 | }; | 697 | }; |
698 | 698 | ||
699 | /* | 699 | /* |
700 | * initialize the chip | 700 | * initialize the chip |
701 | */ | 701 | */ |
702 | static int __devinit maya44_init(struct snd_ice1712 *ice) | 702 | static int maya44_init(struct snd_ice1712 *ice) |
703 | { | 703 | { |
704 | int i; | 704 | int i; |
705 | struct snd_maya44 *chip; | 705 | struct snd_maya44 *chip; |
@@ -742,7 +742,7 @@ static int __devinit maya44_init(struct snd_ice1712 *ice) | |||
742 | * hence the driver needs to sets up it properly. | 742 | * hence the driver needs to sets up it properly. |
743 | */ | 743 | */ |
744 | 744 | ||
745 | static unsigned char maya44_eeprom[] __devinitdata = { | 745 | static unsigned char maya44_eeprom[] = { |
746 | [ICE_EEP2_SYSCONF] = 0x45, | 746 | [ICE_EEP2_SYSCONF] = 0x45, |
747 | /* clock xin1=49.152MHz, mpu401, 2 stereo ADCs+DACs */ | 747 | /* clock xin1=49.152MHz, mpu401, 2 stereo ADCs+DACs */ |
748 | [ICE_EEP2_ACLINK] = 0x80, | 748 | [ICE_EEP2_ACLINK] = 0x80, |
@@ -764,7 +764,7 @@ static unsigned char maya44_eeprom[] __devinitdata = { | |||
764 | }; | 764 | }; |
765 | 765 | ||
766 | /* entry point */ | 766 | /* entry point */ |
767 | struct snd_ice1712_card_info snd_vt1724_maya44_cards[] __devinitdata = { | 767 | struct snd_ice1712_card_info snd_vt1724_maya44_cards[] = { |
768 | { | 768 | { |
769 | .subvendor = VT1724_SUBDEVICE_MAYA44, | 769 | .subvendor = VT1724_SUBDEVICE_MAYA44, |
770 | .name = "ESI Maya44", | 770 | .name = "ESI Maya44", |
diff --git a/sound/pci/ice1712/phase.c b/sound/pci/ice1712/phase.c index c9be75a457c3..0011e04f36a2 100644 --- a/sound/pci/ice1712/phase.c +++ b/sound/pci/ice1712/phase.c | |||
@@ -102,13 +102,13 @@ static const unsigned char wm_vol[256] = { | |||
102 | #define WM_VOL_MAX (sizeof(wm_vol) - 1) | 102 | #define WM_VOL_MAX (sizeof(wm_vol) - 1) |
103 | #define WM_VOL_MUTE 0x8000 | 103 | #define WM_VOL_MUTE 0x8000 |
104 | 104 | ||
105 | static struct snd_akm4xxx akm_phase22 __devinitdata = { | 105 | static struct snd_akm4xxx akm_phase22 = { |
106 | .type = SND_AK4524, | 106 | .type = SND_AK4524, |
107 | .num_dacs = 2, | 107 | .num_dacs = 2, |
108 | .num_adcs = 2, | 108 | .num_adcs = 2, |
109 | }; | 109 | }; |
110 | 110 | ||
111 | static struct snd_ak4xxx_private akm_phase22_priv __devinitdata = { | 111 | static struct snd_ak4xxx_private akm_phase22_priv = { |
112 | .caddr = 2, | 112 | .caddr = 2, |
113 | .cif = 1, | 113 | .cif = 1, |
114 | .data_mask = 1 << 4, | 114 | .data_mask = 1 << 4, |
@@ -120,7 +120,7 @@ static struct snd_ak4xxx_private akm_phase22_priv __devinitdata = { | |||
120 | .mask_flags = 0, | 120 | .mask_flags = 0, |
121 | }; | 121 | }; |
122 | 122 | ||
123 | static int __devinit phase22_init(struct snd_ice1712 *ice) | 123 | static int phase22_init(struct snd_ice1712 *ice) |
124 | { | 124 | { |
125 | struct snd_akm4xxx *ak; | 125 | struct snd_akm4xxx *ak; |
126 | int err; | 126 | int err; |
@@ -157,7 +157,7 @@ static int __devinit phase22_init(struct snd_ice1712 *ice) | |||
157 | return 0; | 157 | return 0; |
158 | } | 158 | } |
159 | 159 | ||
160 | static int __devinit phase22_add_controls(struct snd_ice1712 *ice) | 160 | static int phase22_add_controls(struct snd_ice1712 *ice) |
161 | { | 161 | { |
162 | int err = 0; | 162 | int err = 0; |
163 | 163 | ||
@@ -171,7 +171,7 @@ static int __devinit phase22_add_controls(struct snd_ice1712 *ice) | |||
171 | return 0; | 171 | return 0; |
172 | } | 172 | } |
173 | 173 | ||
174 | static unsigned char phase22_eeprom[] __devinitdata = { | 174 | static unsigned char phase22_eeprom[] = { |
175 | [ICE_EEP2_SYSCONF] = 0x28, /* clock 512, mpu 401, | 175 | [ICE_EEP2_SYSCONF] = 0x28, /* clock 512, mpu 401, |
176 | spdif-in/1xADC, 1xDACs */ | 176 | spdif-in/1xADC, 1xDACs */ |
177 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 177 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
@@ -188,7 +188,7 @@ static unsigned char phase22_eeprom[] __devinitdata = { | |||
188 | [ICE_EEP2_GPIO_STATE2] = 0x00, | 188 | [ICE_EEP2_GPIO_STATE2] = 0x00, |
189 | }; | 189 | }; |
190 | 190 | ||
191 | static unsigned char phase28_eeprom[] __devinitdata = { | 191 | static unsigned char phase28_eeprom[] = { |
192 | [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401, | 192 | [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401, |
193 | spdif-in/1xADC, 4xDACs */ | 193 | spdif-in/1xADC, 4xDACs */ |
194 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 194 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
@@ -378,7 +378,7 @@ static int wm_master_vol_put(struct snd_kcontrol *kcontrol, | |||
378 | return change; | 378 | return change; |
379 | } | 379 | } |
380 | 380 | ||
381 | static int __devinit phase28_init(struct snd_ice1712 *ice) | 381 | static int phase28_init(struct snd_ice1712 *ice) |
382 | { | 382 | { |
383 | static const unsigned short wm_inits_phase28[] = { | 383 | static const unsigned short wm_inits_phase28[] = { |
384 | /* These come first to reduce init pop noise */ | 384 | /* These come first to reduce init pop noise */ |
@@ -769,7 +769,7 @@ static int phase28_oversampling_put(struct snd_kcontrol *kcontrol, | |||
769 | static const DECLARE_TLV_DB_SCALE(db_scale_wm_dac, -12700, 100, 1); | 769 | static const DECLARE_TLV_DB_SCALE(db_scale_wm_dac, -12700, 100, 1); |
770 | static const DECLARE_TLV_DB_SCALE(db_scale_wm_pcm, -6400, 50, 1); | 770 | static const DECLARE_TLV_DB_SCALE(db_scale_wm_pcm, -6400, 50, 1); |
771 | 771 | ||
772 | static struct snd_kcontrol_new phase28_dac_controls[] __devinitdata = { | 772 | static struct snd_kcontrol_new phase28_dac_controls[] = { |
773 | { | 773 | { |
774 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 774 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
775 | .name = "Master Playback Switch", | 775 | .name = "Master Playback Switch", |
@@ -884,7 +884,7 @@ static struct snd_kcontrol_new phase28_dac_controls[] __devinitdata = { | |||
884 | } | 884 | } |
885 | }; | 885 | }; |
886 | 886 | ||
887 | static struct snd_kcontrol_new wm_controls[] __devinitdata = { | 887 | static struct snd_kcontrol_new wm_controls[] = { |
888 | { | 888 | { |
889 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 889 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
890 | .name = "PCM Playback Switch", | 890 | .name = "PCM Playback Switch", |
@@ -918,7 +918,7 @@ static struct snd_kcontrol_new wm_controls[] __devinitdata = { | |||
918 | } | 918 | } |
919 | }; | 919 | }; |
920 | 920 | ||
921 | static int __devinit phase28_add_controls(struct snd_ice1712 *ice) | 921 | static int phase28_add_controls(struct snd_ice1712 *ice) |
922 | { | 922 | { |
923 | unsigned int i, counts; | 923 | unsigned int i, counts; |
924 | int err; | 924 | int err; |
@@ -942,7 +942,7 @@ static int __devinit phase28_add_controls(struct snd_ice1712 *ice) | |||
942 | return 0; | 942 | return 0; |
943 | } | 943 | } |
944 | 944 | ||
945 | struct snd_ice1712_card_info snd_vt1724_phase_cards[] __devinitdata = { | 945 | struct snd_ice1712_card_info snd_vt1724_phase_cards[] = { |
946 | { | 946 | { |
947 | .subvendor = VT1724_SUBDEVICE_PHASE22, | 947 | .subvendor = VT1724_SUBDEVICE_PHASE22, |
948 | .name = "Terratec PHASE 22", | 948 | .name = "Terratec PHASE 22", |
diff --git a/sound/pci/ice1712/pontis.c b/sound/pci/ice1712/pontis.c index 3ce1289263a3..5555eb4b2400 100644 --- a/sound/pci/ice1712/pontis.c +++ b/sound/pci/ice1712/pontis.c | |||
@@ -549,7 +549,7 @@ static const DECLARE_TLV_DB_SCALE(db_scale_volume, -6400, 50, 1); | |||
549 | * mixers | 549 | * mixers |
550 | */ | 550 | */ |
551 | 551 | ||
552 | static struct snd_kcontrol_new pontis_controls[] __devinitdata = { | 552 | static struct snd_kcontrol_new pontis_controls[] = { |
553 | { | 553 | { |
554 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 554 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
555 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 555 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
@@ -696,7 +696,7 @@ static void cs_proc_init(struct snd_ice1712 *ice) | |||
696 | } | 696 | } |
697 | 697 | ||
698 | 698 | ||
699 | static int __devinit pontis_add_controls(struct snd_ice1712 *ice) | 699 | static int pontis_add_controls(struct snd_ice1712 *ice) |
700 | { | 700 | { |
701 | unsigned int i; | 701 | unsigned int i; |
702 | int err; | 702 | int err; |
@@ -717,7 +717,7 @@ static int __devinit pontis_add_controls(struct snd_ice1712 *ice) | |||
717 | /* | 717 | /* |
718 | * initialize the chip | 718 | * initialize the chip |
719 | */ | 719 | */ |
720 | static int __devinit pontis_init(struct snd_ice1712 *ice) | 720 | static int pontis_init(struct snd_ice1712 *ice) |
721 | { | 721 | { |
722 | static const unsigned short wm_inits[] = { | 722 | static const unsigned short wm_inits[] = { |
723 | /* These come first to reduce init pop noise */ | 723 | /* These come first to reduce init pop noise */ |
@@ -804,7 +804,7 @@ static int __devinit pontis_init(struct snd_ice1712 *ice) | |||
804 | * hence the driver needs to sets up it properly. | 804 | * hence the driver needs to sets up it properly. |
805 | */ | 805 | */ |
806 | 806 | ||
807 | static unsigned char pontis_eeprom[] __devinitdata = { | 807 | static unsigned char pontis_eeprom[] = { |
808 | [ICE_EEP2_SYSCONF] = 0x08, /* clock 256, mpu401, spdif-in/ADC, 1DAC */ | 808 | [ICE_EEP2_SYSCONF] = 0x08, /* clock 256, mpu401, spdif-in/ADC, 1DAC */ |
809 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 809 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
810 | [ICE_EEP2_I2S] = 0xf8, /* vol, 96k, 24bit, 192k */ | 810 | [ICE_EEP2_I2S] = 0xf8, /* vol, 96k, 24bit, 192k */ |
@@ -821,7 +821,7 @@ static unsigned char pontis_eeprom[] __devinitdata = { | |||
821 | }; | 821 | }; |
822 | 822 | ||
823 | /* entry point */ | 823 | /* entry point */ |
824 | struct snd_ice1712_card_info snd_vt1720_pontis_cards[] __devinitdata = { | 824 | struct snd_ice1712_card_info snd_vt1720_pontis_cards[] = { |
825 | { | 825 | { |
826 | .subvendor = VT1720_SUBDEVICE_PONTIS_MS300, | 826 | .subvendor = VT1720_SUBDEVICE_PONTIS_MS300, |
827 | .name = "Pontis MS300", | 827 | .name = "Pontis MS300", |
diff --git a/sound/pci/ice1712/prodigy192.c b/sound/pci/ice1712/prodigy192.c index 3fcf581e7ef8..e610339f7601 100644 --- a/sound/pci/ice1712/prodigy192.c +++ b/sound/pci/ice1712/prodigy192.c | |||
@@ -368,7 +368,7 @@ static const DECLARE_TLV_DB_SCALE(db_scale_adc, 0, 150, 0); | |||
368 | * mixers | 368 | * mixers |
369 | */ | 369 | */ |
370 | 370 | ||
371 | static struct snd_kcontrol_new stac_controls[] __devinitdata = { | 371 | static struct snd_kcontrol_new stac_controls[] = { |
372 | { | 372 | { |
373 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 373 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
374 | .name = "Master Playback Switch", | 374 | .name = "Master Playback Switch", |
@@ -606,7 +606,7 @@ static int ak4114_input_sw_put(struct snd_kcontrol *kcontrol, | |||
606 | } | 606 | } |
607 | 607 | ||
608 | 608 | ||
609 | static struct snd_kcontrol_new ak4114_controls[] __devinitdata = { | 609 | static struct snd_kcontrol_new ak4114_controls[] = { |
610 | { | 610 | { |
611 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 611 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
612 | .name = "MIODIO IEC958 Capture Input", | 612 | .name = "MIODIO IEC958 Capture Input", |
@@ -671,7 +671,7 @@ static void stac9460_proc_init(struct snd_ice1712 *ice) | |||
671 | } | 671 | } |
672 | 672 | ||
673 | 673 | ||
674 | static int __devinit prodigy192_add_controls(struct snd_ice1712 *ice) | 674 | static int prodigy192_add_controls(struct snd_ice1712 *ice) |
675 | { | 675 | { |
676 | struct prodigy192_spec *spec = ice->spec; | 676 | struct prodigy192_spec *spec = ice->spec; |
677 | unsigned int i; | 677 | unsigned int i; |
@@ -727,7 +727,7 @@ static int prodigy192_miodio_exists(struct snd_ice1712 *ice) | |||
727 | /* | 727 | /* |
728 | * initialize the chip | 728 | * initialize the chip |
729 | */ | 729 | */ |
730 | static int __devinit prodigy192_init(struct snd_ice1712 *ice) | 730 | static int prodigy192_init(struct snd_ice1712 *ice) |
731 | { | 731 | { |
732 | static const unsigned short stac_inits_prodigy[] = { | 732 | static const unsigned short stac_inits_prodigy[] = { |
733 | STAC946X_RESET, 0, | 733 | STAC946X_RESET, 0, |
@@ -783,7 +783,7 @@ static int __devinit prodigy192_init(struct snd_ice1712 *ice) | |||
783 | * hence the driver needs to sets up it properly. | 783 | * hence the driver needs to sets up it properly. |
784 | */ | 784 | */ |
785 | 785 | ||
786 | static unsigned char prodigy71_eeprom[] __devinitdata = { | 786 | static unsigned char prodigy71_eeprom[] = { |
787 | [ICE_EEP2_SYSCONF] = 0x6a, /* 49MHz crystal, mpu401, | 787 | [ICE_EEP2_SYSCONF] = 0x6a, /* 49MHz crystal, mpu401, |
788 | * spdif-in+ 1 stereo ADC, | 788 | * spdif-in+ 1 stereo ADC, |
789 | * 3 stereo DACs | 789 | * 3 stereo DACs |
@@ -807,7 +807,7 @@ static unsigned char prodigy71_eeprom[] __devinitdata = { | |||
807 | 807 | ||
808 | 808 | ||
809 | /* entry point */ | 809 | /* entry point */ |
810 | struct snd_ice1712_card_info snd_vt1724_prodigy192_cards[] __devinitdata = { | 810 | struct snd_ice1712_card_info snd_vt1724_prodigy192_cards[] = { |
811 | { | 811 | { |
812 | .subvendor = VT1724_SUBDEVICE_PRODIGY192VE, | 812 | .subvendor = VT1724_SUBDEVICE_PRODIGY192VE, |
813 | .name = "Audiotrak Prodigy 192", | 813 | .name = "Audiotrak Prodigy 192", |
diff --git a/sound/pci/ice1712/prodigy_hifi.c b/sound/pci/ice1712/prodigy_hifi.c index 4fea87fb5799..2261d1e49150 100644 --- a/sound/pci/ice1712/prodigy_hifi.c +++ b/sound/pci/ice1712/prodigy_hifi.c | |||
@@ -298,7 +298,7 @@ static int ak4396_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem | |||
298 | static const DECLARE_TLV_DB_SCALE(db_scale_wm_dac, -12700, 100, 1); | 298 | static const DECLARE_TLV_DB_SCALE(db_scale_wm_dac, -12700, 100, 1); |
299 | static const DECLARE_TLV_DB_LINEAR(ak4396_db_scale, TLV_DB_GAIN_MUTE, 0); | 299 | static const DECLARE_TLV_DB_LINEAR(ak4396_db_scale, TLV_DB_GAIN_MUTE, 0); |
300 | 300 | ||
301 | static struct snd_kcontrol_new prodigy_hd2_controls[] __devinitdata = { | 301 | static struct snd_kcontrol_new prodigy_hd2_controls[] = { |
302 | { | 302 | { |
303 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 303 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
304 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 304 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
@@ -781,7 +781,7 @@ static int wm_chswap_put(struct snd_kcontrol *kcontrol, | |||
781 | * mixers | 781 | * mixers |
782 | */ | 782 | */ |
783 | 783 | ||
784 | static struct snd_kcontrol_new prodigy_hifi_controls[] __devinitdata = { | 784 | static struct snd_kcontrol_new prodigy_hifi_controls[] = { |
785 | { | 785 | { |
786 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 786 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
787 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 787 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
@@ -938,7 +938,7 @@ static void wm_proc_init(struct snd_ice1712 *ice) | |||
938 | } | 938 | } |
939 | } | 939 | } |
940 | 940 | ||
941 | static int __devinit prodigy_hifi_add_controls(struct snd_ice1712 *ice) | 941 | static int prodigy_hifi_add_controls(struct snd_ice1712 *ice) |
942 | { | 942 | { |
943 | unsigned int i; | 943 | unsigned int i; |
944 | int err; | 944 | int err; |
@@ -955,7 +955,7 @@ static int __devinit prodigy_hifi_add_controls(struct snd_ice1712 *ice) | |||
955 | return 0; | 955 | return 0; |
956 | } | 956 | } |
957 | 957 | ||
958 | static int __devinit prodigy_hd2_add_controls(struct snd_ice1712 *ice) | 958 | static int prodigy_hd2_add_controls(struct snd_ice1712 *ice) |
959 | { | 959 | { |
960 | unsigned int i; | 960 | unsigned int i; |
961 | int err; | 961 | int err; |
@@ -976,7 +976,7 @@ static int __devinit prodigy_hd2_add_controls(struct snd_ice1712 *ice) | |||
976 | /* | 976 | /* |
977 | * initialize the chip | 977 | * initialize the chip |
978 | */ | 978 | */ |
979 | static int __devinit prodigy_hifi_init(struct snd_ice1712 *ice) | 979 | static int prodigy_hifi_init(struct snd_ice1712 *ice) |
980 | { | 980 | { |
981 | static unsigned short wm_inits[] = { | 981 | static unsigned short wm_inits[] = { |
982 | /* These come first to reduce init pop noise */ | 982 | /* These come first to reduce init pop noise */ |
@@ -1114,7 +1114,7 @@ static int prodigy_hd2_resume(struct snd_ice1712 *ice) | |||
1114 | } | 1114 | } |
1115 | #endif | 1115 | #endif |
1116 | 1116 | ||
1117 | static int __devinit prodigy_hd2_init(struct snd_ice1712 *ice) | 1117 | static int prodigy_hd2_init(struct snd_ice1712 *ice) |
1118 | { | 1118 | { |
1119 | struct prodigy_hifi_spec *spec; | 1119 | struct prodigy_hifi_spec *spec; |
1120 | 1120 | ||
@@ -1151,7 +1151,7 @@ static int __devinit prodigy_hd2_init(struct snd_ice1712 *ice) | |||
1151 | } | 1151 | } |
1152 | 1152 | ||
1153 | 1153 | ||
1154 | static unsigned char prodigy71hifi_eeprom[] __devinitdata = { | 1154 | static unsigned char prodigy71hifi_eeprom[] = { |
1155 | 0x4b, /* SYSCONF: clock 512, spdif-in/ADC, 4DACs */ | 1155 | 0x4b, /* SYSCONF: clock 512, spdif-in/ADC, 4DACs */ |
1156 | 0x80, /* ACLINK: I2S */ | 1156 | 0x80, /* ACLINK: I2S */ |
1157 | 0xfc, /* I2S: vol, 96k, 24bit, 192k */ | 1157 | 0xfc, /* I2S: vol, 96k, 24bit, 192k */ |
@@ -1167,7 +1167,7 @@ static unsigned char prodigy71hifi_eeprom[] __devinitdata = { | |||
1167 | 0x00, /* GPIO_STATE2 */ | 1167 | 0x00, /* GPIO_STATE2 */ |
1168 | }; | 1168 | }; |
1169 | 1169 | ||
1170 | static unsigned char prodigyhd2_eeprom[] __devinitdata = { | 1170 | static unsigned char prodigyhd2_eeprom[] = { |
1171 | 0x4b, /* SYSCONF: clock 512, spdif-in/ADC, 4DACs */ | 1171 | 0x4b, /* SYSCONF: clock 512, spdif-in/ADC, 4DACs */ |
1172 | 0x80, /* ACLINK: I2S */ | 1172 | 0x80, /* ACLINK: I2S */ |
1173 | 0xfc, /* I2S: vol, 96k, 24bit, 192k */ | 1173 | 0xfc, /* I2S: vol, 96k, 24bit, 192k */ |
@@ -1183,7 +1183,7 @@ static unsigned char prodigyhd2_eeprom[] __devinitdata = { | |||
1183 | 0x00, /* GPIO_STATE2 */ | 1183 | 0x00, /* GPIO_STATE2 */ |
1184 | }; | 1184 | }; |
1185 | 1185 | ||
1186 | static unsigned char fortissimo4_eeprom[] __devinitdata = { | 1186 | static unsigned char fortissimo4_eeprom[] = { |
1187 | 0x43, /* SYSCONF: clock 512, ADC, 4DACs */ | 1187 | 0x43, /* SYSCONF: clock 512, ADC, 4DACs */ |
1188 | 0x80, /* ACLINK: I2S */ | 1188 | 0x80, /* ACLINK: I2S */ |
1189 | 0xfc, /* I2S: vol, 96k, 24bit, 192k */ | 1189 | 0xfc, /* I2S: vol, 96k, 24bit, 192k */ |
@@ -1200,7 +1200,7 @@ static unsigned char fortissimo4_eeprom[] __devinitdata = { | |||
1200 | }; | 1200 | }; |
1201 | 1201 | ||
1202 | /* entry point */ | 1202 | /* entry point */ |
1203 | struct snd_ice1712_card_info snd_vt1724_prodigy_hifi_cards[] __devinitdata = { | 1203 | struct snd_ice1712_card_info snd_vt1724_prodigy_hifi_cards[] = { |
1204 | { | 1204 | { |
1205 | .subvendor = VT1724_SUBDEVICE_PRODIGY_HIFI, | 1205 | .subvendor = VT1724_SUBDEVICE_PRODIGY_HIFI, |
1206 | .name = "Audiotrak Prodigy 7.1 HiFi", | 1206 | .name = "Audiotrak Prodigy 7.1 HiFi", |
diff --git a/sound/pci/ice1712/psc724.c b/sound/pci/ice1712/psc724.c index 0b6c4e69b8d0..302ac6ddd545 100644 --- a/sound/pci/ice1712/psc724.c +++ b/sound/pci/ice1712/psc724.c | |||
@@ -316,7 +316,7 @@ static const char *clfe_deemph = "CLFE Deemphasis Playback Switch"; | |||
316 | static const char *rear_clfe_izd = "Rear Infinite Zero Detect Playback Switch"; | 316 | static const char *rear_clfe_izd = "Rear Infinite Zero Detect Playback Switch"; |
317 | static const char *rear_clfe_zc = "Rear Zero Cross Detect Playback Switch"; | 317 | static const char *rear_clfe_zc = "Rear Zero Cross Detect Playback Switch"; |
318 | 318 | ||
319 | static int __devinit psc724_add_controls(struct snd_ice1712 *ice) | 319 | static int psc724_add_controls(struct snd_ice1712 *ice) |
320 | { | 320 | { |
321 | struct snd_kcontrol_new cont; | 321 | struct snd_kcontrol_new cont; |
322 | struct snd_kcontrol *ctl; | 322 | struct snd_kcontrol *ctl; |
@@ -396,7 +396,7 @@ static int psc724_resume(struct snd_ice1712 *ice) | |||
396 | 396 | ||
397 | /* init */ | 397 | /* init */ |
398 | 398 | ||
399 | static int __devinit psc724_init(struct snd_ice1712 *ice) | 399 | static int psc724_init(struct snd_ice1712 *ice) |
400 | { | 400 | { |
401 | struct psc724_spec *spec; | 401 | struct psc724_spec *spec; |
402 | 402 | ||
@@ -434,7 +434,7 @@ static void psc724_exit(struct snd_ice1712 *ice) | |||
434 | } | 434 | } |
435 | 435 | ||
436 | /* PSC724 has buggy EEPROM (no 96&192kHz, all FFh GPIOs), so override it here */ | 436 | /* PSC724 has buggy EEPROM (no 96&192kHz, all FFh GPIOs), so override it here */ |
437 | static unsigned char psc724_eeprom[] __devinitdata = { | 437 | static unsigned char psc724_eeprom[] = { |
438 | [ICE_EEP2_SYSCONF] = 0x42, /* 49.152MHz, 1 ADC, 3 DACs */ | 438 | [ICE_EEP2_SYSCONF] = 0x42, /* 49.152MHz, 1 ADC, 3 DACs */ |
439 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 439 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
440 | [ICE_EEP2_I2S] = 0xf0, /* I2S volume, 96kHz, 24bit */ | 440 | [ICE_EEP2_I2S] = 0xf0, /* I2S volume, 96kHz, 24bit */ |
@@ -449,7 +449,7 @@ static unsigned char psc724_eeprom[] __devinitdata = { | |||
449 | [ICE_EEP2_GPIO_STATE2] = 0x20, /* unmuted, all WM8766 pins low */ | 449 | [ICE_EEP2_GPIO_STATE2] = 0x20, /* unmuted, all WM8766 pins low */ |
450 | }; | 450 | }; |
451 | 451 | ||
452 | struct snd_ice1712_card_info snd_vt1724_psc724_cards[] __devinitdata = { | 452 | struct snd_ice1712_card_info snd_vt1724_psc724_cards[] = { |
453 | { | 453 | { |
454 | .subvendor = VT1724_SUBDEVICE_PSC724, | 454 | .subvendor = VT1724_SUBDEVICE_PSC724, |
455 | .name = "Philips PSC724 Ultimate Edge", | 455 | .name = "Philips PSC724 Ultimate Edge", |
diff --git a/sound/pci/ice1712/quartet.c b/sound/pci/ice1712/quartet.c index c85b2ff79115..975e0357bd5a 100644 --- a/sound/pci/ice1712/quartet.c +++ b/sound/pci/ice1712/quartet.c | |||
@@ -386,7 +386,7 @@ static const struct snd_akm4xxx_adc_channel qtet_adc[] = { | |||
386 | AK_CONTROL(PCM_34_CAPTURE_VOLUME, 2), | 386 | AK_CONTROL(PCM_34_CAPTURE_VOLUME, 2), |
387 | }; | 387 | }; |
388 | 388 | ||
389 | static struct snd_akm4xxx akm_qtet_dac __devinitdata = { | 389 | static struct snd_akm4xxx akm_qtet_dac = { |
390 | .type = SND_AK4620, | 390 | .type = SND_AK4620, |
391 | .num_dacs = 4, /* DAC1 - Output 12 | 391 | .num_dacs = 4, /* DAC1 - Output 12 |
392 | */ | 392 | */ |
@@ -758,7 +758,7 @@ static int qtet_sw_put(struct snd_kcontrol *kcontrol, | |||
758 | .put = qtet_sw_put,\ | 758 | .put = qtet_sw_put,\ |
759 | .private_value = xpriv } | 759 | .private_value = xpriv } |
760 | 760 | ||
761 | static struct snd_kcontrol_new qtet_controls[] __devinitdata = { | 761 | static struct snd_kcontrol_new qtet_controls[] = { |
762 | { | 762 | { |
763 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 763 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
764 | .name = "Master Playback Switch", | 764 | .name = "Master Playback Switch", |
@@ -795,17 +795,17 @@ static struct snd_kcontrol_new qtet_controls[] __devinitdata = { | |||
795 | QTET_CONTROL("Output 3/4 to Monitor 1/2", sw, OUT34_MON12), | 795 | QTET_CONTROL("Output 3/4 to Monitor 1/2", sw, OUT34_MON12), |
796 | }; | 796 | }; |
797 | 797 | ||
798 | static char *slave_vols[] __devinitdata = { | 798 | static char *slave_vols[] = { |
799 | PCM_12_PLAYBACK_VOLUME, | 799 | PCM_12_PLAYBACK_VOLUME, |
800 | PCM_34_PLAYBACK_VOLUME, | 800 | PCM_34_PLAYBACK_VOLUME, |
801 | NULL | 801 | NULL |
802 | }; | 802 | }; |
803 | 803 | ||
804 | static __devinitdata | 804 | static |
805 | DECLARE_TLV_DB_SCALE(qtet_master_db_scale, -6350, 50, 1); | 805 | DECLARE_TLV_DB_SCALE(qtet_master_db_scale, -6350, 50, 1); |
806 | 806 | ||
807 | static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card, | 807 | static struct snd_kcontrol *ctl_find(struct snd_card *card, |
808 | const char *name) | 808 | const char *name) |
809 | { | 809 | { |
810 | struct snd_ctl_elem_id sid; | 810 | struct snd_ctl_elem_id sid; |
811 | memset(&sid, 0, sizeof(sid)); | 811 | memset(&sid, 0, sizeof(sid)); |
@@ -815,8 +815,8 @@ static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card, | |||
815 | return snd_ctl_find_id(card, &sid); | 815 | return snd_ctl_find_id(card, &sid); |
816 | } | 816 | } |
817 | 817 | ||
818 | static void __devinit add_slaves(struct snd_card *card, | 818 | static void add_slaves(struct snd_card *card, |
819 | struct snd_kcontrol *master, char * const *list) | 819 | struct snd_kcontrol *master, char * const *list) |
820 | { | 820 | { |
821 | for (; *list; list++) { | 821 | for (; *list; list++) { |
822 | struct snd_kcontrol *slave = ctl_find(card, *list); | 822 | struct snd_kcontrol *slave = ctl_find(card, *list); |
@@ -825,7 +825,7 @@ static void __devinit add_slaves(struct snd_card *card, | |||
825 | } | 825 | } |
826 | } | 826 | } |
827 | 827 | ||
828 | static int __devinit qtet_add_controls(struct snd_ice1712 *ice) | 828 | static int qtet_add_controls(struct snd_ice1712 *ice) |
829 | { | 829 | { |
830 | struct qtet_spec *spec = ice->spec; | 830 | struct qtet_spec *spec = ice->spec; |
831 | int err, i; | 831 | int err, i; |
@@ -1007,7 +1007,7 @@ static void qtet_spdif_in_open(struct snd_ice1712 *ice, | |||
1007 | /* | 1007 | /* |
1008 | * initialize the chip | 1008 | * initialize the chip |
1009 | */ | 1009 | */ |
1010 | static int __devinit qtet_init(struct snd_ice1712 *ice) | 1010 | static int qtet_init(struct snd_ice1712 *ice) |
1011 | { | 1011 | { |
1012 | static const unsigned char ak4113_init_vals[] = { | 1012 | static const unsigned char ak4113_init_vals[] = { |
1013 | /* AK4113_REG_PWRDN */ AK4113_RST | AK4113_PWN | | 1013 | /* AK4113_REG_PWRDN */ AK4113_RST | AK4113_PWN | |
@@ -1095,7 +1095,7 @@ static int __devinit qtet_init(struct snd_ice1712 *ice) | |||
1095 | return 0; | 1095 | return 0; |
1096 | } | 1096 | } |
1097 | 1097 | ||
1098 | static unsigned char qtet_eeprom[] __devinitdata = { | 1098 | static unsigned char qtet_eeprom[] = { |
1099 | [ICE_EEP2_SYSCONF] = 0x28, /* clock 256(24MHz), mpu401, 1xADC, | 1099 | [ICE_EEP2_SYSCONF] = 0x28, /* clock 256(24MHz), mpu401, 1xADC, |
1100 | 1xDACs, SPDIF in */ | 1100 | 1xDACs, SPDIF in */ |
1101 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 1101 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
@@ -1116,7 +1116,7 @@ static unsigned char qtet_eeprom[] __devinitdata = { | |||
1116 | }; | 1116 | }; |
1117 | 1117 | ||
1118 | /* entry point */ | 1118 | /* entry point */ |
1119 | struct snd_ice1712_card_info snd_vt1724_qtet_cards[] __devinitdata = { | 1119 | struct snd_ice1712_card_info snd_vt1724_qtet_cards[] = { |
1120 | { | 1120 | { |
1121 | .subvendor = VT1724_SUBDEVICE_QTET, | 1121 | .subvendor = VT1724_SUBDEVICE_QTET, |
1122 | .name = "Infrasonic Quartet", | 1122 | .name = "Infrasonic Quartet", |
diff --git a/sound/pci/ice1712/revo.c b/sound/pci/ice1712/revo.c index a1b79758766b..7641080a9b5d 100644 --- a/sound/pci/ice1712/revo.c +++ b/sound/pci/ice1712/revo.c | |||
@@ -234,7 +234,7 @@ static const struct snd_akm4xxx_adc_channel revo51_adc[] = { | |||
234 | }, | 234 | }, |
235 | }; | 235 | }; |
236 | 236 | ||
237 | static struct snd_akm4xxx akm_revo_front __devinitdata = { | 237 | static struct snd_akm4xxx akm_revo_front = { |
238 | .type = SND_AK4381, | 238 | .type = SND_AK4381, |
239 | .num_dacs = 2, | 239 | .num_dacs = 2, |
240 | .ops = { | 240 | .ops = { |
@@ -243,7 +243,7 @@ static struct snd_akm4xxx akm_revo_front __devinitdata = { | |||
243 | .dac_info = revo71_front, | 243 | .dac_info = revo71_front, |
244 | }; | 244 | }; |
245 | 245 | ||
246 | static struct snd_ak4xxx_private akm_revo_front_priv __devinitdata = { | 246 | static struct snd_ak4xxx_private akm_revo_front_priv = { |
247 | .caddr = 1, | 247 | .caddr = 1, |
248 | .cif = 0, | 248 | .cif = 0, |
249 | .data_mask = VT1724_REVO_CDOUT, | 249 | .data_mask = VT1724_REVO_CDOUT, |
@@ -255,7 +255,7 @@ static struct snd_ak4xxx_private akm_revo_front_priv __devinitdata = { | |||
255 | .mask_flags = 0, | 255 | .mask_flags = 0, |
256 | }; | 256 | }; |
257 | 257 | ||
258 | static struct snd_akm4xxx akm_revo_surround __devinitdata = { | 258 | static struct snd_akm4xxx akm_revo_surround = { |
259 | .type = SND_AK4355, | 259 | .type = SND_AK4355, |
260 | .idx_offset = 1, | 260 | .idx_offset = 1, |
261 | .num_dacs = 6, | 261 | .num_dacs = 6, |
@@ -265,7 +265,7 @@ static struct snd_akm4xxx akm_revo_surround __devinitdata = { | |||
265 | .dac_info = revo71_surround, | 265 | .dac_info = revo71_surround, |
266 | }; | 266 | }; |
267 | 267 | ||
268 | static struct snd_ak4xxx_private akm_revo_surround_priv __devinitdata = { | 268 | static struct snd_ak4xxx_private akm_revo_surround_priv = { |
269 | .caddr = 3, | 269 | .caddr = 3, |
270 | .cif = 0, | 270 | .cif = 0, |
271 | .data_mask = VT1724_REVO_CDOUT, | 271 | .data_mask = VT1724_REVO_CDOUT, |
@@ -277,7 +277,7 @@ static struct snd_ak4xxx_private akm_revo_surround_priv __devinitdata = { | |||
277 | .mask_flags = 0, | 277 | .mask_flags = 0, |
278 | }; | 278 | }; |
279 | 279 | ||
280 | static struct snd_akm4xxx akm_revo51 __devinitdata = { | 280 | static struct snd_akm4xxx akm_revo51 = { |
281 | .type = SND_AK4358, | 281 | .type = SND_AK4358, |
282 | .num_dacs = 8, | 282 | .num_dacs = 8, |
283 | .ops = { | 283 | .ops = { |
@@ -286,7 +286,7 @@ static struct snd_akm4xxx akm_revo51 __devinitdata = { | |||
286 | .dac_info = revo51_dac, | 286 | .dac_info = revo51_dac, |
287 | }; | 287 | }; |
288 | 288 | ||
289 | static struct snd_ak4xxx_private akm_revo51_priv __devinitdata = { | 289 | static struct snd_ak4xxx_private akm_revo51_priv = { |
290 | .caddr = 2, | 290 | .caddr = 2, |
291 | .cif = 0, | 291 | .cif = 0, |
292 | .data_mask = VT1724_REVO_CDOUT, | 292 | .data_mask = VT1724_REVO_CDOUT, |
@@ -298,13 +298,13 @@ static struct snd_ak4xxx_private akm_revo51_priv __devinitdata = { | |||
298 | .mask_flags = 0, | 298 | .mask_flags = 0, |
299 | }; | 299 | }; |
300 | 300 | ||
301 | static struct snd_akm4xxx akm_revo51_adc __devinitdata = { | 301 | static struct snd_akm4xxx akm_revo51_adc = { |
302 | .type = SND_AK5365, | 302 | .type = SND_AK5365, |
303 | .num_adcs = 2, | 303 | .num_adcs = 2, |
304 | .adc_info = revo51_adc, | 304 | .adc_info = revo51_adc, |
305 | }; | 305 | }; |
306 | 306 | ||
307 | static struct snd_ak4xxx_private akm_revo51_adc_priv __devinitdata = { | 307 | static struct snd_ak4xxx_private akm_revo51_adc_priv = { |
308 | .caddr = 2, | 308 | .caddr = 2, |
309 | .cif = 0, | 309 | .cif = 0, |
310 | .data_mask = VT1724_REVO_CDOUT, | 310 | .data_mask = VT1724_REVO_CDOUT, |
@@ -345,7 +345,7 @@ static const struct snd_akm4xxx_dac_channel ap192_dac[] = { | |||
345 | AK_DAC("PCM Playback Volume", 2) | 345 | AK_DAC("PCM Playback Volume", 2) |
346 | }; | 346 | }; |
347 | 347 | ||
348 | static struct snd_akm4xxx akm_ap192 __devinitdata = { | 348 | static struct snd_akm4xxx akm_ap192 = { |
349 | .type = SND_AK4358, | 349 | .type = SND_AK4358, |
350 | .num_dacs = 2, | 350 | .num_dacs = 2, |
351 | .ops = { | 351 | .ops = { |
@@ -354,7 +354,7 @@ static struct snd_akm4xxx akm_ap192 __devinitdata = { | |||
354 | .dac_info = ap192_dac, | 354 | .dac_info = ap192_dac, |
355 | }; | 355 | }; |
356 | 356 | ||
357 | static struct snd_ak4xxx_private akm_ap192_priv __devinitdata = { | 357 | static struct snd_ak4xxx_private akm_ap192_priv = { |
358 | .caddr = 2, | 358 | .caddr = 2, |
359 | .cif = 0, | 359 | .cif = 0, |
360 | .data_mask = VT1724_REVO_CDOUT, | 360 | .data_mask = VT1724_REVO_CDOUT, |
@@ -467,7 +467,7 @@ static unsigned char ap192_ak4114_read(void *private_data, unsigned char addr) | |||
467 | return data; | 467 | return data; |
468 | } | 468 | } |
469 | 469 | ||
470 | static int __devinit ap192_ak4114_init(struct snd_ice1712 *ice) | 470 | static int ap192_ak4114_init(struct snd_ice1712 *ice) |
471 | { | 471 | { |
472 | static const unsigned char ak4114_init_vals[] = { | 472 | static const unsigned char ak4114_init_vals[] = { |
473 | AK4114_RST | AK4114_PWN | AK4114_OCKS0 | AK4114_OCKS1, | 473 | AK4114_RST | AK4114_PWN | AK4114_OCKS0 | AK4114_OCKS1, |
@@ -495,7 +495,7 @@ static int __devinit ap192_ak4114_init(struct snd_ice1712 *ice) | |||
495 | return 0; /* error ignored; it's no fatal error */ | 495 | return 0; /* error ignored; it's no fatal error */ |
496 | } | 496 | } |
497 | 497 | ||
498 | static int __devinit revo_init(struct snd_ice1712 *ice) | 498 | static int revo_init(struct snd_ice1712 *ice) |
499 | { | 499 | { |
500 | struct snd_akm4xxx *ak; | 500 | struct snd_akm4xxx *ak; |
501 | int err; | 501 | int err; |
@@ -573,7 +573,7 @@ static int __devinit revo_init(struct snd_ice1712 *ice) | |||
573 | } | 573 | } |
574 | 574 | ||
575 | 575 | ||
576 | static int __devinit revo_add_controls(struct snd_ice1712 *ice) | 576 | static int revo_add_controls(struct snd_ice1712 *ice) |
577 | { | 577 | { |
578 | struct revo51_spec *spec; | 578 | struct revo51_spec *spec; |
579 | int err; | 579 | int err; |
@@ -606,7 +606,7 @@ static int __devinit revo_add_controls(struct snd_ice1712 *ice) | |||
606 | } | 606 | } |
607 | 607 | ||
608 | /* entry point */ | 608 | /* entry point */ |
609 | struct snd_ice1712_card_info snd_vt1724_revo_cards[] __devinitdata = { | 609 | struct snd_ice1712_card_info snd_vt1724_revo_cards[] = { |
610 | { | 610 | { |
611 | .subvendor = VT1724_SUBDEVICE_REVOLUTION71, | 611 | .subvendor = VT1724_SUBDEVICE_REVOLUTION71, |
612 | .name = "M Audio Revolution-7.1", | 612 | .name = "M Audio Revolution-7.1", |
diff --git a/sound/pci/ice1712/se.c b/sound/pci/ice1712/se.c index 53b555f5bbea..ffd894bb4507 100644 --- a/sound/pci/ice1712/se.c +++ b/sound/pci/ice1712/se.c | |||
@@ -113,7 +113,7 @@ struct se_spec { | |||
113 | /* WM8740 interface */ | 113 | /* WM8740 interface */ |
114 | /****************************************************************************/ | 114 | /****************************************************************************/ |
115 | 115 | ||
116 | static void __devinit se200pci_WM8740_init(struct snd_ice1712 *ice) | 116 | static void se200pci_WM8740_init(struct snd_ice1712 *ice) |
117 | { | 117 | { |
118 | /* nothing to do */ | 118 | /* nothing to do */ |
119 | } | 119 | } |
@@ -195,7 +195,7 @@ static void se200pci_WM8766_set_volume(struct snd_ice1712 *ice, int ch, | |||
195 | } | 195 | } |
196 | } | 196 | } |
197 | 197 | ||
198 | static void __devinit se200pci_WM8766_init(struct snd_ice1712 *ice) | 198 | static void se200pci_WM8766_init(struct snd_ice1712 *ice) |
199 | { | 199 | { |
200 | se200pci_WM8766_write(ice, 0x1f, 0x000); /* RESET ALL */ | 200 | se200pci_WM8766_write(ice, 0x1f, 0x000); /* RESET ALL */ |
201 | udelay(10); | 201 | udelay(10); |
@@ -299,10 +299,10 @@ static void se200pci_WM8776_set_agc(struct snd_ice1712 *ice, unsigned int agc) | |||
299 | } | 299 | } |
300 | } | 300 | } |
301 | 301 | ||
302 | static void __devinit se200pci_WM8776_init(struct snd_ice1712 *ice) | 302 | static void se200pci_WM8776_init(struct snd_ice1712 *ice) |
303 | { | 303 | { |
304 | int i; | 304 | int i; |
305 | static unsigned short __devinitdata default_values[] = { | 305 | static unsigned short default_values[] = { |
306 | 0x100, 0x100, 0x100, | 306 | 0x100, 0x100, 0x100, |
307 | 0x100, 0x100, 0x100, | 307 | 0x100, 0x100, 0x100, |
308 | 0x000, 0x090, 0x000, 0x000, | 308 | 0x000, 0x090, 0x000, 0x000, |
@@ -599,7 +599,7 @@ static int se200pci_cont_enum_put(struct snd_kcontrol *kc, | |||
599 | static const DECLARE_TLV_DB_SCALE(db_scale_gain1, -12750, 50, 1); | 599 | static const DECLARE_TLV_DB_SCALE(db_scale_gain1, -12750, 50, 1); |
600 | static const DECLARE_TLV_DB_SCALE(db_scale_gain2, -10350, 50, 1); | 600 | static const DECLARE_TLV_DB_SCALE(db_scale_gain2, -10350, 50, 1); |
601 | 601 | ||
602 | static int __devinit se200pci_add_controls(struct snd_ice1712 *ice) | 602 | static int se200pci_add_controls(struct snd_ice1712 *ice) |
603 | { | 603 | { |
604 | int i; | 604 | int i; |
605 | struct snd_kcontrol_new cont; | 605 | struct snd_kcontrol_new cont; |
@@ -677,7 +677,7 @@ static int __devinit se200pci_add_controls(struct snd_ice1712 *ice) | |||
677 | /* probe/initialize/setup */ | 677 | /* probe/initialize/setup */ |
678 | /****************************************************************************/ | 678 | /****************************************************************************/ |
679 | 679 | ||
680 | static int __devinit se_init(struct snd_ice1712 *ice) | 680 | static int se_init(struct snd_ice1712 *ice) |
681 | { | 681 | { |
682 | struct se_spec *spec; | 682 | struct se_spec *spec; |
683 | 683 | ||
@@ -705,7 +705,7 @@ static int __devinit se_init(struct snd_ice1712 *ice) | |||
705 | return -ENOENT; | 705 | return -ENOENT; |
706 | } | 706 | } |
707 | 707 | ||
708 | static int __devinit se_add_controls(struct snd_ice1712 *ice) | 708 | static int se_add_controls(struct snd_ice1712 *ice) |
709 | { | 709 | { |
710 | int err; | 710 | int err; |
711 | 711 | ||
@@ -722,7 +722,7 @@ static int __devinit se_add_controls(struct snd_ice1712 *ice) | |||
722 | /* entry point */ | 722 | /* entry point */ |
723 | /****************************************************************************/ | 723 | /****************************************************************************/ |
724 | 724 | ||
725 | static unsigned char se200pci_eeprom[] __devinitdata = { | 725 | static unsigned char se200pci_eeprom[] = { |
726 | [ICE_EEP2_SYSCONF] = 0x4b, /* 49.152Hz, spdif-in/ADC, 4DACs */ | 726 | [ICE_EEP2_SYSCONF] = 0x4b, /* 49.152Hz, spdif-in/ADC, 4DACs */ |
727 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 727 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
728 | [ICE_EEP2_I2S] = 0x78, /* 96k-ok, 24bit, 192k-ok */ | 728 | [ICE_EEP2_I2S] = 0x78, /* 96k-ok, 24bit, 192k-ok */ |
@@ -741,7 +741,7 @@ static unsigned char se200pci_eeprom[] __devinitdata = { | |||
741 | [ICE_EEP2_GPIO_STATE2] = 0x07, /* WM8766 ML/MC/MD */ | 741 | [ICE_EEP2_GPIO_STATE2] = 0x07, /* WM8766 ML/MC/MD */ |
742 | }; | 742 | }; |
743 | 743 | ||
744 | static unsigned char se90pci_eeprom[] __devinitdata = { | 744 | static unsigned char se90pci_eeprom[] = { |
745 | [ICE_EEP2_SYSCONF] = 0x4b, /* 49.152Hz, spdif-in/ADC, 4DACs */ | 745 | [ICE_EEP2_SYSCONF] = 0x4b, /* 49.152Hz, spdif-in/ADC, 4DACs */ |
746 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 746 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
747 | [ICE_EEP2_I2S] = 0x78, /* 96k-ok, 24bit, 192k-ok */ | 747 | [ICE_EEP2_I2S] = 0x78, /* 96k-ok, 24bit, 192k-ok */ |
@@ -750,7 +750,7 @@ static unsigned char se90pci_eeprom[] __devinitdata = { | |||
750 | /* ALL GPIO bits are in input mode */ | 750 | /* ALL GPIO bits are in input mode */ |
751 | }; | 751 | }; |
752 | 752 | ||
753 | struct snd_ice1712_card_info snd_vt1724_se_cards[] __devinitdata = { | 753 | struct snd_ice1712_card_info snd_vt1724_se_cards[] = { |
754 | { | 754 | { |
755 | .subvendor = VT1724_SUBDEVICE_SE200PCI, | 755 | .subvendor = VT1724_SUBDEVICE_SE200PCI, |
756 | .name = "ONKYO SE200PCI", | 756 | .name = "ONKYO SE200PCI", |
diff --git a/sound/pci/ice1712/vt1720_mobo.c b/sound/pci/ice1712/vt1720_mobo.c index 8a0a8393ad9e..5dbb867e642c 100644 --- a/sound/pci/ice1712/vt1720_mobo.c +++ b/sound/pci/ice1712/vt1720_mobo.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include "vt1720_mobo.h" | 31 | #include "vt1720_mobo.h" |
32 | 32 | ||
33 | 33 | ||
34 | static int __devinit k8x800_init(struct snd_ice1712 *ice) | 34 | static int k8x800_init(struct snd_ice1712 *ice) |
35 | { | 35 | { |
36 | ice->vt1720 = 1; | 36 | ice->vt1720 = 1; |
37 | 37 | ||
@@ -45,7 +45,7 @@ static int __devinit k8x800_init(struct snd_ice1712 *ice) | |||
45 | return 0; | 45 | return 0; |
46 | } | 46 | } |
47 | 47 | ||
48 | static int __devinit k8x800_add_controls(struct snd_ice1712 *ice) | 48 | static int k8x800_add_controls(struct snd_ice1712 *ice) |
49 | { | 49 | { |
50 | /* FIXME: needs some quirks for VT1616? */ | 50 | /* FIXME: needs some quirks for VT1616? */ |
51 | return 0; | 51 | return 0; |
@@ -53,7 +53,7 @@ static int __devinit k8x800_add_controls(struct snd_ice1712 *ice) | |||
53 | 53 | ||
54 | /* EEPROM image */ | 54 | /* EEPROM image */ |
55 | 55 | ||
56 | static unsigned char k8x800_eeprom[] __devinitdata = { | 56 | static unsigned char k8x800_eeprom[] = { |
57 | [ICE_EEP2_SYSCONF] = 0x01, /* clock 256, 1ADC, 2DACs */ | 57 | [ICE_EEP2_SYSCONF] = 0x01, /* clock 256, 1ADC, 2DACs */ |
58 | [ICE_EEP2_ACLINK] = 0x02, /* ACLINK, packed */ | 58 | [ICE_EEP2_ACLINK] = 0x02, /* ACLINK, packed */ |
59 | [ICE_EEP2_I2S] = 0x00, /* - */ | 59 | [ICE_EEP2_I2S] = 0x00, /* - */ |
@@ -69,7 +69,7 @@ static unsigned char k8x800_eeprom[] __devinitdata = { | |||
69 | [ICE_EEP2_GPIO_STATE2] = 0x00, /* - */ | 69 | [ICE_EEP2_GPIO_STATE2] = 0x00, /* - */ |
70 | }; | 70 | }; |
71 | 71 | ||
72 | static unsigned char sn25p_eeprom[] __devinitdata = { | 72 | static unsigned char sn25p_eeprom[] = { |
73 | [ICE_EEP2_SYSCONF] = 0x01, /* clock 256, 1ADC, 2DACs */ | 73 | [ICE_EEP2_SYSCONF] = 0x01, /* clock 256, 1ADC, 2DACs */ |
74 | [ICE_EEP2_ACLINK] = 0x02, /* ACLINK, packed */ | 74 | [ICE_EEP2_ACLINK] = 0x02, /* ACLINK, packed */ |
75 | [ICE_EEP2_I2S] = 0x00, /* - */ | 75 | [ICE_EEP2_I2S] = 0x00, /* - */ |
@@ -87,7 +87,7 @@ static unsigned char sn25p_eeprom[] __devinitdata = { | |||
87 | 87 | ||
88 | 88 | ||
89 | /* entry point */ | 89 | /* entry point */ |
90 | struct snd_ice1712_card_info snd_vt1720_mobo_cards[] __devinitdata = { | 90 | struct snd_ice1712_card_info snd_vt1720_mobo_cards[] = { |
91 | { | 91 | { |
92 | .subvendor = VT1720_SUBDEVICE_K8X800, | 92 | .subvendor = VT1720_SUBDEVICE_K8X800, |
93 | .name = "Albatron K8X800 Pro II", | 93 | .name = "Albatron K8X800 Pro II", |
diff --git a/sound/pci/ice1712/wtm.c b/sound/pci/ice1712/wtm.c index 184163bbd732..bcf30a387b87 100644 --- a/sound/pci/ice1712/wtm.c +++ b/sound/pci/ice1712/wtm.c | |||
@@ -383,7 +383,7 @@ static int stac9460_mic_sw_put(struct snd_kcontrol *kcontrol, | |||
383 | /* | 383 | /* |
384 | * Control tabs | 384 | * Control tabs |
385 | */ | 385 | */ |
386 | static struct snd_kcontrol_new stac9640_controls[] __devinitdata = { | 386 | static struct snd_kcontrol_new stac9640_controls[] = { |
387 | { | 387 | { |
388 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 388 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
389 | .name = "Master Playback Switch", | 389 | .name = "Master Playback Switch", |
@@ -447,7 +447,7 @@ static struct snd_kcontrol_new stac9640_controls[] __devinitdata = { | |||
447 | 447 | ||
448 | 448 | ||
449 | /*INIT*/ | 449 | /*INIT*/ |
450 | static int __devinit wtm_add_controls(struct snd_ice1712 *ice) | 450 | static int wtm_add_controls(struct snd_ice1712 *ice) |
451 | { | 451 | { |
452 | unsigned int i; | 452 | unsigned int i; |
453 | int err; | 453 | int err; |
@@ -461,7 +461,7 @@ static int __devinit wtm_add_controls(struct snd_ice1712 *ice) | |||
461 | return 0; | 461 | return 0; |
462 | } | 462 | } |
463 | 463 | ||
464 | static int __devinit wtm_init(struct snd_ice1712 *ice) | 464 | static int wtm_init(struct snd_ice1712 *ice) |
465 | { | 465 | { |
466 | static unsigned short stac_inits_prodigy[] = { | 466 | static unsigned short stac_inits_prodigy[] = { |
467 | STAC946X_RESET, 0, | 467 | STAC946X_RESET, 0, |
@@ -484,7 +484,7 @@ static int __devinit wtm_init(struct snd_ice1712 *ice) | |||
484 | } | 484 | } |
485 | 485 | ||
486 | 486 | ||
487 | static unsigned char wtm_eeprom[] __devinitdata = { | 487 | static unsigned char wtm_eeprom[] = { |
488 | 0x47, /*SYSCONF: clock 192KHz, 4ADC, 8DAC */ | 488 | 0x47, /*SYSCONF: clock 192KHz, 4ADC, 8DAC */ |
489 | 0x80, /* ACLINK : I2S */ | 489 | 0x80, /* ACLINK : I2S */ |
490 | 0xf8, /* I2S: vol; 96k, 24bit, 192k */ | 490 | 0xf8, /* I2S: vol; 96k, 24bit, 192k */ |
@@ -502,7 +502,7 @@ static unsigned char wtm_eeprom[] __devinitdata = { | |||
502 | 502 | ||
503 | 503 | ||
504 | /*entry point*/ | 504 | /*entry point*/ |
505 | struct snd_ice1712_card_info snd_vt1724_wtm_cards[] __devinitdata = { | 505 | struct snd_ice1712_card_info snd_vt1724_wtm_cards[] = { |
506 | { | 506 | { |
507 | .subvendor = VT1724_SUBDEVICE_WTM, | 507 | .subvendor = VT1724_SUBDEVICE_WTM, |
508 | .name = "ESI Waveterminal 192M", | 508 | .name = "ESI Waveterminal 192M", |
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index ea4b706c8d63..3b9be752f3e2 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -592,8 +592,8 @@ static unsigned short snd_intel8x0_codec_read(struct snd_ac97 *ac97, | |||
592 | return res; | 592 | return res; |
593 | } | 593 | } |
594 | 594 | ||
595 | static void __devinit snd_intel8x0_codec_read_test(struct intel8x0 *chip, | 595 | static void snd_intel8x0_codec_read_test(struct intel8x0 *chip, |
596 | unsigned int codec) | 596 | unsigned int codec) |
597 | { | 597 | { |
598 | unsigned int tmp; | 598 | unsigned int tmp; |
599 | 599 | ||
@@ -1507,8 +1507,8 @@ struct ich_pcm_table { | |||
1507 | int ac97_idx; | 1507 | int ac97_idx; |
1508 | }; | 1508 | }; |
1509 | 1509 | ||
1510 | static int __devinit snd_intel8x0_pcm1(struct intel8x0 *chip, int device, | 1510 | static int snd_intel8x0_pcm1(struct intel8x0 *chip, int device, |
1511 | struct ich_pcm_table *rec) | 1511 | struct ich_pcm_table *rec) |
1512 | { | 1512 | { |
1513 | struct snd_pcm *pcm; | 1513 | struct snd_pcm *pcm; |
1514 | int err; | 1514 | int err; |
@@ -1564,7 +1564,7 @@ static int __devinit snd_intel8x0_pcm1(struct intel8x0 *chip, int device, | |||
1564 | return 0; | 1564 | return 0; |
1565 | } | 1565 | } |
1566 | 1566 | ||
1567 | static struct ich_pcm_table intel_pcms[] __devinitdata = { | 1567 | static struct ich_pcm_table intel_pcms[] = { |
1568 | { | 1568 | { |
1569 | .playback_ops = &snd_intel8x0_playback_ops, | 1569 | .playback_ops = &snd_intel8x0_playback_ops, |
1570 | .capture_ops = &snd_intel8x0_capture_ops, | 1570 | .capture_ops = &snd_intel8x0_capture_ops, |
@@ -1601,7 +1601,7 @@ static struct ich_pcm_table intel_pcms[] __devinitdata = { | |||
1601 | }, | 1601 | }, |
1602 | }; | 1602 | }; |
1603 | 1603 | ||
1604 | static struct ich_pcm_table nforce_pcms[] __devinitdata = { | 1604 | static struct ich_pcm_table nforce_pcms[] = { |
1605 | { | 1605 | { |
1606 | .playback_ops = &snd_intel8x0_playback_ops, | 1606 | .playback_ops = &snd_intel8x0_playback_ops, |
1607 | .capture_ops = &snd_intel8x0_capture_ops, | 1607 | .capture_ops = &snd_intel8x0_capture_ops, |
@@ -1624,7 +1624,7 @@ static struct ich_pcm_table nforce_pcms[] __devinitdata = { | |||
1624 | }, | 1624 | }, |
1625 | }; | 1625 | }; |
1626 | 1626 | ||
1627 | static struct ich_pcm_table ali_pcms[] __devinitdata = { | 1627 | static struct ich_pcm_table ali_pcms[] = { |
1628 | { | 1628 | { |
1629 | .playback_ops = &snd_intel8x0_ali_playback_ops, | 1629 | .playback_ops = &snd_intel8x0_ali_playback_ops, |
1630 | .capture_ops = &snd_intel8x0_ali_capture_ops, | 1630 | .capture_ops = &snd_intel8x0_ali_capture_ops, |
@@ -1656,7 +1656,7 @@ static struct ich_pcm_table ali_pcms[] __devinitdata = { | |||
1656 | #endif | 1656 | #endif |
1657 | }; | 1657 | }; |
1658 | 1658 | ||
1659 | static int __devinit snd_intel8x0_pcm(struct intel8x0 *chip) | 1659 | static int snd_intel8x0_pcm(struct intel8x0 *chip) |
1660 | { | 1660 | { |
1661 | int i, tblsize, device, err; | 1661 | int i, tblsize, device, err; |
1662 | struct ich_pcm_table *tbl, *rec; | 1662 | struct ich_pcm_table *tbl, *rec; |
@@ -1719,7 +1719,7 @@ static void snd_intel8x0_mixer_free_ac97(struct snd_ac97 *ac97) | |||
1719 | chip->ac97[ac97->num] = NULL; | 1719 | chip->ac97[ac97->num] = NULL; |
1720 | } | 1720 | } |
1721 | 1721 | ||
1722 | static struct ac97_pcm ac97_pcm_defs[] __devinitdata = { | 1722 | static struct ac97_pcm ac97_pcm_defs[] = { |
1723 | /* front PCM */ | 1723 | /* front PCM */ |
1724 | { | 1724 | { |
1725 | .exclusive = 1, | 1725 | .exclusive = 1, |
@@ -1789,7 +1789,7 @@ static struct ac97_pcm ac97_pcm_defs[] __devinitdata = { | |||
1789 | }, | 1789 | }, |
1790 | }; | 1790 | }; |
1791 | 1791 | ||
1792 | static struct ac97_quirk ac97_quirks[] __devinitdata = { | 1792 | static struct ac97_quirk ac97_quirks[] = { |
1793 | { | 1793 | { |
1794 | .subvendor = 0x0e11, | 1794 | .subvendor = 0x0e11, |
1795 | .subdevice = 0x000e, | 1795 | .subdevice = 0x000e, |
@@ -2196,8 +2196,8 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = { | |||
2196 | { } /* terminator */ | 2196 | { } /* terminator */ |
2197 | }; | 2197 | }; |
2198 | 2198 | ||
2199 | static int __devinit snd_intel8x0_mixer(struct intel8x0 *chip, int ac97_clock, | 2199 | static int snd_intel8x0_mixer(struct intel8x0 *chip, int ac97_clock, |
2200 | const char *quirk_override) | 2200 | const char *quirk_override) |
2201 | { | 2201 | { |
2202 | struct snd_ac97_bus *pbus; | 2202 | struct snd_ac97_bus *pbus; |
2203 | struct snd_ac97_template ac97; | 2203 | struct snd_ac97_template ac97; |
@@ -2765,7 +2765,7 @@ static SIMPLE_DEV_PM_OPS(intel8x0_pm, intel8x0_suspend, intel8x0_resume); | |||
2765 | 2765 | ||
2766 | #define INTEL8X0_TESTBUF_SIZE 32768 /* enough large for one shot */ | 2766 | #define INTEL8X0_TESTBUF_SIZE 32768 /* enough large for one shot */ |
2767 | 2767 | ||
2768 | static void __devinit intel8x0_measure_ac97_clock(struct intel8x0 *chip) | 2768 | static void intel8x0_measure_ac97_clock(struct intel8x0 *chip) |
2769 | { | 2769 | { |
2770 | struct snd_pcm_substream *subs; | 2770 | struct snd_pcm_substream *subs; |
2771 | struct ichdev *ichdev; | 2771 | struct ichdev *ichdev; |
@@ -2883,7 +2883,7 @@ static void __devinit intel8x0_measure_ac97_clock(struct intel8x0 *chip) | |||
2883 | snd_ac97_update_power(chip->ac97[0], AC97_PCM_FRONT_DAC_RATE, 0); | 2883 | snd_ac97_update_power(chip->ac97[0], AC97_PCM_FRONT_DAC_RATE, 0); |
2884 | } | 2884 | } |
2885 | 2885 | ||
2886 | static struct snd_pci_quirk intel8x0_clock_list[] __devinitdata = { | 2886 | static struct snd_pci_quirk intel8x0_clock_list[] = { |
2887 | SND_PCI_QUIRK(0x0e11, 0x008a, "AD1885", 41000), | 2887 | SND_PCI_QUIRK(0x0e11, 0x008a, "AD1885", 41000), |
2888 | SND_PCI_QUIRK(0x1028, 0x00be, "AD1885", 44100), | 2888 | SND_PCI_QUIRK(0x1028, 0x00be, "AD1885", 44100), |
2889 | SND_PCI_QUIRK(0x1028, 0x0177, "AD1980", 48000), | 2889 | SND_PCI_QUIRK(0x1028, 0x0177, "AD1980", 48000), |
@@ -2892,7 +2892,7 @@ static struct snd_pci_quirk intel8x0_clock_list[] __devinitdata = { | |||
2892 | { } /* terminator */ | 2892 | { } /* terminator */ |
2893 | }; | 2893 | }; |
2894 | 2894 | ||
2895 | static int __devinit intel8x0_in_clock_list(struct intel8x0 *chip) | 2895 | static int intel8x0_in_clock_list(struct intel8x0 *chip) |
2896 | { | 2896 | { |
2897 | struct pci_dev *pci = chip->pci; | 2897 | struct pci_dev *pci = chip->pci; |
2898 | const struct snd_pci_quirk *wl; | 2898 | const struct snd_pci_quirk *wl; |
@@ -2941,7 +2941,7 @@ static void snd_intel8x0_proc_read(struct snd_info_entry * entry, | |||
2941 | chip->ac97_sdin[2]); | 2941 | chip->ac97_sdin[2]); |
2942 | } | 2942 | } |
2943 | 2943 | ||
2944 | static void __devinit snd_intel8x0_proc_init(struct intel8x0 * chip) | 2944 | static void snd_intel8x0_proc_init(struct intel8x0 *chip) |
2945 | { | 2945 | { |
2946 | struct snd_info_entry *entry; | 2946 | struct snd_info_entry *entry; |
2947 | 2947 | ||
@@ -2970,7 +2970,7 @@ static unsigned int sis_codec_bits[3] = { | |||
2970 | ICH_PCR, ICH_SCR, ICH_SIS_TCR | 2970 | ICH_PCR, ICH_SCR, ICH_SIS_TCR |
2971 | }; | 2971 | }; |
2972 | 2972 | ||
2973 | static int __devinit snd_intel8x0_inside_vm(struct pci_dev *pci) | 2973 | static int snd_intel8x0_inside_vm(struct pci_dev *pci) |
2974 | { | 2974 | { |
2975 | int result = inside_vm; | 2975 | int result = inside_vm; |
2976 | char *msg = NULL; | 2976 | char *msg = NULL; |
@@ -3009,10 +3009,10 @@ fini: | |||
3009 | return result; | 3009 | return result; |
3010 | } | 3010 | } |
3011 | 3011 | ||
3012 | static int __devinit snd_intel8x0_create(struct snd_card *card, | 3012 | static int snd_intel8x0_create(struct snd_card *card, |
3013 | struct pci_dev *pci, | 3013 | struct pci_dev *pci, |
3014 | unsigned long device_type, | 3014 | unsigned long device_type, |
3015 | struct intel8x0 ** r_intel8x0) | 3015 | struct intel8x0 **r_intel8x0) |
3016 | { | 3016 | { |
3017 | struct intel8x0 *chip; | 3017 | struct intel8x0 *chip; |
3018 | int err; | 3018 | int err; |
@@ -3227,7 +3227,7 @@ static int __devinit snd_intel8x0_create(struct snd_card *card, | |||
3227 | static struct shortname_table { | 3227 | static struct shortname_table { |
3228 | unsigned int id; | 3228 | unsigned int id; |
3229 | const char *s; | 3229 | const char *s; |
3230 | } shortnames[] __devinitdata = { | 3230 | } shortnames[] = { |
3231 | { PCI_DEVICE_ID_INTEL_82801AA_5, "Intel 82801AA-ICH" }, | 3231 | { PCI_DEVICE_ID_INTEL_82801AA_5, "Intel 82801AA-ICH" }, |
3232 | { PCI_DEVICE_ID_INTEL_82801AB_5, "Intel 82901AB-ICH0" }, | 3232 | { PCI_DEVICE_ID_INTEL_82801AB_5, "Intel 82901AB-ICH0" }, |
3233 | { PCI_DEVICE_ID_INTEL_82801BA_4, "Intel 82801BA-ICH2" }, | 3233 | { PCI_DEVICE_ID_INTEL_82801BA_4, "Intel 82801BA-ICH2" }, |
@@ -3253,13 +3253,13 @@ static struct shortname_table { | |||
3253 | { 0, NULL }, | 3253 | { 0, NULL }, |
3254 | }; | 3254 | }; |
3255 | 3255 | ||
3256 | static struct snd_pci_quirk spdif_aclink_defaults[] __devinitdata = { | 3256 | static struct snd_pci_quirk spdif_aclink_defaults[] = { |
3257 | SND_PCI_QUIRK(0x147b, 0x1c1a, "ASUS KN8", 1), | 3257 | SND_PCI_QUIRK(0x147b, 0x1c1a, "ASUS KN8", 1), |
3258 | { } /* end */ | 3258 | { } /* end */ |
3259 | }; | 3259 | }; |
3260 | 3260 | ||
3261 | /* look up white/black list for SPDIF over ac-link */ | 3261 | /* look up white/black list for SPDIF over ac-link */ |
3262 | static int __devinit check_default_spdif_aclink(struct pci_dev *pci) | 3262 | static int check_default_spdif_aclink(struct pci_dev *pci) |
3263 | { | 3263 | { |
3264 | const struct snd_pci_quirk *w; | 3264 | const struct snd_pci_quirk *w; |
3265 | 3265 | ||
@@ -3276,8 +3276,8 @@ static int __devinit check_default_spdif_aclink(struct pci_dev *pci) | |||
3276 | return 0; | 3276 | return 0; |
3277 | } | 3277 | } |
3278 | 3278 | ||
3279 | static int __devinit snd_intel8x0_probe(struct pci_dev *pci, | 3279 | static int snd_intel8x0_probe(struct pci_dev *pci, |
3280 | const struct pci_device_id *pci_id) | 3280 | const struct pci_device_id *pci_id) |
3281 | { | 3281 | { |
3282 | struct snd_card *card; | 3282 | struct snd_card *card; |
3283 | struct intel8x0 *chip; | 3283 | struct intel8x0 *chip; |
@@ -3359,7 +3359,7 @@ static int __devinit snd_intel8x0_probe(struct pci_dev *pci, | |||
3359 | return 0; | 3359 | return 0; |
3360 | } | 3360 | } |
3361 | 3361 | ||
3362 | static void __devexit snd_intel8x0_remove(struct pci_dev *pci) | 3362 | static void snd_intel8x0_remove(struct pci_dev *pci) |
3363 | { | 3363 | { |
3364 | snd_card_free(pci_get_drvdata(pci)); | 3364 | snd_card_free(pci_get_drvdata(pci)); |
3365 | pci_set_drvdata(pci, NULL); | 3365 | pci_set_drvdata(pci, NULL); |
@@ -3369,7 +3369,7 @@ static struct pci_driver intel8x0_driver = { | |||
3369 | .name = KBUILD_MODNAME, | 3369 | .name = KBUILD_MODNAME, |
3370 | .id_table = snd_intel8x0_ids, | 3370 | .id_table = snd_intel8x0_ids, |
3371 | .probe = snd_intel8x0_probe, | 3371 | .probe = snd_intel8x0_probe, |
3372 | .remove = __devexit_p(snd_intel8x0_remove), | 3372 | .remove = snd_intel8x0_remove, |
3373 | .driver = { | 3373 | .driver = { |
3374 | .pm = INTEL8X0_PM_OPS, | 3374 | .pm = INTEL8X0_PM_OPS, |
3375 | }, | 3375 | }, |
diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c index 4d551736531e..fea09e8ea608 100644 --- a/sound/pci/intel8x0m.c +++ b/sound/pci/intel8x0m.c | |||
@@ -710,8 +710,8 @@ struct ich_pcm_table { | |||
710 | int ac97_idx; | 710 | int ac97_idx; |
711 | }; | 711 | }; |
712 | 712 | ||
713 | static int __devinit snd_intel8x0m_pcm1(struct intel8x0m *chip, int device, | 713 | static int snd_intel8x0m_pcm1(struct intel8x0m *chip, int device, |
714 | struct ich_pcm_table *rec) | 714 | struct ich_pcm_table *rec) |
715 | { | 715 | { |
716 | struct snd_pcm *pcm; | 716 | struct snd_pcm *pcm; |
717 | int err; | 717 | int err; |
@@ -749,7 +749,7 @@ static int __devinit snd_intel8x0m_pcm1(struct intel8x0m *chip, int device, | |||
749 | return 0; | 749 | return 0; |
750 | } | 750 | } |
751 | 751 | ||
752 | static struct ich_pcm_table intel_pcms[] __devinitdata = { | 752 | static struct ich_pcm_table intel_pcms[] = { |
753 | { | 753 | { |
754 | .suffix = "Modem", | 754 | .suffix = "Modem", |
755 | .playback_ops = &snd_intel8x0m_playback_ops, | 755 | .playback_ops = &snd_intel8x0m_playback_ops, |
@@ -759,7 +759,7 @@ static struct ich_pcm_table intel_pcms[] __devinitdata = { | |||
759 | }, | 759 | }, |
760 | }; | 760 | }; |
761 | 761 | ||
762 | static int __devinit snd_intel8x0m_pcm(struct intel8x0m *chip) | 762 | static int snd_intel8x0m_pcm(struct intel8x0m *chip) |
763 | { | 763 | { |
764 | int i, tblsize, device, err; | 764 | int i, tblsize, device, err; |
765 | struct ich_pcm_table *tbl, *rec; | 765 | struct ich_pcm_table *tbl, *rec; |
@@ -819,7 +819,7 @@ static void snd_intel8x0m_mixer_free_ac97(struct snd_ac97 *ac97) | |||
819 | } | 819 | } |
820 | 820 | ||
821 | 821 | ||
822 | static int __devinit snd_intel8x0m_mixer(struct intel8x0m *chip, int ac97_clock) | 822 | static int snd_intel8x0m_mixer(struct intel8x0m *chip, int ac97_clock) |
823 | { | 823 | { |
824 | struct snd_ac97_bus *pbus; | 824 | struct snd_ac97_bus *pbus; |
825 | struct snd_ac97_template ac97; | 825 | struct snd_ac97_template ac97; |
@@ -1090,7 +1090,7 @@ static void snd_intel8x0m_proc_read(struct snd_info_entry * entry, | |||
1090 | (tmp & (ICH_PCR | ICH_SCR | ICH_TCR)) == 0 ? " none" : ""); | 1090 | (tmp & (ICH_PCR | ICH_SCR | ICH_TCR)) == 0 ? " none" : ""); |
1091 | } | 1091 | } |
1092 | 1092 | ||
1093 | static void __devinit snd_intel8x0m_proc_init(struct intel8x0m * chip) | 1093 | static void snd_intel8x0m_proc_init(struct intel8x0m *chip) |
1094 | { | 1094 | { |
1095 | struct snd_info_entry *entry; | 1095 | struct snd_info_entry *entry; |
1096 | 1096 | ||
@@ -1113,10 +1113,10 @@ struct ich_reg_info { | |||
1113 | unsigned int offset; | 1113 | unsigned int offset; |
1114 | }; | 1114 | }; |
1115 | 1115 | ||
1116 | static int __devinit snd_intel8x0m_create(struct snd_card *card, | 1116 | static int snd_intel8x0m_create(struct snd_card *card, |
1117 | struct pci_dev *pci, | 1117 | struct pci_dev *pci, |
1118 | unsigned long device_type, | 1118 | unsigned long device_type, |
1119 | struct intel8x0m **r_intel8x0m) | 1119 | struct intel8x0m **r_intel8x0m) |
1120 | { | 1120 | { |
1121 | struct intel8x0m *chip; | 1121 | struct intel8x0m *chip; |
1122 | int err; | 1122 | int err; |
@@ -1252,7 +1252,7 @@ static int __devinit snd_intel8x0m_create(struct snd_card *card, | |||
1252 | static struct shortname_table { | 1252 | static struct shortname_table { |
1253 | unsigned int id; | 1253 | unsigned int id; |
1254 | const char *s; | 1254 | const char *s; |
1255 | } shortnames[] __devinitdata = { | 1255 | } shortnames[] = { |
1256 | { PCI_DEVICE_ID_INTEL_82801AA_6, "Intel 82801AA-ICH" }, | 1256 | { PCI_DEVICE_ID_INTEL_82801AA_6, "Intel 82801AA-ICH" }, |
1257 | { PCI_DEVICE_ID_INTEL_82801AB_6, "Intel 82901AB-ICH0" }, | 1257 | { PCI_DEVICE_ID_INTEL_82801AB_6, "Intel 82901AB-ICH0" }, |
1258 | { PCI_DEVICE_ID_INTEL_82801BA_6, "Intel 82801BA-ICH2" }, | 1258 | { PCI_DEVICE_ID_INTEL_82801BA_6, "Intel 82801BA-ICH2" }, |
@@ -1275,8 +1275,8 @@ static struct shortname_table { | |||
1275 | { 0 }, | 1275 | { 0 }, |
1276 | }; | 1276 | }; |
1277 | 1277 | ||
1278 | static int __devinit snd_intel8x0m_probe(struct pci_dev *pci, | 1278 | static int snd_intel8x0m_probe(struct pci_dev *pci, |
1279 | const struct pci_device_id *pci_id) | 1279 | const struct pci_device_id *pci_id) |
1280 | { | 1280 | { |
1281 | struct snd_card *card; | 1281 | struct snd_card *card; |
1282 | struct intel8x0m *chip; | 1282 | struct intel8x0m *chip; |
@@ -1325,7 +1325,7 @@ static int __devinit snd_intel8x0m_probe(struct pci_dev *pci, | |||
1325 | return 0; | 1325 | return 0; |
1326 | } | 1326 | } |
1327 | 1327 | ||
1328 | static void __devexit snd_intel8x0m_remove(struct pci_dev *pci) | 1328 | static void snd_intel8x0m_remove(struct pci_dev *pci) |
1329 | { | 1329 | { |
1330 | snd_card_free(pci_get_drvdata(pci)); | 1330 | snd_card_free(pci_get_drvdata(pci)); |
1331 | pci_set_drvdata(pci, NULL); | 1331 | pci_set_drvdata(pci, NULL); |
@@ -1335,7 +1335,7 @@ static struct pci_driver intel8x0m_driver = { | |||
1335 | .name = KBUILD_MODNAME, | 1335 | .name = KBUILD_MODNAME, |
1336 | .id_table = snd_intel8x0m_ids, | 1336 | .id_table = snd_intel8x0m_ids, |
1337 | .probe = snd_intel8x0m_probe, | 1337 | .probe = snd_intel8x0m_probe, |
1338 | .remove = __devexit_p(snd_intel8x0m_remove), | 1338 | .remove = snd_intel8x0m_remove, |
1339 | .driver = { | 1339 | .driver = { |
1340 | .pm = INTEL8X0M_PM_OPS, | 1340 | .pm = INTEL8X0M_PM_OPS, |
1341 | }, | 1341 | }, |
diff --git a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c index 8a67ce95f246..43b4228d9afe 100644 --- a/sound/pci/korg1212/korg1212.c +++ b/sound/pci/korg1212/korg1212.c | |||
@@ -2083,7 +2083,7 @@ static void snd_korg1212_proc_read(struct snd_info_entry *entry, | |||
2083 | snd_iprintf(buffer, " Error count: %ld\n", korg1212->totalerrorcnt); | 2083 | snd_iprintf(buffer, " Error count: %ld\n", korg1212->totalerrorcnt); |
2084 | } | 2084 | } |
2085 | 2085 | ||
2086 | static void __devinit snd_korg1212_proc_init(struct snd_korg1212 *korg1212) | 2086 | static void snd_korg1212_proc_init(struct snd_korg1212 *korg1212) |
2087 | { | 2087 | { |
2088 | struct snd_info_entry *entry; | 2088 | struct snd_info_entry *entry; |
2089 | 2089 | ||
@@ -2154,8 +2154,8 @@ static int snd_korg1212_dev_free(struct snd_device *device) | |||
2154 | return snd_korg1212_free(korg1212); | 2154 | return snd_korg1212_free(korg1212); |
2155 | } | 2155 | } |
2156 | 2156 | ||
2157 | static int __devinit snd_korg1212_create(struct snd_card *card, struct pci_dev *pci, | 2157 | static int snd_korg1212_create(struct snd_card *card, struct pci_dev *pci, |
2158 | struct snd_korg1212 ** rchip) | 2158 | struct snd_korg1212 **rchip) |
2159 | 2159 | ||
2160 | { | 2160 | { |
2161 | int err, rc; | 2161 | int err, rc; |
@@ -2429,7 +2429,7 @@ static int __devinit snd_korg1212_create(struct snd_card *card, struct pci_dev * | |||
2429 | * Card initialisation | 2429 | * Card initialisation |
2430 | */ | 2430 | */ |
2431 | 2431 | ||
2432 | static int __devinit | 2432 | static int |
2433 | snd_korg1212_probe(struct pci_dev *pci, | 2433 | snd_korg1212_probe(struct pci_dev *pci, |
2434 | const struct pci_device_id *pci_id) | 2434 | const struct pci_device_id *pci_id) |
2435 | { | 2435 | { |
@@ -2470,7 +2470,7 @@ snd_korg1212_probe(struct pci_dev *pci, | |||
2470 | return 0; | 2470 | return 0; |
2471 | } | 2471 | } |
2472 | 2472 | ||
2473 | static void __devexit snd_korg1212_remove(struct pci_dev *pci) | 2473 | static void snd_korg1212_remove(struct pci_dev *pci) |
2474 | { | 2474 | { |
2475 | snd_card_free(pci_get_drvdata(pci)); | 2475 | snd_card_free(pci_get_drvdata(pci)); |
2476 | pci_set_drvdata(pci, NULL); | 2476 | pci_set_drvdata(pci, NULL); |
@@ -2480,7 +2480,7 @@ static struct pci_driver korg1212_driver = { | |||
2480 | .name = KBUILD_MODNAME, | 2480 | .name = KBUILD_MODNAME, |
2481 | .id_table = snd_korg1212_ids, | 2481 | .id_table = snd_korg1212_ids, |
2482 | .probe = snd_korg1212_probe, | 2482 | .probe = snd_korg1212_probe, |
2483 | .remove = __devexit_p(snd_korg1212_remove), | 2483 | .remove = snd_korg1212_remove, |
2484 | }; | 2484 | }; |
2485 | 2485 | ||
2486 | module_pci_driver(korg1212_driver); | 2486 | module_pci_driver(korg1212_driver); |
diff --git a/sound/pci/lola/lola.c b/sound/pci/lola/lola.c index ac15166bee68..322b638e8ec4 100644 --- a/sound/pci/lola/lola.c +++ b/sound/pci/lola/lola.c | |||
@@ -445,7 +445,7 @@ static void lola_reset_setups(struct lola *chip) | |||
445 | lola_setup_all_analog_gains(chip, PLAY, false); /* output, update */ | 445 | lola_setup_all_analog_gains(chip, PLAY, false); /* output, update */ |
446 | } | 446 | } |
447 | 447 | ||
448 | static int __devinit lola_parse_tree(struct lola *chip) | 448 | static int lola_parse_tree(struct lola *chip) |
449 | { | 449 | { |
450 | unsigned int val; | 450 | unsigned int val; |
451 | int nid, err; | 451 | int nid, err; |
@@ -568,8 +568,8 @@ static int lola_dev_free(struct snd_device *device) | |||
568 | return 0; | 568 | return 0; |
569 | } | 569 | } |
570 | 570 | ||
571 | static int __devinit lola_create(struct snd_card *card, struct pci_dev *pci, | 571 | static int lola_create(struct snd_card *card, struct pci_dev *pci, |
572 | int dev, struct lola **rchip) | 572 | int dev, struct lola **rchip) |
573 | { | 573 | { |
574 | struct lola *chip; | 574 | struct lola *chip; |
575 | int err; | 575 | int err; |
@@ -702,8 +702,8 @@ static int __devinit lola_create(struct snd_card *card, struct pci_dev *pci, | |||
702 | return err; | 702 | return err; |
703 | } | 703 | } |
704 | 704 | ||
705 | static int __devinit lola_probe(struct pci_dev *pci, | 705 | static int lola_probe(struct pci_dev *pci, |
706 | const struct pci_device_id *pci_id) | 706 | const struct pci_device_id *pci_id) |
707 | { | 707 | { |
708 | static int dev; | 708 | static int dev; |
709 | struct snd_card *card; | 709 | struct snd_card *card; |
@@ -756,7 +756,7 @@ out_free: | |||
756 | return err; | 756 | return err; |
757 | } | 757 | } |
758 | 758 | ||
759 | static void __devexit lola_remove(struct pci_dev *pci) | 759 | static void lola_remove(struct pci_dev *pci) |
760 | { | 760 | { |
761 | snd_card_free(pci_get_drvdata(pci)); | 761 | snd_card_free(pci_get_drvdata(pci)); |
762 | pci_set_drvdata(pci, NULL); | 762 | pci_set_drvdata(pci, NULL); |
@@ -774,7 +774,7 @@ static struct pci_driver lola_driver = { | |||
774 | .name = KBUILD_MODNAME, | 774 | .name = KBUILD_MODNAME, |
775 | .id_table = lola_ids, | 775 | .id_table = lola_ids, |
776 | .probe = lola_probe, | 776 | .probe = lola_probe, |
777 | .remove = __devexit_p(lola_remove), | 777 | .remove = lola_remove, |
778 | }; | 778 | }; |
779 | 779 | ||
780 | module_pci_driver(lola_driver); | 780 | module_pci_driver(lola_driver); |
diff --git a/sound/pci/lola/lola_clock.c b/sound/pci/lola/lola_clock.c index 72f8ef0ac865..eb1d6b97df16 100644 --- a/sound/pci/lola/lola_clock.c +++ b/sound/pci/lola/lola_clock.c | |||
@@ -120,7 +120,7 @@ int lola_set_granularity(struct lola *chip, unsigned int val, bool force) | |||
120 | * Clock widget handling | 120 | * Clock widget handling |
121 | */ | 121 | */ |
122 | 122 | ||
123 | int __devinit lola_init_clock_widget(struct lola *chip, int nid) | 123 | int lola_init_clock_widget(struct lola *chip, int nid) |
124 | { | 124 | { |
125 | unsigned int val; | 125 | unsigned int val; |
126 | int i, j, nitems, nb_verbs, idx, idx_list; | 126 | int i, j, nitems, nb_verbs, idx, idx_list; |
diff --git a/sound/pci/lola/lola_mixer.c b/sound/pci/lola/lola_mixer.c index 6b8d64812951..52c8d6b0f39b 100644 --- a/sound/pci/lola/lola_mixer.c +++ b/sound/pci/lola/lola_mixer.c | |||
@@ -28,8 +28,8 @@ | |||
28 | #include <sound/tlv.h> | 28 | #include <sound/tlv.h> |
29 | #include "lola.h" | 29 | #include "lola.h" |
30 | 30 | ||
31 | static int __devinit lola_init_pin(struct lola *chip, struct lola_pin *pin, | 31 | static int lola_init_pin(struct lola *chip, struct lola_pin *pin, |
32 | int dir, int nid) | 32 | int dir, int nid) |
33 | { | 33 | { |
34 | unsigned int val; | 34 | unsigned int val; |
35 | int err; | 35 | int err; |
@@ -91,7 +91,7 @@ static int __devinit lola_init_pin(struct lola *chip, struct lola_pin *pin, | |||
91 | return 0; | 91 | return 0; |
92 | } | 92 | } |
93 | 93 | ||
94 | int __devinit lola_init_pins(struct lola *chip, int dir, int *nidp) | 94 | int lola_init_pins(struct lola *chip, int dir, int *nidp) |
95 | { | 95 | { |
96 | int i, err, nid; | 96 | int i, err, nid; |
97 | nid = *nidp; | 97 | nid = *nidp; |
@@ -112,7 +112,7 @@ void lola_free_mixer(struct lola *chip) | |||
112 | vfree(chip->mixer.array_saved); | 112 | vfree(chip->mixer.array_saved); |
113 | } | 113 | } |
114 | 114 | ||
115 | int __devinit lola_init_mixer_widget(struct lola *chip, int nid) | 115 | int lola_init_mixer_widget(struct lola *chip, int nid) |
116 | { | 116 | { |
117 | unsigned int val; | 117 | unsigned int val; |
118 | int err; | 118 | int err; |
@@ -579,7 +579,7 @@ static int lola_analog_vol_tlv(struct snd_kcontrol *kcontrol, int op_flag, | |||
579 | return 0; | 579 | return 0; |
580 | } | 580 | } |
581 | 581 | ||
582 | static struct snd_kcontrol_new lola_analog_mixer __devinitdata = { | 582 | static struct snd_kcontrol_new lola_analog_mixer = { |
583 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 583 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
584 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 584 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
585 | SNDRV_CTL_ELEM_ACCESS_TLV_READ | | 585 | SNDRV_CTL_ELEM_ACCESS_TLV_READ | |
@@ -590,7 +590,7 @@ static struct snd_kcontrol_new lola_analog_mixer __devinitdata = { | |||
590 | .tlv.c = lola_analog_vol_tlv, | 590 | .tlv.c = lola_analog_vol_tlv, |
591 | }; | 591 | }; |
592 | 592 | ||
593 | static int __devinit create_analog_mixer(struct lola *chip, int dir, char *name) | 593 | static int create_analog_mixer(struct lola *chip, int dir, char *name) |
594 | { | 594 | { |
595 | if (!chip->pin[dir].num_pins) | 595 | if (!chip->pin[dir].num_pins) |
596 | return 0; | 596 | return 0; |
@@ -644,7 +644,7 @@ static int lola_input_src_put(struct snd_kcontrol *kcontrol, | |||
644 | return lola_set_src_config(chip, mask, true); | 644 | return lola_set_src_config(chip, mask, true); |
645 | } | 645 | } |
646 | 646 | ||
647 | static struct snd_kcontrol_new lola_input_src_mixer __devinitdata = { | 647 | static struct snd_kcontrol_new lola_input_src_mixer = { |
648 | .name = "Digital SRC Capture Switch", | 648 | .name = "Digital SRC Capture Switch", |
649 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 649 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
650 | .info = lola_input_src_info, | 650 | .info = lola_input_src_info, |
@@ -656,7 +656,7 @@ static struct snd_kcontrol_new lola_input_src_mixer __devinitdata = { | |||
656 | * Lola16161 or Lola881 can have Hardware sample rate converters | 656 | * Lola16161 or Lola881 can have Hardware sample rate converters |
657 | * on its digital input pins | 657 | * on its digital input pins |
658 | */ | 658 | */ |
659 | static int __devinit create_input_src_mixer(struct lola *chip) | 659 | static int create_input_src_mixer(struct lola *chip) |
660 | { | 660 | { |
661 | if (!chip->input_src_caps_mask) | 661 | if (!chip->input_src_caps_mask) |
662 | return 0; | 662 | return 0; |
@@ -726,7 +726,7 @@ static int lola_src_gain_put(struct snd_kcontrol *kcontrol, | |||
726 | /* raw value: 0 = -84dB, 336 = 0dB, 408=18dB, incremented 1 for mute */ | 726 | /* raw value: 0 = -84dB, 336 = 0dB, 408=18dB, incremented 1 for mute */ |
727 | static const DECLARE_TLV_DB_SCALE(lola_src_gain_tlv, -8425, 25, 1); | 727 | static const DECLARE_TLV_DB_SCALE(lola_src_gain_tlv, -8425, 25, 1); |
728 | 728 | ||
729 | static struct snd_kcontrol_new lola_src_gain_mixer __devinitdata = { | 729 | static struct snd_kcontrol_new lola_src_gain_mixer = { |
730 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 730 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
731 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 731 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
732 | SNDRV_CTL_ELEM_ACCESS_TLV_READ), | 732 | SNDRV_CTL_ELEM_ACCESS_TLV_READ), |
@@ -736,8 +736,8 @@ static struct snd_kcontrol_new lola_src_gain_mixer __devinitdata = { | |||
736 | .tlv.p = lola_src_gain_tlv, | 736 | .tlv.p = lola_src_gain_tlv, |
737 | }; | 737 | }; |
738 | 738 | ||
739 | static int __devinit create_src_gain_mixer(struct lola *chip, | 739 | static int create_src_gain_mixer(struct lola *chip, |
740 | int num, int ofs, char *name) | 740 | int num, int ofs, char *name) |
741 | { | 741 | { |
742 | lola_src_gain_mixer.name = name; | 742 | lola_src_gain_mixer.name = name; |
743 | lola_src_gain_mixer.private_value = ofs + (num << 8); | 743 | lola_src_gain_mixer.private_value = ofs + (num << 8); |
@@ -813,7 +813,7 @@ static int lola_dest_gain_put(struct snd_kcontrol *kcontrol, | |||
813 | 813 | ||
814 | static const DECLARE_TLV_DB_SCALE(lola_dest_gain_tlv, -8425, 25, 1); | 814 | static const DECLARE_TLV_DB_SCALE(lola_dest_gain_tlv, -8425, 25, 1); |
815 | 815 | ||
816 | static struct snd_kcontrol_new lola_dest_gain_mixer __devinitdata = { | 816 | static struct snd_kcontrol_new lola_dest_gain_mixer = { |
817 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 817 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
818 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 818 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
819 | SNDRV_CTL_ELEM_ACCESS_TLV_READ), | 819 | SNDRV_CTL_ELEM_ACCESS_TLV_READ), |
@@ -823,9 +823,9 @@ static struct snd_kcontrol_new lola_dest_gain_mixer __devinitdata = { | |||
823 | .tlv.p = lola_dest_gain_tlv, | 823 | .tlv.p = lola_dest_gain_tlv, |
824 | }; | 824 | }; |
825 | 825 | ||
826 | static int __devinit create_dest_gain_mixer(struct lola *chip, | 826 | static int create_dest_gain_mixer(struct lola *chip, |
827 | int src_num, int src_ofs, | 827 | int src_num, int src_ofs, |
828 | int num, int ofs, char *name) | 828 | int num, int ofs, char *name) |
829 | { | 829 | { |
830 | lola_dest_gain_mixer.count = num; | 830 | lola_dest_gain_mixer.count = num; |
831 | lola_dest_gain_mixer.name = name; | 831 | lola_dest_gain_mixer.name = name; |
@@ -838,7 +838,7 @@ static int __devinit create_dest_gain_mixer(struct lola *chip, | |||
838 | 838 | ||
839 | /* | 839 | /* |
840 | */ | 840 | */ |
841 | int __devinit lola_create_mixer(struct lola *chip) | 841 | int lola_create_mixer(struct lola *chip) |
842 | { | 842 | { |
843 | int err; | 843 | int err; |
844 | 844 | ||
diff --git a/sound/pci/lola/lola_pcm.c b/sound/pci/lola/lola_pcm.c index c44db68eecb5..5ea85e8b83ab 100644 --- a/sound/pci/lola/lola_pcm.c +++ b/sound/pci/lola/lola_pcm.c | |||
@@ -597,7 +597,7 @@ static struct snd_pcm_ops lola_pcm_ops = { | |||
597 | .page = snd_pcm_sgbuf_ops_page, | 597 | .page = snd_pcm_sgbuf_ops_page, |
598 | }; | 598 | }; |
599 | 599 | ||
600 | int __devinit lola_create_pcm(struct lola *chip) | 600 | int lola_create_pcm(struct lola *chip) |
601 | { | 601 | { |
602 | struct snd_pcm *pcm; | 602 | struct snd_pcm *pcm; |
603 | int i, err; | 603 | int i, err; |
@@ -690,7 +690,7 @@ static int lola_init_stream(struct lola *chip, struct lola_stream *str, | |||
690 | return 0; | 690 | return 0; |
691 | } | 691 | } |
692 | 692 | ||
693 | int __devinit lola_init_pcm(struct lola *chip, int dir, int *nidp) | 693 | int lola_init_pcm(struct lola *chip, int dir, int *nidp) |
694 | { | 694 | { |
695 | struct lola_pcm *pcm = &chip->pcm[dir]; | 695 | struct lola_pcm *pcm = &chip->pcm[dir]; |
696 | int i, nid, err; | 696 | int i, nid, err; |
diff --git a/sound/pci/lola/lola_proc.c b/sound/pci/lola/lola_proc.c index 9d7daf897c9d..04df83defc09 100644 --- a/sound/pci/lola/lola_proc.c +++ b/sound/pci/lola/lola_proc.c | |||
@@ -206,7 +206,7 @@ static void lola_proc_regs_read(struct snd_info_entry *entry, | |||
206 | } | 206 | } |
207 | } | 207 | } |
208 | 208 | ||
209 | void __devinit lola_proc_debug_new(struct lola *chip) | 209 | void lola_proc_debug_new(struct lola *chip) |
210 | { | 210 | { |
211 | struct snd_info_entry *entry; | 211 | struct snd_info_entry *entry; |
212 | 212 | ||
diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c index 5579b08bb35b..298bc9b72991 100644 --- a/sound/pci/lx6464es/lx6464es.c +++ b/sound/pci/lx6464es/lx6464es.c | |||
@@ -578,7 +578,7 @@ static int snd_lx6464es_dev_free(struct snd_device *device) | |||
578 | } | 578 | } |
579 | 579 | ||
580 | /* reset the dsp during initialization */ | 580 | /* reset the dsp during initialization */ |
581 | static int __devinit lx_init_xilinx_reset(struct lx6464es *chip) | 581 | static int lx_init_xilinx_reset(struct lx6464es *chip) |
582 | { | 582 | { |
583 | int i; | 583 | int i; |
584 | u32 plx_reg = lx_plx_reg_read(chip, ePLX_CHIPSC); | 584 | u32 plx_reg = lx_plx_reg_read(chip, ePLX_CHIPSC); |
@@ -620,7 +620,7 @@ static int __devinit lx_init_xilinx_reset(struct lx6464es *chip) | |||
620 | return 0; | 620 | return 0; |
621 | } | 621 | } |
622 | 622 | ||
623 | static int __devinit lx_init_xilinx_test(struct lx6464es *chip) | 623 | static int lx_init_xilinx_test(struct lx6464es *chip) |
624 | { | 624 | { |
625 | u32 reg; | 625 | u32 reg; |
626 | 626 | ||
@@ -650,7 +650,7 @@ static int __devinit lx_init_xilinx_test(struct lx6464es *chip) | |||
650 | } | 650 | } |
651 | 651 | ||
652 | /* initialize ethersound */ | 652 | /* initialize ethersound */ |
653 | static int __devinit lx_init_ethersound_config(struct lx6464es *chip) | 653 | static int lx_init_ethersound_config(struct lx6464es *chip) |
654 | { | 654 | { |
655 | int i; | 655 | int i; |
656 | u32 orig_conf_es = lx_dsp_reg_read(chip, eReg_CONFES); | 656 | u32 orig_conf_es = lx_dsp_reg_read(chip, eReg_CONFES); |
@@ -690,7 +690,7 @@ static int __devinit lx_init_ethersound_config(struct lx6464es *chip) | |||
690 | return 0; | 690 | return 0; |
691 | } | 691 | } |
692 | 692 | ||
693 | static int __devinit lx_init_get_version_features(struct lx6464es *chip) | 693 | static int lx_init_get_version_features(struct lx6464es *chip) |
694 | { | 694 | { |
695 | u32 dsp_version; | 695 | u32 dsp_version; |
696 | 696 | ||
@@ -759,7 +759,7 @@ static int lx_set_granularity(struct lx6464es *chip, u32 gran) | |||
759 | } | 759 | } |
760 | 760 | ||
761 | /* initialize and test the xilinx dsp chip */ | 761 | /* initialize and test the xilinx dsp chip */ |
762 | static int __devinit lx_init_dsp(struct lx6464es *chip) | 762 | static int lx_init_dsp(struct lx6464es *chip) |
763 | { | 763 | { |
764 | int err; | 764 | int err; |
765 | int i; | 765 | int i; |
@@ -835,7 +835,7 @@ static struct snd_pcm_ops lx_ops_capture = { | |||
835 | .pointer = lx_pcm_stream_pointer, | 835 | .pointer = lx_pcm_stream_pointer, |
836 | }; | 836 | }; |
837 | 837 | ||
838 | static int __devinit lx_pcm_create(struct lx6464es *chip) | 838 | static int lx_pcm_create(struct lx6464es *chip) |
839 | { | 839 | { |
840 | int err; | 840 | int err; |
841 | struct snd_pcm *pcm; | 841 | struct snd_pcm *pcm; |
@@ -907,7 +907,7 @@ static int lx_control_playback_put(struct snd_kcontrol *kcontrol, | |||
907 | return changed; | 907 | return changed; |
908 | } | 908 | } |
909 | 909 | ||
910 | static struct snd_kcontrol_new lx_control_playback_switch __devinitdata = { | 910 | static struct snd_kcontrol_new lx_control_playback_switch = { |
911 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 911 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
912 | .name = "PCM Playback Switch", | 912 | .name = "PCM Playback Switch", |
913 | .index = 0, | 913 | .index = 0, |
@@ -954,7 +954,7 @@ static void lx_proc_levels_read(struct snd_info_entry *entry, | |||
954 | snd_iprintf(buffer, "\n"); | 954 | snd_iprintf(buffer, "\n"); |
955 | } | 955 | } |
956 | 956 | ||
957 | static int __devinit lx_proc_create(struct snd_card *card, struct lx6464es *chip) | 957 | static int lx_proc_create(struct snd_card *card, struct lx6464es *chip) |
958 | { | 958 | { |
959 | struct snd_info_entry *entry; | 959 | struct snd_info_entry *entry; |
960 | int err = snd_card_proc_new(card, "levels", &entry); | 960 | int err = snd_card_proc_new(card, "levels", &entry); |
@@ -966,9 +966,9 @@ static int __devinit lx_proc_create(struct snd_card *card, struct lx6464es *chip | |||
966 | } | 966 | } |
967 | 967 | ||
968 | 968 | ||
969 | static int __devinit snd_lx6464es_create(struct snd_card *card, | 969 | static int snd_lx6464es_create(struct snd_card *card, |
970 | struct pci_dev *pci, | 970 | struct pci_dev *pci, |
971 | struct lx6464es **rchip) | 971 | struct lx6464es **rchip) |
972 | { | 972 | { |
973 | struct lx6464es *chip; | 973 | struct lx6464es *chip; |
974 | int err; | 974 | int err; |
@@ -1082,8 +1082,8 @@ alloc_failed: | |||
1082 | return err; | 1082 | return err; |
1083 | } | 1083 | } |
1084 | 1084 | ||
1085 | static int __devinit snd_lx6464es_probe(struct pci_dev *pci, | 1085 | static int snd_lx6464es_probe(struct pci_dev *pci, |
1086 | const struct pci_device_id *pci_id) | 1086 | const struct pci_device_id *pci_id) |
1087 | { | 1087 | { |
1088 | static int dev; | 1088 | static int dev; |
1089 | struct snd_card *card; | 1089 | struct snd_card *card; |
@@ -1136,7 +1136,7 @@ out_free: | |||
1136 | 1136 | ||
1137 | } | 1137 | } |
1138 | 1138 | ||
1139 | static void __devexit snd_lx6464es_remove(struct pci_dev *pci) | 1139 | static void snd_lx6464es_remove(struct pci_dev *pci) |
1140 | { | 1140 | { |
1141 | snd_card_free(pci_get_drvdata(pci)); | 1141 | snd_card_free(pci_get_drvdata(pci)); |
1142 | pci_set_drvdata(pci, NULL); | 1142 | pci_set_drvdata(pci, NULL); |
@@ -1147,7 +1147,7 @@ static struct pci_driver lx6464es_driver = { | |||
1147 | .name = KBUILD_MODNAME, | 1147 | .name = KBUILD_MODNAME, |
1148 | .id_table = snd_lx6464es_ids, | 1148 | .id_table = snd_lx6464es_ids, |
1149 | .probe = snd_lx6464es_probe, | 1149 | .probe = snd_lx6464es_probe, |
1150 | .remove = __devexit_p(snd_lx6464es_remove), | 1150 | .remove = snd_lx6464es_remove, |
1151 | }; | 1151 | }; |
1152 | 1152 | ||
1153 | module_pci_driver(lx6464es_driver); | 1153 | module_pci_driver(lx6464es_driver); |
diff --git a/sound/pci/lx6464es/lx_core.c b/sound/pci/lx6464es/lx_core.c index 8c3e7fcefd99..633c8607d053 100644 --- a/sound/pci/lx6464es/lx_core.c +++ b/sound/pci/lx6464es/lx_core.c | |||
@@ -385,7 +385,7 @@ polling_successful: | |||
385 | 385 | ||
386 | 386 | ||
387 | /* low-level dsp access */ | 387 | /* low-level dsp access */ |
388 | int __devinit lx_dsp_get_version(struct lx6464es *chip, u32 *rdsp_version) | 388 | int lx_dsp_get_version(struct lx6464es *chip, u32 *rdsp_version) |
389 | { | 389 | { |
390 | u16 ret; | 390 | u16 ret; |
391 | unsigned long flags; | 391 | unsigned long flags; |
diff --git a/sound/pci/lx6464es/lx_core.h b/sound/pci/lx6464es/lx_core.h index 4d7ff797a646..5ec5e04da1a5 100644 --- a/sound/pci/lx6464es/lx_core.h +++ b/sound/pci/lx6464es/lx_core.h | |||
@@ -109,7 +109,7 @@ struct lx_rmh { | |||
109 | 109 | ||
110 | 110 | ||
111 | /* low-level dsp access */ | 111 | /* low-level dsp access */ |
112 | int __devinit lx_dsp_get_version(struct lx6464es *chip, u32 *rdsp_version); | 112 | int lx_dsp_get_version(struct lx6464es *chip, u32 *rdsp_version); |
113 | int lx_dsp_get_clock_frequency(struct lx6464es *chip, u32 *rfreq); | 113 | int lx_dsp_get_clock_frequency(struct lx6464es *chip, u32 *rfreq); |
114 | int lx_dsp_set_granularity(struct lx6464es *chip, u32 gran); | 114 | int lx_dsp_set_granularity(struct lx6464es *chip, u32 gran); |
115 | int lx_dsp_read_async_events(struct lx6464es *chip, u32 *data); | 115 | int lx_dsp_read_async_events(struct lx6464es *chip, u32 *data); |
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index eb3cd3a4315e..9387533f70dc 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -822,7 +822,7 @@ static DEFINE_PCI_DEVICE_TABLE(snd_m3_ids) = { | |||
822 | 822 | ||
823 | MODULE_DEVICE_TABLE(pci, snd_m3_ids); | 823 | MODULE_DEVICE_TABLE(pci, snd_m3_ids); |
824 | 824 | ||
825 | static struct snd_pci_quirk m3_amp_quirk_list[] __devinitdata = { | 825 | static struct snd_pci_quirk m3_amp_quirk_list[] = { |
826 | SND_PCI_QUIRK(0x0E11, 0x0094, "Compaq Evo N600c", 0x0c), | 826 | SND_PCI_QUIRK(0x0E11, 0x0094, "Compaq Evo N600c", 0x0c), |
827 | SND_PCI_QUIRK(0x10f7, 0x833e, "Panasonic CF-28", 0x0d), | 827 | SND_PCI_QUIRK(0x10f7, 0x833e, "Panasonic CF-28", 0x0d), |
828 | SND_PCI_QUIRK(0x10f7, 0x833d, "Panasonic CF-72", 0x0d), | 828 | SND_PCI_QUIRK(0x10f7, 0x833d, "Panasonic CF-72", 0x0d), |
@@ -831,7 +831,7 @@ static struct snd_pci_quirk m3_amp_quirk_list[] __devinitdata = { | |||
831 | { } /* END */ | 831 | { } /* END */ |
832 | }; | 832 | }; |
833 | 833 | ||
834 | static struct snd_pci_quirk m3_irda_quirk_list[] __devinitdata = { | 834 | static struct snd_pci_quirk m3_irda_quirk_list[] = { |
835 | SND_PCI_QUIRK(0x1028, 0x00b0, "Dell Inspiron 4000", 1), | 835 | SND_PCI_QUIRK(0x1028, 0x00b0, "Dell Inspiron 4000", 1), |
836 | SND_PCI_QUIRK(0x1028, 0x00a4, "Dell Inspiron 8000", 1), | 836 | SND_PCI_QUIRK(0x1028, 0x00a4, "Dell Inspiron 8000", 1), |
837 | SND_PCI_QUIRK(0x1028, 0x00e6, "Dell Inspiron 8100", 1), | 837 | SND_PCI_QUIRK(0x1028, 0x00e6, "Dell Inspiron 8100", 1), |
@@ -839,7 +839,7 @@ static struct snd_pci_quirk m3_irda_quirk_list[] __devinitdata = { | |||
839 | }; | 839 | }; |
840 | 840 | ||
841 | /* hardware volume quirks */ | 841 | /* hardware volume quirks */ |
842 | static struct snd_pci_quirk m3_hv_quirk_list[] __devinitdata = { | 842 | static struct snd_pci_quirk m3_hv_quirk_list[] = { |
843 | /* Allegro chips */ | 843 | /* Allegro chips */ |
844 | SND_PCI_QUIRK(0x0E11, 0x002E, NULL, HV_CTRL_ENABLE | HV_BUTTON_FROM_GD), | 844 | SND_PCI_QUIRK(0x0E11, 0x002E, NULL, HV_CTRL_ENABLE | HV_BUTTON_FROM_GD), |
845 | SND_PCI_QUIRK(0x0E11, 0x0094, NULL, HV_CTRL_ENABLE | HV_BUTTON_FROM_GD), | 845 | SND_PCI_QUIRK(0x0E11, 0x0094, NULL, HV_CTRL_ENABLE | HV_BUTTON_FROM_GD), |
@@ -917,7 +917,7 @@ static struct snd_pci_quirk m3_hv_quirk_list[] __devinitdata = { | |||
917 | }; | 917 | }; |
918 | 918 | ||
919 | /* HP Omnibook quirks */ | 919 | /* HP Omnibook quirks */ |
920 | static struct snd_pci_quirk m3_omnibook_quirk_list[] __devinitdata = { | 920 | static struct snd_pci_quirk m3_omnibook_quirk_list[] = { |
921 | SND_PCI_QUIRK_ID(0x103c, 0x0010), /* HP OmniBook 6000 */ | 921 | SND_PCI_QUIRK_ID(0x103c, 0x0010), /* HP OmniBook 6000 */ |
922 | SND_PCI_QUIRK_ID(0x103c, 0x0011), /* HP OmniBook 500 */ | 922 | SND_PCI_QUIRK_ID(0x103c, 0x0011), /* HP OmniBook 500 */ |
923 | { } /* END */ | 923 | { } /* END */ |
@@ -1856,7 +1856,7 @@ static struct snd_pcm_ops snd_m3_capture_ops = { | |||
1856 | .pointer = snd_m3_pcm_pointer, | 1856 | .pointer = snd_m3_pcm_pointer, |
1857 | }; | 1857 | }; |
1858 | 1858 | ||
1859 | static int __devinit | 1859 | static int |
1860 | snd_m3_pcm(struct snd_m3 * chip, int device) | 1860 | snd_m3_pcm(struct snd_m3 * chip, int device) |
1861 | { | 1861 | { |
1862 | struct snd_pcm *pcm; | 1862 | struct snd_pcm *pcm; |
@@ -2031,7 +2031,7 @@ static void snd_m3_ac97_reset(struct snd_m3 *chip) | |||
2031 | #endif | 2031 | #endif |
2032 | } | 2032 | } |
2033 | 2033 | ||
2034 | static int __devinit snd_m3_mixer(struct snd_m3 *chip) | 2034 | static int snd_m3_mixer(struct snd_m3 *chip) |
2035 | { | 2035 | { |
2036 | struct snd_ac97_bus *pbus; | 2036 | struct snd_ac97_bus *pbus; |
2037 | struct snd_ac97_template ac97; | 2037 | struct snd_ac97_template ac97; |
@@ -2173,7 +2173,7 @@ static void snd_m3_assp_init(struct snd_m3 *chip) | |||
2173 | } | 2173 | } |
2174 | 2174 | ||
2175 | 2175 | ||
2176 | static int __devinit snd_m3_assp_client_init(struct snd_m3 *chip, struct m3_dma *s, int index) | 2176 | static int snd_m3_assp_client_init(struct snd_m3 *chip, struct m3_dma *s, int index) |
2177 | { | 2177 | { |
2178 | int data_bytes = 2 * ( MINISRC_TMP_BUFFER_SIZE / 2 + | 2178 | int data_bytes = 2 * ( MINISRC_TMP_BUFFER_SIZE / 2 + |
2179 | MINISRC_IN_BUFFER_SIZE / 2 + | 2179 | MINISRC_IN_BUFFER_SIZE / 2 + |
@@ -2488,7 +2488,7 @@ static SIMPLE_DEV_PM_OPS(m3_pm, m3_suspend, m3_resume); | |||
2488 | #endif /* CONFIG_PM_SLEEP */ | 2488 | #endif /* CONFIG_PM_SLEEP */ |
2489 | 2489 | ||
2490 | #ifdef CONFIG_SND_MAESTRO3_INPUT | 2490 | #ifdef CONFIG_SND_MAESTRO3_INPUT |
2491 | static int __devinit snd_m3_input_register(struct snd_m3 *chip) | 2491 | static int snd_m3_input_register(struct snd_m3 *chip) |
2492 | { | 2492 | { |
2493 | struct input_dev *input_dev; | 2493 | struct input_dev *input_dev; |
2494 | int err; | 2494 | int err; |
@@ -2532,7 +2532,7 @@ static int snd_m3_dev_free(struct snd_device *device) | |||
2532 | return snd_m3_free(chip); | 2532 | return snd_m3_free(chip); |
2533 | } | 2533 | } |
2534 | 2534 | ||
2535 | static int __devinit | 2535 | static int |
2536 | snd_m3_create(struct snd_card *card, struct pci_dev *pci, | 2536 | snd_m3_create(struct snd_card *card, struct pci_dev *pci, |
2537 | int enable_amp, | 2537 | int enable_amp, |
2538 | int amp_gpio, | 2538 | int amp_gpio, |
@@ -2700,7 +2700,7 @@ snd_m3_create(struct snd_card *card, struct pci_dev *pci, | |||
2700 | 2700 | ||
2701 | /* | 2701 | /* |
2702 | */ | 2702 | */ |
2703 | static int __devinit | 2703 | static int |
2704 | snd_m3_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | 2704 | snd_m3_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) |
2705 | { | 2705 | { |
2706 | static int dev; | 2706 | static int dev; |
@@ -2770,7 +2770,7 @@ snd_m3_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
2770 | return 0; | 2770 | return 0; |
2771 | } | 2771 | } |
2772 | 2772 | ||
2773 | static void __devexit snd_m3_remove(struct pci_dev *pci) | 2773 | static void snd_m3_remove(struct pci_dev *pci) |
2774 | { | 2774 | { |
2775 | snd_card_free(pci_get_drvdata(pci)); | 2775 | snd_card_free(pci_get_drvdata(pci)); |
2776 | pci_set_drvdata(pci, NULL); | 2776 | pci_set_drvdata(pci, NULL); |
@@ -2780,7 +2780,7 @@ static struct pci_driver m3_driver = { | |||
2780 | .name = KBUILD_MODNAME, | 2780 | .name = KBUILD_MODNAME, |
2781 | .id_table = snd_m3_ids, | 2781 | .id_table = snd_m3_ids, |
2782 | .probe = snd_m3_probe, | 2782 | .probe = snd_m3_probe, |
2783 | .remove = __devexit_p(snd_m3_remove), | 2783 | .remove = snd_m3_remove, |
2784 | .driver = { | 2784 | .driver = { |
2785 | .pm = M3_PM_OPS, | 2785 | .pm = M3_PM_OPS, |
2786 | }, | 2786 | }, |
diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index 0762610c99c0..01f7f37a8410 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c | |||
@@ -1004,7 +1004,7 @@ static int snd_mixart_chip_dev_free(struct snd_device *device) | |||
1004 | 1004 | ||
1005 | /* | 1005 | /* |
1006 | */ | 1006 | */ |
1007 | static int __devinit snd_mixart_create(struct mixart_mgr *mgr, struct snd_card *card, int idx) | 1007 | static int snd_mixart_create(struct mixart_mgr *mgr, struct snd_card *card, int idx) |
1008 | { | 1008 | { |
1009 | int err; | 1009 | int err; |
1010 | struct snd_mixart *chip; | 1010 | struct snd_mixart *chip; |
@@ -1180,7 +1180,7 @@ static void snd_mixart_proc_read(struct snd_info_entry *entry, | |||
1180 | } /* endif elf loaded */ | 1180 | } /* endif elf loaded */ |
1181 | } | 1181 | } |
1182 | 1182 | ||
1183 | static void __devinit snd_mixart_proc_init(struct snd_mixart *chip) | 1183 | static void snd_mixart_proc_init(struct snd_mixart *chip) |
1184 | { | 1184 | { |
1185 | struct snd_info_entry *entry; | 1185 | struct snd_info_entry *entry; |
1186 | 1186 | ||
@@ -1209,8 +1209,8 @@ static void __devinit snd_mixart_proc_init(struct snd_mixart *chip) | |||
1209 | /* | 1209 | /* |
1210 | * probe function - creates the card manager | 1210 | * probe function - creates the card manager |
1211 | */ | 1211 | */ |
1212 | static int __devinit snd_mixart_probe(struct pci_dev *pci, | 1212 | static int snd_mixart_probe(struct pci_dev *pci, |
1213 | const struct pci_device_id *pci_id) | 1213 | const struct pci_device_id *pci_id) |
1214 | { | 1214 | { |
1215 | static int dev; | 1215 | static int dev; |
1216 | struct mixart_mgr *mgr; | 1216 | struct mixart_mgr *mgr; |
@@ -1374,7 +1374,7 @@ static int __devinit snd_mixart_probe(struct pci_dev *pci, | |||
1374 | return 0; | 1374 | return 0; |
1375 | } | 1375 | } |
1376 | 1376 | ||
1377 | static void __devexit snd_mixart_remove(struct pci_dev *pci) | 1377 | static void snd_mixart_remove(struct pci_dev *pci) |
1378 | { | 1378 | { |
1379 | snd_mixart_free(pci_get_drvdata(pci)); | 1379 | snd_mixart_free(pci_get_drvdata(pci)); |
1380 | pci_set_drvdata(pci, NULL); | 1380 | pci_set_drvdata(pci, NULL); |
@@ -1384,7 +1384,7 @@ static struct pci_driver mixart_driver = { | |||
1384 | .name = KBUILD_MODNAME, | 1384 | .name = KBUILD_MODNAME, |
1385 | .id_table = snd_mixart_ids, | 1385 | .id_table = snd_mixart_ids, |
1386 | .probe = snd_mixart_probe, | 1386 | .probe = snd_mixart_probe, |
1387 | .remove = __devexit_p(snd_mixart_remove), | 1387 | .remove = snd_mixart_remove, |
1388 | }; | 1388 | }; |
1389 | 1389 | ||
1390 | module_pci_driver(mixart_driver); | 1390 | module_pci_driver(mixart_driver); |
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index e80e9a1e84aa..563a193e36a3 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c | |||
@@ -928,7 +928,7 @@ static struct snd_pcm_ops snd_nm256_capture_ops = { | |||
928 | .mmap = snd_pcm_lib_mmap_iomem, | 928 | .mmap = snd_pcm_lib_mmap_iomem, |
929 | }; | 929 | }; |
930 | 930 | ||
931 | static int __devinit | 931 | static int |
932 | snd_nm256_pcm(struct nm256 *chip, int device) | 932 | snd_nm256_pcm(struct nm256 *chip, int device) |
933 | { | 933 | { |
934 | struct snd_pcm *pcm; | 934 | struct snd_pcm *pcm; |
@@ -1295,7 +1295,7 @@ snd_nm256_ac97_reset(struct snd_ac97 *ac97) | |||
1295 | } | 1295 | } |
1296 | 1296 | ||
1297 | /* create an ac97 mixer interface */ | 1297 | /* create an ac97 mixer interface */ |
1298 | static int __devinit | 1298 | static int |
1299 | snd_nm256_mixer(struct nm256 *chip) | 1299 | snd_nm256_mixer(struct nm256 *chip) |
1300 | { | 1300 | { |
1301 | struct snd_ac97_bus *pbus; | 1301 | struct snd_ac97_bus *pbus; |
@@ -1336,7 +1336,7 @@ snd_nm256_mixer(struct nm256 *chip) | |||
1336 | * RAM. | 1336 | * RAM. |
1337 | */ | 1337 | */ |
1338 | 1338 | ||
1339 | static int __devinit | 1339 | static int |
1340 | snd_nm256_peek_for_sig(struct nm256 *chip) | 1340 | snd_nm256_peek_for_sig(struct nm256 *chip) |
1341 | { | 1341 | { |
1342 | /* The signature is located 1K below the end of video RAM. */ | 1342 | /* The signature is located 1K below the end of video RAM. */ |
@@ -1472,7 +1472,7 @@ static int snd_nm256_dev_free(struct snd_device *device) | |||
1472 | return snd_nm256_free(chip); | 1472 | return snd_nm256_free(chip); |
1473 | } | 1473 | } |
1474 | 1474 | ||
1475 | static int __devinit | 1475 | static int |
1476 | snd_nm256_create(struct snd_card *card, struct pci_dev *pci, | 1476 | snd_nm256_create(struct snd_card *card, struct pci_dev *pci, |
1477 | struct nm256 **chip_ret) | 1477 | struct nm256 **chip_ret) |
1478 | { | 1478 | { |
@@ -1639,7 +1639,7 @@ __error: | |||
1639 | 1639 | ||
1640 | enum { NM_BLACKLISTED, NM_RESET_WORKAROUND, NM_RESET_WORKAROUND_2 }; | 1640 | enum { NM_BLACKLISTED, NM_RESET_WORKAROUND, NM_RESET_WORKAROUND_2 }; |
1641 | 1641 | ||
1642 | static struct snd_pci_quirk nm256_quirks[] __devinitdata = { | 1642 | static struct snd_pci_quirk nm256_quirks[] = { |
1643 | /* HP omnibook 4150 has cs4232 codec internally */ | 1643 | /* HP omnibook 4150 has cs4232 codec internally */ |
1644 | SND_PCI_QUIRK(0x103c, 0x0007, "HP omnibook 4150", NM_BLACKLISTED), | 1644 | SND_PCI_QUIRK(0x103c, 0x0007, "HP omnibook 4150", NM_BLACKLISTED), |
1645 | /* Reset workarounds to avoid lock-ups */ | 1645 | /* Reset workarounds to avoid lock-ups */ |
@@ -1650,8 +1650,8 @@ static struct snd_pci_quirk nm256_quirks[] __devinitdata = { | |||
1650 | }; | 1650 | }; |
1651 | 1651 | ||
1652 | 1652 | ||
1653 | static int __devinit snd_nm256_probe(struct pci_dev *pci, | 1653 | static int snd_nm256_probe(struct pci_dev *pci, |
1654 | const struct pci_device_id *pci_id) | 1654 | const struct pci_device_id *pci_id) |
1655 | { | 1655 | { |
1656 | struct snd_card *card; | 1656 | struct snd_card *card; |
1657 | struct nm256 *chip; | 1657 | struct nm256 *chip; |
@@ -1742,7 +1742,7 @@ static int __devinit snd_nm256_probe(struct pci_dev *pci, | |||
1742 | return 0; | 1742 | return 0; |
1743 | } | 1743 | } |
1744 | 1744 | ||
1745 | static void __devexit snd_nm256_remove(struct pci_dev *pci) | 1745 | static void snd_nm256_remove(struct pci_dev *pci) |
1746 | { | 1746 | { |
1747 | snd_card_free(pci_get_drvdata(pci)); | 1747 | snd_card_free(pci_get_drvdata(pci)); |
1748 | pci_set_drvdata(pci, NULL); | 1748 | pci_set_drvdata(pci, NULL); |
@@ -1753,7 +1753,7 @@ static struct pci_driver nm256_driver = { | |||
1753 | .name = KBUILD_MODNAME, | 1753 | .name = KBUILD_MODNAME, |
1754 | .id_table = snd_nm256_ids, | 1754 | .id_table = snd_nm256_ids, |
1755 | .probe = snd_nm256_probe, | 1755 | .probe = snd_nm256_probe, |
1756 | .remove = __devexit_p(snd_nm256_remove), | 1756 | .remove = snd_nm256_remove, |
1757 | .driver = { | 1757 | .driver = { |
1758 | .pm = NM256_PM_OPS, | 1758 | .pm = NM256_PM_OPS, |
1759 | }, | 1759 | }, |
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c index be4f1456009a..b97384ad946d 100644 --- a/sound/pci/pcxhr/pcxhr.c +++ b/sound/pci/pcxhr/pcxhr.c | |||
@@ -1203,8 +1203,8 @@ static int pcxhr_chip_dev_free(struct snd_device *device) | |||
1203 | 1203 | ||
1204 | /* | 1204 | /* |
1205 | */ | 1205 | */ |
1206 | static int __devinit pcxhr_create(struct pcxhr_mgr *mgr, | 1206 | static int pcxhr_create(struct pcxhr_mgr *mgr, |
1207 | struct snd_card *card, int idx) | 1207 | struct snd_card *card, int idx) |
1208 | { | 1208 | { |
1209 | int err; | 1209 | int err; |
1210 | struct snd_pcxhr *chip; | 1210 | struct snd_pcxhr *chip; |
@@ -1453,7 +1453,7 @@ static void pcxhr_proc_ltc(struct snd_info_entry *entry, | |||
1453 | } | 1453 | } |
1454 | } | 1454 | } |
1455 | 1455 | ||
1456 | static void __devinit pcxhr_proc_init(struct snd_pcxhr *chip) | 1456 | static void pcxhr_proc_init(struct snd_pcxhr *chip) |
1457 | { | 1457 | { |
1458 | struct snd_info_entry *entry; | 1458 | struct snd_info_entry *entry; |
1459 | 1459 | ||
@@ -1513,8 +1513,8 @@ static int pcxhr_free(struct pcxhr_mgr *mgr) | |||
1513 | /* | 1513 | /* |
1514 | * probe function - creates the card manager | 1514 | * probe function - creates the card manager |
1515 | */ | 1515 | */ |
1516 | static int __devinit pcxhr_probe(struct pci_dev *pci, | 1516 | static int pcxhr_probe(struct pci_dev *pci, |
1517 | const struct pci_device_id *pci_id) | 1517 | const struct pci_device_id *pci_id) |
1518 | { | 1518 | { |
1519 | static int dev; | 1519 | static int dev; |
1520 | struct pcxhr_mgr *mgr; | 1520 | struct pcxhr_mgr *mgr; |
@@ -1688,7 +1688,7 @@ static int __devinit pcxhr_probe(struct pci_dev *pci, | |||
1688 | return 0; | 1688 | return 0; |
1689 | } | 1689 | } |
1690 | 1690 | ||
1691 | static void __devexit pcxhr_remove(struct pci_dev *pci) | 1691 | static void pcxhr_remove(struct pci_dev *pci) |
1692 | { | 1692 | { |
1693 | pcxhr_free(pci_get_drvdata(pci)); | 1693 | pcxhr_free(pci_get_drvdata(pci)); |
1694 | pci_set_drvdata(pci, NULL); | 1694 | pci_set_drvdata(pci, NULL); |
@@ -1698,7 +1698,7 @@ static struct pci_driver pcxhr_driver = { | |||
1698 | .name = KBUILD_MODNAME, | 1698 | .name = KBUILD_MODNAME, |
1699 | .id_table = pcxhr_ids, | 1699 | .id_table = pcxhr_ids, |
1700 | .probe = pcxhr_probe, | 1700 | .probe = pcxhr_probe, |
1701 | .remove = __devexit_p(pcxhr_remove), | 1701 | .remove = pcxhr_remove, |
1702 | }; | 1702 | }; |
1703 | 1703 | ||
1704 | module_pci_driver(pcxhr_driver); | 1704 | module_pci_driver(pcxhr_driver); |
diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c index 7d291542c5ba..63c1c8041554 100644 --- a/sound/pci/riptide/riptide.c +++ b/sound/pci/riptide/riptide.c | |||
@@ -1706,7 +1706,7 @@ static struct snd_pcm_ops snd_riptide_capture_ops = { | |||
1706 | .pointer = snd_riptide_pointer, | 1706 | .pointer = snd_riptide_pointer, |
1707 | }; | 1707 | }; |
1708 | 1708 | ||
1709 | static int __devinit | 1709 | static int |
1710 | snd_riptide_pcm(struct snd_riptide *chip, int device, struct snd_pcm **rpcm) | 1710 | snd_riptide_pcm(struct snd_riptide *chip, int device, struct snd_pcm **rpcm) |
1711 | { | 1711 | { |
1712 | struct snd_pcm *pcm; | 1712 | struct snd_pcm *pcm; |
@@ -1857,7 +1857,7 @@ static int snd_riptide_dev_free(struct snd_device *device) | |||
1857 | return snd_riptide_free(chip); | 1857 | return snd_riptide_free(chip); |
1858 | } | 1858 | } |
1859 | 1859 | ||
1860 | static int __devinit | 1860 | static int |
1861 | snd_riptide_create(struct snd_card *card, struct pci_dev *pci, | 1861 | snd_riptide_create(struct snd_card *card, struct pci_dev *pci, |
1862 | struct snd_riptide **rchip) | 1862 | struct snd_riptide **rchip) |
1863 | { | 1863 | { |
@@ -1993,7 +1993,7 @@ snd_riptide_proc_read(struct snd_info_entry *entry, | |||
1993 | snd_iprintf(buffer, "\n"); | 1993 | snd_iprintf(buffer, "\n"); |
1994 | } | 1994 | } |
1995 | 1995 | ||
1996 | static void __devinit snd_riptide_proc_init(struct snd_riptide *chip) | 1996 | static void snd_riptide_proc_init(struct snd_riptide *chip) |
1997 | { | 1997 | { |
1998 | struct snd_info_entry *entry; | 1998 | struct snd_info_entry *entry; |
1999 | 1999 | ||
@@ -2001,7 +2001,7 @@ static void __devinit snd_riptide_proc_init(struct snd_riptide *chip) | |||
2001 | snd_info_set_text_ops(entry, chip, snd_riptide_proc_read); | 2001 | snd_info_set_text_ops(entry, chip, snd_riptide_proc_read); |
2002 | } | 2002 | } |
2003 | 2003 | ||
2004 | static int __devinit snd_riptide_mixer(struct snd_riptide *chip) | 2004 | static int snd_riptide_mixer(struct snd_riptide *chip) |
2005 | { | 2005 | { |
2006 | struct snd_ac97_bus *pbus; | 2006 | struct snd_ac97_bus *pbus; |
2007 | struct snd_ac97_template ac97; | 2007 | struct snd_ac97_template ac97; |
@@ -2027,7 +2027,7 @@ static int __devinit snd_riptide_mixer(struct snd_riptide *chip) | |||
2027 | 2027 | ||
2028 | #ifdef SUPPORT_JOYSTICK | 2028 | #ifdef SUPPORT_JOYSTICK |
2029 | 2029 | ||
2030 | static int __devinit | 2030 | static int |
2031 | snd_riptide_joystick_probe(struct pci_dev *pci, const struct pci_device_id *id) | 2031 | snd_riptide_joystick_probe(struct pci_dev *pci, const struct pci_device_id *id) |
2032 | { | 2032 | { |
2033 | static int dev; | 2033 | static int dev; |
@@ -2060,7 +2060,7 @@ snd_riptide_joystick_probe(struct pci_dev *pci, const struct pci_device_id *id) | |||
2060 | return 0; | 2060 | return 0; |
2061 | } | 2061 | } |
2062 | 2062 | ||
2063 | static void __devexit snd_riptide_joystick_remove(struct pci_dev *pci) | 2063 | static void snd_riptide_joystick_remove(struct pci_dev *pci) |
2064 | { | 2064 | { |
2065 | struct gameport *gameport = pci_get_drvdata(pci); | 2065 | struct gameport *gameport = pci_get_drvdata(pci); |
2066 | if (gameport) { | 2066 | if (gameport) { |
@@ -2071,7 +2071,7 @@ static void __devexit snd_riptide_joystick_remove(struct pci_dev *pci) | |||
2071 | } | 2071 | } |
2072 | #endif | 2072 | #endif |
2073 | 2073 | ||
2074 | static int __devinit | 2074 | static int |
2075 | snd_card_riptide_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | 2075 | snd_card_riptide_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) |
2076 | { | 2076 | { |
2077 | static int dev; | 2077 | static int dev; |
@@ -2176,7 +2176,7 @@ snd_card_riptide_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
2176 | return err; | 2176 | return err; |
2177 | } | 2177 | } |
2178 | 2178 | ||
2179 | static void __devexit snd_card_riptide_remove(struct pci_dev *pci) | 2179 | static void snd_card_riptide_remove(struct pci_dev *pci) |
2180 | { | 2180 | { |
2181 | snd_card_free(pci_get_drvdata(pci)); | 2181 | snd_card_free(pci_get_drvdata(pci)); |
2182 | pci_set_drvdata(pci, NULL); | 2182 | pci_set_drvdata(pci, NULL); |
@@ -2186,7 +2186,7 @@ static struct pci_driver driver = { | |||
2186 | .name = KBUILD_MODNAME, | 2186 | .name = KBUILD_MODNAME, |
2187 | .id_table = snd_riptide_ids, | 2187 | .id_table = snd_riptide_ids, |
2188 | .probe = snd_card_riptide_probe, | 2188 | .probe = snd_card_riptide_probe, |
2189 | .remove = __devexit_p(snd_card_riptide_remove), | 2189 | .remove = snd_card_riptide_remove, |
2190 | .driver = { | 2190 | .driver = { |
2191 | .pm = RIPTIDE_PM_OPS, | 2191 | .pm = RIPTIDE_PM_OPS, |
2192 | }, | 2192 | }, |
@@ -2197,7 +2197,7 @@ static struct pci_driver joystick_driver = { | |||
2197 | .name = KBUILD_MODNAME "-joystick", | 2197 | .name = KBUILD_MODNAME "-joystick", |
2198 | .id_table = snd_riptide_joystick_ids, | 2198 | .id_table = snd_riptide_joystick_ids, |
2199 | .probe = snd_riptide_joystick_probe, | 2199 | .probe = snd_riptide_joystick_probe, |
2200 | .remove = __devexit_p(snd_riptide_joystick_remove), | 2200 | .remove = snd_riptide_joystick_remove, |
2201 | }; | 2201 | }; |
2202 | #endif | 2202 | #endif |
2203 | 2203 | ||
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index 46b3629dda22..2450663e1a18 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c | |||
@@ -1332,7 +1332,7 @@ snd_rme32_free_adat_pcm(struct snd_pcm *pcm) | |||
1332 | rme32->adat_pcm = NULL; | 1332 | rme32->adat_pcm = NULL; |
1333 | } | 1333 | } |
1334 | 1334 | ||
1335 | static int __devinit snd_rme32_create(struct rme32 * rme32) | 1335 | static int snd_rme32_create(struct rme32 *rme32) |
1336 | { | 1336 | { |
1337 | struct pci_dev *pci = rme32->pci; | 1337 | struct pci_dev *pci = rme32->pci; |
1338 | int err; | 1338 | int err; |
@@ -1554,7 +1554,7 @@ snd_rme32_proc_read(struct snd_info_entry * entry, struct snd_info_buffer *buffe | |||
1554 | } | 1554 | } |
1555 | } | 1555 | } |
1556 | 1556 | ||
1557 | static void __devinit snd_rme32_proc_init(struct rme32 * rme32) | 1557 | static void snd_rme32_proc_init(struct rme32 *rme32) |
1558 | { | 1558 | { |
1559 | struct snd_info_entry *entry; | 1559 | struct snd_info_entry *entry; |
1560 | 1560 | ||
@@ -1922,7 +1922,7 @@ static void snd_rme32_card_free(struct snd_card *card) | |||
1922 | snd_rme32_free(card->private_data); | 1922 | snd_rme32_free(card->private_data); |
1923 | } | 1923 | } |
1924 | 1924 | ||
1925 | static int __devinit | 1925 | static int |
1926 | snd_rme32_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | 1926 | snd_rme32_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) |
1927 | { | 1927 | { |
1928 | static int dev; | 1928 | static int dev; |
@@ -1978,7 +1978,7 @@ snd_rme32_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
1978 | return 0; | 1978 | return 0; |
1979 | } | 1979 | } |
1980 | 1980 | ||
1981 | static void __devexit snd_rme32_remove(struct pci_dev *pci) | 1981 | static void snd_rme32_remove(struct pci_dev *pci) |
1982 | { | 1982 | { |
1983 | snd_card_free(pci_get_drvdata(pci)); | 1983 | snd_card_free(pci_get_drvdata(pci)); |
1984 | pci_set_drvdata(pci, NULL); | 1984 | pci_set_drvdata(pci, NULL); |
@@ -1988,7 +1988,7 @@ static struct pci_driver rme32_driver = { | |||
1988 | .name = KBUILD_MODNAME, | 1988 | .name = KBUILD_MODNAME, |
1989 | .id_table = snd_rme32_ids, | 1989 | .id_table = snd_rme32_ids, |
1990 | .probe = snd_rme32_probe, | 1990 | .probe = snd_rme32_probe, |
1991 | .remove = __devexit_p(snd_rme32_remove), | 1991 | .remove = snd_rme32_remove, |
1992 | }; | 1992 | }; |
1993 | 1993 | ||
1994 | module_pci_driver(rme32_driver); | 1994 | module_pci_driver(rme32_driver); |
diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c index 9b98dc406988..5fb88ac82aa9 100644 --- a/sound/pci/rme96.c +++ b/sound/pci/rme96.c | |||
@@ -270,8 +270,7 @@ snd_rme96_playback_pointer(struct snd_pcm_substream *substream); | |||
270 | static snd_pcm_uframes_t | 270 | static snd_pcm_uframes_t |
271 | snd_rme96_capture_pointer(struct snd_pcm_substream *substream); | 271 | snd_rme96_capture_pointer(struct snd_pcm_substream *substream); |
272 | 272 | ||
273 | static void __devinit | 273 | static void snd_rme96_proc_init(struct rme96 *rme96); |
274 | snd_rme96_proc_init(struct rme96 *rme96); | ||
275 | 274 | ||
276 | static int | 275 | static int |
277 | snd_rme96_create_switches(struct snd_card *card, | 276 | snd_rme96_create_switches(struct snd_card *card, |
@@ -1538,7 +1537,7 @@ snd_rme96_free_adat_pcm(struct snd_pcm *pcm) | |||
1538 | rme96->adat_pcm = NULL; | 1537 | rme96->adat_pcm = NULL; |
1539 | } | 1538 | } |
1540 | 1539 | ||
1541 | static int __devinit | 1540 | static int |
1542 | snd_rme96_create(struct rme96 *rme96) | 1541 | snd_rme96_create(struct rme96 *rme96) |
1543 | { | 1542 | { |
1544 | struct pci_dev *pci = rme96->pci; | 1543 | struct pci_dev *pci = rme96->pci; |
@@ -1786,8 +1785,7 @@ snd_rme96_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer | |||
1786 | } | 1785 | } |
1787 | } | 1786 | } |
1788 | 1787 | ||
1789 | static void __devinit | 1788 | static void snd_rme96_proc_init(struct rme96 *rme96) |
1790 | snd_rme96_proc_init(struct rme96 *rme96) | ||
1791 | { | 1789 | { |
1792 | struct snd_info_entry *entry; | 1790 | struct snd_info_entry *entry; |
1793 | 1791 | ||
@@ -2326,7 +2324,7 @@ static void snd_rme96_card_free(struct snd_card *card) | |||
2326 | snd_rme96_free(card->private_data); | 2324 | snd_rme96_free(card->private_data); |
2327 | } | 2325 | } |
2328 | 2326 | ||
2329 | static int __devinit | 2327 | static int |
2330 | snd_rme96_probe(struct pci_dev *pci, | 2328 | snd_rme96_probe(struct pci_dev *pci, |
2331 | const struct pci_device_id *pci_id) | 2329 | const struct pci_device_id *pci_id) |
2332 | { | 2330 | { |
@@ -2389,7 +2387,7 @@ snd_rme96_probe(struct pci_dev *pci, | |||
2389 | return 0; | 2387 | return 0; |
2390 | } | 2388 | } |
2391 | 2389 | ||
2392 | static void __devexit snd_rme96_remove(struct pci_dev *pci) | 2390 | static void snd_rme96_remove(struct pci_dev *pci) |
2393 | { | 2391 | { |
2394 | snd_card_free(pci_get_drvdata(pci)); | 2392 | snd_card_free(pci_get_drvdata(pci)); |
2395 | pci_set_drvdata(pci, NULL); | 2393 | pci_set_drvdata(pci, NULL); |
@@ -2399,7 +2397,7 @@ static struct pci_driver rme96_driver = { | |||
2399 | .name = KBUILD_MODNAME, | 2397 | .name = KBUILD_MODNAME, |
2400 | .id_table = snd_rme96_ids, | 2398 | .id_table = snd_rme96_ids, |
2401 | .probe = snd_rme96_probe, | 2399 | .probe = snd_rme96_probe, |
2402 | .remove = __devexit_p(snd_rme96_remove), | 2400 | .remove = snd_rme96_remove, |
2403 | }; | 2401 | }; |
2404 | 2402 | ||
2405 | module_pci_driver(rme96_driver); | 2403 | module_pci_driver(rme96_driver); |
diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c index 0f82bb5f42ea..4fae81f21efb 100644 --- a/sound/pci/rme9652/hdsp.c +++ b/sound/pci/rme9652/hdsp.c | |||
@@ -4020,7 +4020,7 @@ static void snd_hdsp_free_buffers(struct hdsp *hdsp) | |||
4020 | snd_hammerfall_free_buffer(&hdsp->playback_dma_buf, hdsp->pci); | 4020 | snd_hammerfall_free_buffer(&hdsp->playback_dma_buf, hdsp->pci); |
4021 | } | 4021 | } |
4022 | 4022 | ||
4023 | static int __devinit snd_hdsp_initialize_memory(struct hdsp *hdsp) | 4023 | static int snd_hdsp_initialize_memory(struct hdsp *hdsp) |
4024 | { | 4024 | { |
4025 | unsigned long pb_bus, cb_bus; | 4025 | unsigned long pb_bus, cb_bus; |
4026 | 4026 | ||
@@ -5413,8 +5413,8 @@ static int hdsp_request_fw_loader(struct hdsp *hdsp) | |||
5413 | return 0; | 5413 | return 0; |
5414 | } | 5414 | } |
5415 | 5415 | ||
5416 | static int __devinit snd_hdsp_create(struct snd_card *card, | 5416 | static int snd_hdsp_create(struct snd_card *card, |
5417 | struct hdsp *hdsp) | 5417 | struct hdsp *hdsp) |
5418 | { | 5418 | { |
5419 | struct pci_dev *pci = hdsp->pci; | 5419 | struct pci_dev *pci = hdsp->pci; |
5420 | int err; | 5420 | int err; |
@@ -5593,8 +5593,8 @@ static void snd_hdsp_card_free(struct snd_card *card) | |||
5593 | snd_hdsp_free(hdsp); | 5593 | snd_hdsp_free(hdsp); |
5594 | } | 5594 | } |
5595 | 5595 | ||
5596 | static int __devinit snd_hdsp_probe(struct pci_dev *pci, | 5596 | static int snd_hdsp_probe(struct pci_dev *pci, |
5597 | const struct pci_device_id *pci_id) | 5597 | const struct pci_device_id *pci_id) |
5598 | { | 5598 | { |
5599 | static int dev; | 5599 | static int dev; |
5600 | struct hdsp *hdsp; | 5600 | struct hdsp *hdsp; |
@@ -5637,7 +5637,7 @@ static int __devinit snd_hdsp_probe(struct pci_dev *pci, | |||
5637 | return 0; | 5637 | return 0; |
5638 | } | 5638 | } |
5639 | 5639 | ||
5640 | static void __devexit snd_hdsp_remove(struct pci_dev *pci) | 5640 | static void snd_hdsp_remove(struct pci_dev *pci) |
5641 | { | 5641 | { |
5642 | snd_card_free(pci_get_drvdata(pci)); | 5642 | snd_card_free(pci_get_drvdata(pci)); |
5643 | pci_set_drvdata(pci, NULL); | 5643 | pci_set_drvdata(pci, NULL); |
@@ -5647,7 +5647,7 @@ static struct pci_driver hdsp_driver = { | |||
5647 | .name = KBUILD_MODNAME, | 5647 | .name = KBUILD_MODNAME, |
5648 | .id_table = snd_hdsp_ids, | 5648 | .id_table = snd_hdsp_ids, |
5649 | .probe = snd_hdsp_probe, | 5649 | .probe = snd_hdsp_probe, |
5650 | .remove = __devexit_p(snd_hdsp_remove), | 5650 | .remove = snd_hdsp_remove, |
5651 | }; | 5651 | }; |
5652 | 5652 | ||
5653 | module_pci_driver(hdsp_driver); | 5653 | module_pci_driver(hdsp_driver); |
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index a7e0de1a1b4b..6e02e064d7b4 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c | |||
@@ -962,10 +962,10 @@ static DEFINE_PCI_DEVICE_TABLE(snd_hdspm_ids) = { | |||
962 | MODULE_DEVICE_TABLE(pci, snd_hdspm_ids); | 962 | MODULE_DEVICE_TABLE(pci, snd_hdspm_ids); |
963 | 963 | ||
964 | /* prototypes */ | 964 | /* prototypes */ |
965 | static int __devinit snd_hdspm_create_alsa_devices(struct snd_card *card, | 965 | static int snd_hdspm_create_alsa_devices(struct snd_card *card, |
966 | struct hdspm * hdspm); | 966 | struct hdspm *hdspm); |
967 | static int __devinit snd_hdspm_create_pcm(struct snd_card *card, | 967 | static int snd_hdspm_create_pcm(struct snd_card *card, |
968 | struct hdspm * hdspm); | 968 | struct hdspm *hdspm); |
969 | 969 | ||
970 | static inline void snd_hdspm_initialize_midi_flush(struct hdspm *hdspm); | 970 | static inline void snd_hdspm_initialize_midi_flush(struct hdspm *hdspm); |
971 | static int hdspm_update_simple_mixer_controls(struct hdspm *hdspm); | 971 | static int hdspm_update_simple_mixer_controls(struct hdspm *hdspm); |
@@ -1845,8 +1845,8 @@ static struct snd_rawmidi_ops snd_hdspm_midi_input = | |||
1845 | .trigger = snd_hdspm_midi_input_trigger, | 1845 | .trigger = snd_hdspm_midi_input_trigger, |
1846 | }; | 1846 | }; |
1847 | 1847 | ||
1848 | static int __devinit snd_hdspm_create_midi (struct snd_card *card, | 1848 | static int snd_hdspm_create_midi(struct snd_card *card, |
1849 | struct hdspm *hdspm, int id) | 1849 | struct hdspm *hdspm, int id) |
1850 | { | 1850 | { |
1851 | int err; | 1851 | int err; |
1852 | char buf[32]; | 1852 | char buf[32]; |
@@ -4897,7 +4897,7 @@ static void snd_hdspm_proc_ports_out(struct snd_info_entry *entry, | |||
4897 | } | 4897 | } |
4898 | 4898 | ||
4899 | 4899 | ||
4900 | static void __devinit snd_hdspm_proc_init(struct hdspm *hdspm) | 4900 | static void snd_hdspm_proc_init(struct hdspm *hdspm) |
4901 | { | 4901 | { |
4902 | struct snd_info_entry *entry; | 4902 | struct snd_info_entry *entry; |
4903 | 4903 | ||
@@ -6033,8 +6033,8 @@ static struct snd_pcm_ops snd_hdspm_capture_ops = { | |||
6033 | .page = snd_pcm_sgbuf_ops_page, | 6033 | .page = snd_pcm_sgbuf_ops_page, |
6034 | }; | 6034 | }; |
6035 | 6035 | ||
6036 | static int __devinit snd_hdspm_create_hwdep(struct snd_card *card, | 6036 | static int snd_hdspm_create_hwdep(struct snd_card *card, |
6037 | struct hdspm * hdspm) | 6037 | struct hdspm *hdspm) |
6038 | { | 6038 | { |
6039 | struct snd_hwdep *hw; | 6039 | struct snd_hwdep *hw; |
6040 | int err; | 6040 | int err; |
@@ -6059,7 +6059,7 @@ static int __devinit snd_hdspm_create_hwdep(struct snd_card *card, | |||
6059 | /*------------------------------------------------------------ | 6059 | /*------------------------------------------------------------ |
6060 | memory interface | 6060 | memory interface |
6061 | ------------------------------------------------------------*/ | 6061 | ------------------------------------------------------------*/ |
6062 | static int __devinit snd_hdspm_preallocate_memory(struct hdspm *hdspm) | 6062 | static int snd_hdspm_preallocate_memory(struct hdspm *hdspm) |
6063 | { | 6063 | { |
6064 | int err; | 6064 | int err; |
6065 | struct snd_pcm *pcm; | 6065 | struct snd_pcm *pcm; |
@@ -6100,8 +6100,8 @@ static void hdspm_set_sgbuf(struct hdspm *hdspm, | |||
6100 | 6100 | ||
6101 | 6101 | ||
6102 | /* ------------- ALSA Devices ---------------------------- */ | 6102 | /* ------------- ALSA Devices ---------------------------- */ |
6103 | static int __devinit snd_hdspm_create_pcm(struct snd_card *card, | 6103 | static int snd_hdspm_create_pcm(struct snd_card *card, |
6104 | struct hdspm *hdspm) | 6104 | struct hdspm *hdspm) |
6105 | { | 6105 | { |
6106 | struct snd_pcm *pcm; | 6106 | struct snd_pcm *pcm; |
6107 | int err; | 6107 | int err; |
@@ -6136,8 +6136,8 @@ static inline void snd_hdspm_initialize_midi_flush(struct hdspm * hdspm) | |||
6136 | snd_hdspm_flush_midi_input(hdspm, i); | 6136 | snd_hdspm_flush_midi_input(hdspm, i); |
6137 | } | 6137 | } |
6138 | 6138 | ||
6139 | static int __devinit snd_hdspm_create_alsa_devices(struct snd_card *card, | 6139 | static int snd_hdspm_create_alsa_devices(struct snd_card *card, |
6140 | struct hdspm * hdspm) | 6140 | struct hdspm *hdspm) |
6141 | { | 6141 | { |
6142 | int err, i; | 6142 | int err, i; |
6143 | 6143 | ||
@@ -6195,8 +6195,9 @@ static int __devinit snd_hdspm_create_alsa_devices(struct snd_card *card, | |||
6195 | return 0; | 6195 | return 0; |
6196 | } | 6196 | } |
6197 | 6197 | ||
6198 | static int __devinit snd_hdspm_create(struct snd_card *card, | 6198 | static int snd_hdspm_create(struct snd_card *card, |
6199 | struct hdspm *hdspm) { | 6199 | struct hdspm *hdspm) |
6200 | { | ||
6200 | 6201 | ||
6201 | struct pci_dev *pci = hdspm->pci; | 6202 | struct pci_dev *pci = hdspm->pci; |
6202 | int err; | 6203 | int err; |
@@ -6569,8 +6570,8 @@ static void snd_hdspm_card_free(struct snd_card *card) | |||
6569 | } | 6570 | } |
6570 | 6571 | ||
6571 | 6572 | ||
6572 | static int __devinit snd_hdspm_probe(struct pci_dev *pci, | 6573 | static int snd_hdspm_probe(struct pci_dev *pci, |
6573 | const struct pci_device_id *pci_id) | 6574 | const struct pci_device_id *pci_id) |
6574 | { | 6575 | { |
6575 | static int dev; | 6576 | static int dev; |
6576 | struct hdspm *hdspm; | 6577 | struct hdspm *hdspm; |
@@ -6628,7 +6629,7 @@ static int __devinit snd_hdspm_probe(struct pci_dev *pci, | |||
6628 | return 0; | 6629 | return 0; |
6629 | } | 6630 | } |
6630 | 6631 | ||
6631 | static void __devexit snd_hdspm_remove(struct pci_dev *pci) | 6632 | static void snd_hdspm_remove(struct pci_dev *pci) |
6632 | { | 6633 | { |
6633 | snd_card_free(pci_get_drvdata(pci)); | 6634 | snd_card_free(pci_get_drvdata(pci)); |
6634 | pci_set_drvdata(pci, NULL); | 6635 | pci_set_drvdata(pci, NULL); |
@@ -6638,7 +6639,7 @@ static struct pci_driver hdspm_driver = { | |||
6638 | .name = KBUILD_MODNAME, | 6639 | .name = KBUILD_MODNAME, |
6639 | .id_table = snd_hdspm_ids, | 6640 | .id_table = snd_hdspm_ids, |
6640 | .probe = snd_hdspm_probe, | 6641 | .probe = snd_hdspm_probe, |
6641 | .remove = __devexit_p(snd_hdspm_remove), | 6642 | .remove = snd_hdspm_remove, |
6642 | }; | 6643 | }; |
6643 | 6644 | ||
6644 | module_pci_driver(hdspm_driver); | 6645 | module_pci_driver(hdspm_driver); |
diff --git a/sound/pci/rme9652/rme9652.c b/sound/pci/rme9652/rme9652.c index a15fc100ab0c..773a67fff4cd 100644 --- a/sound/pci/rme9652/rme9652.c +++ b/sound/pci/rme9652/rme9652.c | |||
@@ -1757,7 +1757,7 @@ snd_rme9652_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buff | |||
1757 | snd_iprintf(buffer, "\n"); | 1757 | snd_iprintf(buffer, "\n"); |
1758 | } | 1758 | } |
1759 | 1759 | ||
1760 | static void __devinit snd_rme9652_proc_init(struct snd_rme9652 *rme9652) | 1760 | static void snd_rme9652_proc_init(struct snd_rme9652 *rme9652) |
1761 | { | 1761 | { |
1762 | struct snd_info_entry *entry; | 1762 | struct snd_info_entry *entry; |
1763 | 1763 | ||
@@ -1788,7 +1788,7 @@ static int snd_rme9652_free(struct snd_rme9652 *rme9652) | |||
1788 | return 0; | 1788 | return 0; |
1789 | } | 1789 | } |
1790 | 1790 | ||
1791 | static int __devinit snd_rme9652_initialize_memory(struct snd_rme9652 *rme9652) | 1791 | static int snd_rme9652_initialize_memory(struct snd_rme9652 *rme9652) |
1792 | { | 1792 | { |
1793 | unsigned long pb_bus, cb_bus; | 1793 | unsigned long pb_bus, cb_bus; |
1794 | 1794 | ||
@@ -2414,8 +2414,8 @@ static struct snd_pcm_ops snd_rme9652_capture_ops = { | |||
2414 | .copy = snd_rme9652_capture_copy, | 2414 | .copy = snd_rme9652_capture_copy, |
2415 | }; | 2415 | }; |
2416 | 2416 | ||
2417 | static int __devinit snd_rme9652_create_pcm(struct snd_card *card, | 2417 | static int snd_rme9652_create_pcm(struct snd_card *card, |
2418 | struct snd_rme9652 *rme9652) | 2418 | struct snd_rme9652 *rme9652) |
2419 | { | 2419 | { |
2420 | struct snd_pcm *pcm; | 2420 | struct snd_pcm *pcm; |
2421 | int err; | 2421 | int err; |
@@ -2438,9 +2438,9 @@ static int __devinit snd_rme9652_create_pcm(struct snd_card *card, | |||
2438 | return 0; | 2438 | return 0; |
2439 | } | 2439 | } |
2440 | 2440 | ||
2441 | static int __devinit snd_rme9652_create(struct snd_card *card, | 2441 | static int snd_rme9652_create(struct snd_card *card, |
2442 | struct snd_rme9652 *rme9652, | 2442 | struct snd_rme9652 *rme9652, |
2443 | int precise_ptr) | 2443 | int precise_ptr) |
2444 | { | 2444 | { |
2445 | struct pci_dev *pci = rme9652->pci; | 2445 | struct pci_dev *pci = rme9652->pci; |
2446 | int err; | 2446 | int err; |
@@ -2578,8 +2578,8 @@ static void snd_rme9652_card_free(struct snd_card *card) | |||
2578 | snd_rme9652_free(rme9652); | 2578 | snd_rme9652_free(rme9652); |
2579 | } | 2579 | } |
2580 | 2580 | ||
2581 | static int __devinit snd_rme9652_probe(struct pci_dev *pci, | 2581 | static int snd_rme9652_probe(struct pci_dev *pci, |
2582 | const struct pci_device_id *pci_id) | 2582 | const struct pci_device_id *pci_id) |
2583 | { | 2583 | { |
2584 | static int dev; | 2584 | static int dev; |
2585 | struct snd_rme9652 *rme9652; | 2585 | struct snd_rme9652 *rme9652; |
@@ -2625,7 +2625,7 @@ static int __devinit snd_rme9652_probe(struct pci_dev *pci, | |||
2625 | return 0; | 2625 | return 0; |
2626 | } | 2626 | } |
2627 | 2627 | ||
2628 | static void __devexit snd_rme9652_remove(struct pci_dev *pci) | 2628 | static void snd_rme9652_remove(struct pci_dev *pci) |
2629 | { | 2629 | { |
2630 | snd_card_free(pci_get_drvdata(pci)); | 2630 | snd_card_free(pci_get_drvdata(pci)); |
2631 | pci_set_drvdata(pci, NULL); | 2631 | pci_set_drvdata(pci, NULL); |
@@ -2635,7 +2635,7 @@ static struct pci_driver rme9652_driver = { | |||
2635 | .name = KBUILD_MODNAME, | 2635 | .name = KBUILD_MODNAME, |
2636 | .id_table = snd_rme9652_ids, | 2636 | .id_table = snd_rme9652_ids, |
2637 | .probe = snd_rme9652_probe, | 2637 | .probe = snd_rme9652_probe, |
2638 | .remove = __devexit_p(snd_rme9652_remove), | 2638 | .remove = snd_rme9652_remove, |
2639 | }; | 2639 | }; |
2640 | 2640 | ||
2641 | module_pci_driver(rme9652_driver); | 2641 | module_pci_driver(rme9652_driver); |
diff --git a/sound/pci/sis7019.c b/sound/pci/sis7019.c index 51e43407ebc5..550b9cfb8e3e 100644 --- a/sound/pci/sis7019.c +++ b/sound/pci/sis7019.c | |||
@@ -894,7 +894,7 @@ static struct snd_pcm_ops sis_capture_ops = { | |||
894 | .pointer = sis_pcm_pointer, | 894 | .pointer = sis_pcm_pointer, |
895 | }; | 895 | }; |
896 | 896 | ||
897 | static int __devinit sis_pcm_create(struct sis7019 *sis) | 897 | static int sis_pcm_create(struct sis7019 *sis) |
898 | { | 898 | { |
899 | struct snd_pcm *pcm; | 899 | struct snd_pcm *pcm; |
900 | int rc; | 900 | int rc; |
@@ -1013,7 +1013,7 @@ static unsigned short sis_ac97_read(struct snd_ac97 *ac97, unsigned short reg) | |||
1013 | (reg << 8) | cmd[ac97->num]); | 1013 | (reg << 8) | cmd[ac97->num]); |
1014 | } | 1014 | } |
1015 | 1015 | ||
1016 | static int __devinit sis_mixer_create(struct sis7019 *sis) | 1016 | static int sis_mixer_create(struct sis7019 *sis) |
1017 | { | 1017 | { |
1018 | struct snd_ac97_bus *bus; | 1018 | struct snd_ac97_bus *bus; |
1019 | struct snd_ac97_template ac97; | 1019 | struct snd_ac97_template ac97; |
@@ -1326,8 +1326,8 @@ static int sis_alloc_suspend(struct sis7019 *sis) | |||
1326 | return 0; | 1326 | return 0; |
1327 | } | 1327 | } |
1328 | 1328 | ||
1329 | static int __devinit sis_chip_create(struct snd_card *card, | 1329 | static int sis_chip_create(struct snd_card *card, |
1330 | struct pci_dev *pci) | 1330 | struct pci_dev *pci) |
1331 | { | 1331 | { |
1332 | struct sis7019 *sis = card->private_data; | 1332 | struct sis7019 *sis = card->private_data; |
1333 | struct voice *voice; | 1333 | struct voice *voice; |
@@ -1417,8 +1417,8 @@ error_out: | |||
1417 | return rc; | 1417 | return rc; |
1418 | } | 1418 | } |
1419 | 1419 | ||
1420 | static int __devinit snd_sis7019_probe(struct pci_dev *pci, | 1420 | static int snd_sis7019_probe(struct pci_dev *pci, |
1421 | const struct pci_device_id *pci_id) | 1421 | const struct pci_device_id *pci_id) |
1422 | { | 1422 | { |
1423 | struct snd_card *card; | 1423 | struct snd_card *card; |
1424 | struct sis7019 *sis; | 1424 | struct sis7019 *sis; |
@@ -1478,7 +1478,7 @@ error_out: | |||
1478 | return rc; | 1478 | return rc; |
1479 | } | 1479 | } |
1480 | 1480 | ||
1481 | static void __devexit snd_sis7019_remove(struct pci_dev *pci) | 1481 | static void snd_sis7019_remove(struct pci_dev *pci) |
1482 | { | 1482 | { |
1483 | snd_card_free(pci_get_drvdata(pci)); | 1483 | snd_card_free(pci_get_drvdata(pci)); |
1484 | pci_set_drvdata(pci, NULL); | 1484 | pci_set_drvdata(pci, NULL); |
@@ -1488,7 +1488,7 @@ static struct pci_driver sis7019_driver = { | |||
1488 | .name = KBUILD_MODNAME, | 1488 | .name = KBUILD_MODNAME, |
1489 | .id_table = snd_sis7019_ids, | 1489 | .id_table = snd_sis7019_ids, |
1490 | .probe = snd_sis7019_probe, | 1490 | .probe = snd_sis7019_probe, |
1491 | .remove = __devexit_p(snd_sis7019_remove), | 1491 | .remove = snd_sis7019_remove, |
1492 | .driver = { | 1492 | .driver = { |
1493 | .pm = SIS_PM_OPS, | 1493 | .pm = SIS_PM_OPS, |
1494 | }, | 1494 | }, |
diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index baa9946bedf0..a2e7686e7ae3 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c | |||
@@ -877,7 +877,8 @@ static struct snd_pcm_ops snd_sonicvibes_capture_ops = { | |||
877 | .pointer = snd_sonicvibes_capture_pointer, | 877 | .pointer = snd_sonicvibes_capture_pointer, |
878 | }; | 878 | }; |
879 | 879 | ||
880 | static int __devinit snd_sonicvibes_pcm(struct sonicvibes * sonic, int device, struct snd_pcm ** rpcm) | 880 | static int snd_sonicvibes_pcm(struct sonicvibes *sonic, int device, |
881 | struct snd_pcm **rpcm) | ||
881 | { | 882 | { |
882 | struct snd_pcm *pcm; | 883 | struct snd_pcm *pcm; |
883 | int err; | 884 | int err; |
@@ -1087,7 +1088,7 @@ static int snd_sonicvibes_put_double(struct snd_kcontrol *kcontrol, struct snd_c | |||
1087 | return change; | 1088 | return change; |
1088 | } | 1089 | } |
1089 | 1090 | ||
1090 | static struct snd_kcontrol_new snd_sonicvibes_controls[] __devinitdata = { | 1091 | static struct snd_kcontrol_new snd_sonicvibes_controls[] = { |
1091 | SONICVIBES_DOUBLE("Capture Volume", 0, SV_IREG_LEFT_ADC, SV_IREG_RIGHT_ADC, 0, 0, 15, 0), | 1092 | SONICVIBES_DOUBLE("Capture Volume", 0, SV_IREG_LEFT_ADC, SV_IREG_RIGHT_ADC, 0, 0, 15, 0), |
1092 | SONICVIBES_DOUBLE("Aux Playback Switch", 0, SV_IREG_LEFT_AUX1, SV_IREG_RIGHT_AUX1, 7, 7, 1, 1), | 1093 | SONICVIBES_DOUBLE("Aux Playback Switch", 0, SV_IREG_LEFT_AUX1, SV_IREG_RIGHT_AUX1, 7, 7, 1, 1), |
1093 | SONICVIBES_DOUBLE("Aux Playback Volume", 0, SV_IREG_LEFT_AUX1, SV_IREG_RIGHT_AUX1, 0, 0, 31, 1), | 1094 | SONICVIBES_DOUBLE("Aux Playback Volume", 0, SV_IREG_LEFT_AUX1, SV_IREG_RIGHT_AUX1, 0, 0, 31, 1), |
@@ -1118,7 +1119,7 @@ static void snd_sonicvibes_master_free(struct snd_kcontrol *kcontrol) | |||
1118 | sonic->master_volume = NULL; | 1119 | sonic->master_volume = NULL; |
1119 | } | 1120 | } |
1120 | 1121 | ||
1121 | static int __devinit snd_sonicvibes_mixer(struct sonicvibes * sonic) | 1122 | static int snd_sonicvibes_mixer(struct sonicvibes *sonic) |
1122 | { | 1123 | { |
1123 | struct snd_card *card; | 1124 | struct snd_card *card; |
1124 | struct snd_kcontrol *kctl; | 1125 | struct snd_kcontrol *kctl; |
@@ -1175,7 +1176,7 @@ static void snd_sonicvibes_proc_read(struct snd_info_entry *entry, | |||
1175 | snd_iprintf(buffer, "MIDI to ext. Tx : %s\n", tmp & 0x04 ? "on" : "off"); | 1176 | snd_iprintf(buffer, "MIDI to ext. Tx : %s\n", tmp & 0x04 ? "on" : "off"); |
1176 | } | 1177 | } |
1177 | 1178 | ||
1178 | static void __devinit snd_sonicvibes_proc_init(struct sonicvibes * sonic) | 1179 | static void snd_sonicvibes_proc_init(struct sonicvibes *sonic) |
1179 | { | 1180 | { |
1180 | struct snd_info_entry *entry; | 1181 | struct snd_info_entry *entry; |
1181 | 1182 | ||
@@ -1188,10 +1189,10 @@ static void __devinit snd_sonicvibes_proc_init(struct sonicvibes * sonic) | |||
1188 | */ | 1189 | */ |
1189 | 1190 | ||
1190 | #ifdef SUPPORT_JOYSTICK | 1191 | #ifdef SUPPORT_JOYSTICK |
1191 | static struct snd_kcontrol_new snd_sonicvibes_game_control __devinitdata = | 1192 | static struct snd_kcontrol_new snd_sonicvibes_game_control = |
1192 | SONICVIBES_SINGLE("Joystick Speed", 0, SV_IREG_GAME_PORT, 1, 15, 0); | 1193 | SONICVIBES_SINGLE("Joystick Speed", 0, SV_IREG_GAME_PORT, 1, 15, 0); |
1193 | 1194 | ||
1194 | static int __devinit snd_sonicvibes_create_gameport(struct sonicvibes *sonic) | 1195 | static int snd_sonicvibes_create_gameport(struct sonicvibes *sonic) |
1195 | { | 1196 | { |
1196 | struct gameport *gp; | 1197 | struct gameport *gp; |
1197 | 1198 | ||
@@ -1246,11 +1247,11 @@ static int snd_sonicvibes_dev_free(struct snd_device *device) | |||
1246 | return snd_sonicvibes_free(sonic); | 1247 | return snd_sonicvibes_free(sonic); |
1247 | } | 1248 | } |
1248 | 1249 | ||
1249 | static int __devinit snd_sonicvibes_create(struct snd_card *card, | 1250 | static int snd_sonicvibes_create(struct snd_card *card, |
1250 | struct pci_dev *pci, | 1251 | struct pci_dev *pci, |
1251 | int reverb, | 1252 | int reverb, |
1252 | int mge, | 1253 | int mge, |
1253 | struct sonicvibes ** rsonic) | 1254 | struct sonicvibes **rsonic) |
1254 | { | 1255 | { |
1255 | struct sonicvibes *sonic; | 1256 | struct sonicvibes *sonic; |
1256 | unsigned int dmaa, dmac; | 1257 | unsigned int dmaa, dmac; |
@@ -1401,7 +1402,7 @@ static int __devinit snd_sonicvibes_create(struct snd_card *card, | |||
1401 | * MIDI section | 1402 | * MIDI section |
1402 | */ | 1403 | */ |
1403 | 1404 | ||
1404 | static struct snd_kcontrol_new snd_sonicvibes_midi_controls[] __devinitdata = { | 1405 | static struct snd_kcontrol_new snd_sonicvibes_midi_controls[] = { |
1405 | SONICVIBES_SINGLE("SonicVibes Wave Source RAM", 0, SV_IREG_WAVE_SOURCE, 0, 1, 0), | 1406 | SONICVIBES_SINGLE("SonicVibes Wave Source RAM", 0, SV_IREG_WAVE_SOURCE, 0, 1, 0), |
1406 | SONICVIBES_SINGLE("SonicVibes Wave Source RAM+ROM", 0, SV_IREG_WAVE_SOURCE, 1, 1, 0), | 1407 | SONICVIBES_SINGLE("SonicVibes Wave Source RAM+ROM", 0, SV_IREG_WAVE_SOURCE, 1, 1, 0), |
1407 | SONICVIBES_SINGLE("SonicVibes Onboard Synth", 0, SV_IREG_MPU401, 0, 1, 0), | 1408 | SONICVIBES_SINGLE("SonicVibes Onboard Synth", 0, SV_IREG_MPU401, 0, 1, 0), |
@@ -1422,8 +1423,8 @@ static void snd_sonicvibes_midi_input_close(struct snd_mpu401 * mpu) | |||
1422 | outb(sonic->irqmask |= SV_MIDI_MASK, SV_REG(sonic, IRQMASK)); | 1423 | outb(sonic->irqmask |= SV_MIDI_MASK, SV_REG(sonic, IRQMASK)); |
1423 | } | 1424 | } |
1424 | 1425 | ||
1425 | static int __devinit snd_sonicvibes_midi(struct sonicvibes * sonic, | 1426 | static int snd_sonicvibes_midi(struct sonicvibes *sonic, |
1426 | struct snd_rawmidi *rmidi) | 1427 | struct snd_rawmidi *rmidi) |
1427 | { | 1428 | { |
1428 | struct snd_mpu401 * mpu = rmidi->private_data; | 1429 | struct snd_mpu401 * mpu = rmidi->private_data; |
1429 | struct snd_card *card = sonic->card; | 1430 | struct snd_card *card = sonic->card; |
@@ -1441,8 +1442,8 @@ static int __devinit snd_sonicvibes_midi(struct sonicvibes * sonic, | |||
1441 | return 0; | 1442 | return 0; |
1442 | } | 1443 | } |
1443 | 1444 | ||
1444 | static int __devinit snd_sonic_probe(struct pci_dev *pci, | 1445 | static int snd_sonic_probe(struct pci_dev *pci, |
1445 | const struct pci_device_id *pci_id) | 1446 | const struct pci_device_id *pci_id) |
1446 | { | 1447 | { |
1447 | static int dev; | 1448 | static int dev; |
1448 | struct snd_card *card; | 1449 | struct snd_card *card; |
@@ -1524,7 +1525,7 @@ static int __devinit snd_sonic_probe(struct pci_dev *pci, | |||
1524 | return 0; | 1525 | return 0; |
1525 | } | 1526 | } |
1526 | 1527 | ||
1527 | static void __devexit snd_sonic_remove(struct pci_dev *pci) | 1528 | static void snd_sonic_remove(struct pci_dev *pci) |
1528 | { | 1529 | { |
1529 | snd_card_free(pci_get_drvdata(pci)); | 1530 | snd_card_free(pci_get_drvdata(pci)); |
1530 | pci_set_drvdata(pci, NULL); | 1531 | pci_set_drvdata(pci, NULL); |
@@ -1534,7 +1535,7 @@ static struct pci_driver sonicvibes_driver = { | |||
1534 | .name = KBUILD_MODNAME, | 1535 | .name = KBUILD_MODNAME, |
1535 | .id_table = snd_sonic_ids, | 1536 | .id_table = snd_sonic_ids, |
1536 | .probe = snd_sonic_probe, | 1537 | .probe = snd_sonic_probe, |
1537 | .remove = __devexit_p(snd_sonic_remove), | 1538 | .remove = snd_sonic_remove, |
1538 | }; | 1539 | }; |
1539 | 1540 | ||
1540 | module_pci_driver(sonicvibes_driver); | 1541 | module_pci_driver(sonicvibes_driver); |
diff --git a/sound/pci/trident/trident.c b/sound/pci/trident/trident.c index 8a6f1f76e870..1aefd6204a63 100644 --- a/sound/pci/trident/trident.c +++ b/sound/pci/trident/trident.c | |||
@@ -73,8 +73,8 @@ static DEFINE_PCI_DEVICE_TABLE(snd_trident_ids) = { | |||
73 | 73 | ||
74 | MODULE_DEVICE_TABLE(pci, snd_trident_ids); | 74 | MODULE_DEVICE_TABLE(pci, snd_trident_ids); |
75 | 75 | ||
76 | static int __devinit snd_trident_probe(struct pci_dev *pci, | 76 | static int snd_trident_probe(struct pci_dev *pci, |
77 | const struct pci_device_id *pci_id) | 77 | const struct pci_device_id *pci_id) |
78 | { | 78 | { |
79 | static int dev; | 79 | static int dev; |
80 | struct snd_card *card; | 80 | struct snd_card *card; |
@@ -166,7 +166,7 @@ static int __devinit snd_trident_probe(struct pci_dev *pci, | |||
166 | return 0; | 166 | return 0; |
167 | } | 167 | } |
168 | 168 | ||
169 | static void __devexit snd_trident_remove(struct pci_dev *pci) | 169 | static void snd_trident_remove(struct pci_dev *pci) |
170 | { | 170 | { |
171 | snd_card_free(pci_get_drvdata(pci)); | 171 | snd_card_free(pci_get_drvdata(pci)); |
172 | pci_set_drvdata(pci, NULL); | 172 | pci_set_drvdata(pci, NULL); |
@@ -176,7 +176,7 @@ static struct pci_driver trident_driver = { | |||
176 | .name = KBUILD_MODNAME, | 176 | .name = KBUILD_MODNAME, |
177 | .id_table = snd_trident_ids, | 177 | .id_table = snd_trident_ids, |
178 | .probe = snd_trident_probe, | 178 | .probe = snd_trident_probe, |
179 | .remove = __devexit_p(snd_trident_remove), | 179 | .remove = snd_trident_remove, |
180 | #ifdef CONFIG_PM_SLEEP | 180 | #ifdef CONFIG_PM_SLEEP |
181 | .driver = { | 181 | .driver = { |
182 | .pm = &snd_trident_pm, | 182 | .pm = &snd_trident_pm, |
diff --git a/sound/pci/trident/trident_main.c b/sound/pci/trident/trident_main.c index 06b10d1a76e5..fb0e1586a6f8 100644 --- a/sound/pci/trident/trident_main.c +++ b/sound/pci/trident/trident_main.c | |||
@@ -2171,8 +2171,8 @@ static struct snd_pcm_ops snd_trident_spdif_7018_ops = { | |||
2171 | 2171 | ||
2172 | ---------------------------------------------------------------------------*/ | 2172 | ---------------------------------------------------------------------------*/ |
2173 | 2173 | ||
2174 | int __devinit snd_trident_pcm(struct snd_trident * trident, | 2174 | int snd_trident_pcm(struct snd_trident *trident, |
2175 | int device, struct snd_pcm ** rpcm) | 2175 | int device, struct snd_pcm **rpcm) |
2176 | { | 2176 | { |
2177 | struct snd_pcm *pcm; | 2177 | struct snd_pcm *pcm; |
2178 | int err; | 2178 | int err; |
@@ -2229,8 +2229,8 @@ int __devinit snd_trident_pcm(struct snd_trident * trident, | |||
2229 | 2229 | ||
2230 | ---------------------------------------------------------------------------*/ | 2230 | ---------------------------------------------------------------------------*/ |
2231 | 2231 | ||
2232 | int __devinit snd_trident_foldback_pcm(struct snd_trident * trident, | 2232 | int snd_trident_foldback_pcm(struct snd_trident *trident, |
2233 | int device, struct snd_pcm ** rpcm) | 2233 | int device, struct snd_pcm **rpcm) |
2234 | { | 2234 | { |
2235 | struct snd_pcm *foldback; | 2235 | struct snd_pcm *foldback; |
2236 | int err; | 2236 | int err; |
@@ -2286,8 +2286,8 @@ int __devinit snd_trident_foldback_pcm(struct snd_trident * trident, | |||
2286 | 2286 | ||
2287 | ---------------------------------------------------------------------------*/ | 2287 | ---------------------------------------------------------------------------*/ |
2288 | 2288 | ||
2289 | int __devinit snd_trident_spdif_pcm(struct snd_trident * trident, | 2289 | int snd_trident_spdif_pcm(struct snd_trident *trident, |
2290 | int device, struct snd_pcm ** rpcm) | 2290 | int device, struct snd_pcm **rpcm) |
2291 | { | 2291 | { |
2292 | struct snd_pcm *spdif; | 2292 | struct snd_pcm *spdif; |
2293 | int err; | 2293 | int err; |
@@ -2371,7 +2371,7 @@ static int snd_trident_spdif_control_put(struct snd_kcontrol *kcontrol, | |||
2371 | return change; | 2371 | return change; |
2372 | } | 2372 | } |
2373 | 2373 | ||
2374 | static struct snd_kcontrol_new snd_trident_spdif_control __devinitdata = | 2374 | static struct snd_kcontrol_new snd_trident_spdif_control = |
2375 | { | 2375 | { |
2376 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2376 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2377 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,SWITCH), | 2377 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,SWITCH), |
@@ -2434,7 +2434,7 @@ static int snd_trident_spdif_default_put(struct snd_kcontrol *kcontrol, | |||
2434 | return change; | 2434 | return change; |
2435 | } | 2435 | } |
2436 | 2436 | ||
2437 | static struct snd_kcontrol_new snd_trident_spdif_default __devinitdata = | 2437 | static struct snd_kcontrol_new snd_trident_spdif_default = |
2438 | { | 2438 | { |
2439 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 2439 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
2440 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), | 2440 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), |
@@ -2467,7 +2467,7 @@ static int snd_trident_spdif_mask_get(struct snd_kcontrol *kcontrol, | |||
2467 | return 0; | 2467 | return 0; |
2468 | } | 2468 | } |
2469 | 2469 | ||
2470 | static struct snd_kcontrol_new snd_trident_spdif_mask __devinitdata = | 2470 | static struct snd_kcontrol_new snd_trident_spdif_mask = |
2471 | { | 2471 | { |
2472 | .access = SNDRV_CTL_ELEM_ACCESS_READ, | 2472 | .access = SNDRV_CTL_ELEM_ACCESS_READ, |
2473 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 2473 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
@@ -2529,7 +2529,7 @@ static int snd_trident_spdif_stream_put(struct snd_kcontrol *kcontrol, | |||
2529 | return change; | 2529 | return change; |
2530 | } | 2530 | } |
2531 | 2531 | ||
2532 | static struct snd_kcontrol_new snd_trident_spdif_stream __devinitdata = | 2532 | static struct snd_kcontrol_new snd_trident_spdif_stream = |
2533 | { | 2533 | { |
2534 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE, | 2534 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE, |
2535 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 2535 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
@@ -2579,7 +2579,7 @@ static int snd_trident_ac97_control_put(struct snd_kcontrol *kcontrol, | |||
2579 | return change; | 2579 | return change; |
2580 | } | 2580 | } |
2581 | 2581 | ||
2582 | static struct snd_kcontrol_new snd_trident_ac97_rear_control __devinitdata = | 2582 | static struct snd_kcontrol_new snd_trident_ac97_rear_control = |
2583 | { | 2583 | { |
2584 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2584 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2585 | .name = "Rear Path", | 2585 | .name = "Rear Path", |
@@ -2637,7 +2637,7 @@ static int snd_trident_vol_control_put(struct snd_kcontrol *kcontrol, | |||
2637 | return change; | 2637 | return change; |
2638 | } | 2638 | } |
2639 | 2639 | ||
2640 | static struct snd_kcontrol_new snd_trident_vol_music_control __devinitdata = | 2640 | static struct snd_kcontrol_new snd_trident_vol_music_control = |
2641 | { | 2641 | { |
2642 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2642 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2643 | .name = "Music Playback Volume", | 2643 | .name = "Music Playback Volume", |
@@ -2648,7 +2648,7 @@ static struct snd_kcontrol_new snd_trident_vol_music_control __devinitdata = | |||
2648 | .tlv = { .p = db_scale_gvol }, | 2648 | .tlv = { .p = db_scale_gvol }, |
2649 | }; | 2649 | }; |
2650 | 2650 | ||
2651 | static struct snd_kcontrol_new snd_trident_vol_wave_control __devinitdata = | 2651 | static struct snd_kcontrol_new snd_trident_vol_wave_control = |
2652 | { | 2652 | { |
2653 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2653 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2654 | .name = "Wave Playback Volume", | 2654 | .name = "Wave Playback Volume", |
@@ -2715,7 +2715,7 @@ static int snd_trident_pcm_vol_control_put(struct snd_kcontrol *kcontrol, | |||
2715 | return change; | 2715 | return change; |
2716 | } | 2716 | } |
2717 | 2717 | ||
2718 | static struct snd_kcontrol_new snd_trident_pcm_vol_control __devinitdata = | 2718 | static struct snd_kcontrol_new snd_trident_pcm_vol_control = |
2719 | { | 2719 | { |
2720 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2720 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2721 | .name = "PCM Front Playback Volume", | 2721 | .name = "PCM Front Playback Volume", |
@@ -2779,7 +2779,7 @@ static int snd_trident_pcm_pan_control_put(struct snd_kcontrol *kcontrol, | |||
2779 | return change; | 2779 | return change; |
2780 | } | 2780 | } |
2781 | 2781 | ||
2782 | static struct snd_kcontrol_new snd_trident_pcm_pan_control __devinitdata = | 2782 | static struct snd_kcontrol_new snd_trident_pcm_pan_control = |
2783 | { | 2783 | { |
2784 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2784 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2785 | .name = "PCM Pan Playback Control", | 2785 | .name = "PCM Pan Playback Control", |
@@ -2836,7 +2836,7 @@ static int snd_trident_pcm_rvol_control_put(struct snd_kcontrol *kcontrol, | |||
2836 | 2836 | ||
2837 | static const DECLARE_TLV_DB_SCALE(db_scale_crvol, -3175, 25, 1); | 2837 | static const DECLARE_TLV_DB_SCALE(db_scale_crvol, -3175, 25, 1); |
2838 | 2838 | ||
2839 | static struct snd_kcontrol_new snd_trident_pcm_rvol_control __devinitdata = | 2839 | static struct snd_kcontrol_new snd_trident_pcm_rvol_control = |
2840 | { | 2840 | { |
2841 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2841 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2842 | .name = "PCM Reverb Playback Volume", | 2842 | .name = "PCM Reverb Playback Volume", |
@@ -2892,7 +2892,7 @@ static int snd_trident_pcm_cvol_control_put(struct snd_kcontrol *kcontrol, | |||
2892 | return change; | 2892 | return change; |
2893 | } | 2893 | } |
2894 | 2894 | ||
2895 | static struct snd_kcontrol_new snd_trident_pcm_cvol_control __devinitdata = | 2895 | static struct snd_kcontrol_new snd_trident_pcm_cvol_control = |
2896 | { | 2896 | { |
2897 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2897 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2898 | .name = "PCM Chorus Playback Volume", | 2898 | .name = "PCM Chorus Playback Volume", |
@@ -2972,7 +2972,7 @@ static int snd_trident_pcm_mixer_free(struct snd_trident *trident, struct snd_tr | |||
2972 | 2972 | ||
2973 | ---------------------------------------------------------------------------*/ | 2973 | ---------------------------------------------------------------------------*/ |
2974 | 2974 | ||
2975 | static int __devinit snd_trident_mixer(struct snd_trident * trident, int pcm_spdif_device) | 2975 | static int snd_trident_mixer(struct snd_trident *trident, int pcm_spdif_device) |
2976 | { | 2976 | { |
2977 | struct snd_ac97_template _ac97; | 2977 | struct snd_ac97_template _ac97; |
2978 | struct snd_card *card = trident->card; | 2978 | struct snd_card *card = trident->card; |
@@ -3191,7 +3191,7 @@ static int snd_trident_gameport_open(struct gameport *gameport, int mode) | |||
3191 | } | 3191 | } |
3192 | } | 3192 | } |
3193 | 3193 | ||
3194 | int __devinit snd_trident_create_gameport(struct snd_trident *chip) | 3194 | int snd_trident_create_gameport(struct snd_trident *chip) |
3195 | { | 3195 | { |
3196 | struct gameport *gp; | 3196 | struct gameport *gp; |
3197 | 3197 | ||
@@ -3225,7 +3225,7 @@ static inline void snd_trident_free_gameport(struct snd_trident *chip) | |||
3225 | } | 3225 | } |
3226 | } | 3226 | } |
3227 | #else | 3227 | #else |
3228 | int __devinit snd_trident_create_gameport(struct snd_trident *chip) { return -ENOSYS; } | 3228 | int snd_trident_create_gameport(struct snd_trident *chip) { return -ENOSYS; } |
3229 | static inline void snd_trident_free_gameport(struct snd_trident *chip) { } | 3229 | static inline void snd_trident_free_gameport(struct snd_trident *chip) { } |
3230 | #endif /* CONFIG_GAMEPORT */ | 3230 | #endif /* CONFIG_GAMEPORT */ |
3231 | 3231 | ||
@@ -3329,7 +3329,7 @@ static void snd_trident_proc_read(struct snd_info_entry *entry, | |||
3329 | } | 3329 | } |
3330 | } | 3330 | } |
3331 | 3331 | ||
3332 | static void __devinit snd_trident_proc_init(struct snd_trident * trident) | 3332 | static void snd_trident_proc_init(struct snd_trident *trident) |
3333 | { | 3333 | { |
3334 | struct snd_info_entry *entry; | 3334 | struct snd_info_entry *entry; |
3335 | const char *s = "trident"; | 3335 | const char *s = "trident"; |
@@ -3358,7 +3358,7 @@ static int snd_trident_dev_free(struct snd_device *device) | |||
3358 | 3358 | ||
3359 | ---------------------------------------------------------------------------*/ | 3359 | ---------------------------------------------------------------------------*/ |
3360 | 3360 | ||
3361 | static int __devinit snd_trident_tlb_alloc(struct snd_trident *trident) | 3361 | static int snd_trident_tlb_alloc(struct snd_trident *trident) |
3362 | { | 3362 | { |
3363 | int i; | 3363 | int i; |
3364 | 3364 | ||
@@ -3539,7 +3539,7 @@ static int snd_trident_sis_init(struct snd_trident *trident) | |||
3539 | 3539 | ||
3540 | ---------------------------------------------------------------------------*/ | 3540 | ---------------------------------------------------------------------------*/ |
3541 | 3541 | ||
3542 | int __devinit snd_trident_create(struct snd_card *card, | 3542 | int snd_trident_create(struct snd_card *card, |
3543 | struct pci_dev *pci, | 3543 | struct pci_dev *pci, |
3544 | int pcm_streams, | 3544 | int pcm_streams, |
3545 | int pcm_spdif_device, | 3545 | int pcm_spdif_device, |
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index f0b4efdb483c..6442f611a07b 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -1437,7 +1437,7 @@ static void init_viadev(struct via82xx *chip, int idx, unsigned int reg_offset, | |||
1437 | /* | 1437 | /* |
1438 | * create pcm instances for VIA8233, 8233C and 8235 (not 8233A) | 1438 | * create pcm instances for VIA8233, 8233C and 8235 (not 8233A) |
1439 | */ | 1439 | */ |
1440 | static int __devinit snd_via8233_pcm_new(struct via82xx *chip) | 1440 | static int snd_via8233_pcm_new(struct via82xx *chip) |
1441 | { | 1441 | { |
1442 | struct snd_pcm *pcm; | 1442 | struct snd_pcm *pcm; |
1443 | struct snd_pcm_chmap *chmap; | 1443 | struct snd_pcm_chmap *chmap; |
@@ -1505,7 +1505,7 @@ static int __devinit snd_via8233_pcm_new(struct via82xx *chip) | |||
1505 | /* | 1505 | /* |
1506 | * create pcm instances for VIA8233A | 1506 | * create pcm instances for VIA8233A |
1507 | */ | 1507 | */ |
1508 | static int __devinit snd_via8233a_pcm_new(struct via82xx *chip) | 1508 | static int snd_via8233a_pcm_new(struct via82xx *chip) |
1509 | { | 1509 | { |
1510 | struct snd_pcm *pcm; | 1510 | struct snd_pcm *pcm; |
1511 | struct snd_pcm_chmap *chmap; | 1511 | struct snd_pcm_chmap *chmap; |
@@ -1566,7 +1566,7 @@ static int __devinit snd_via8233a_pcm_new(struct via82xx *chip) | |||
1566 | /* | 1566 | /* |
1567 | * create a pcm instance for via686a/b | 1567 | * create a pcm instance for via686a/b |
1568 | */ | 1568 | */ |
1569 | static int __devinit snd_via686_pcm_new(struct via82xx *chip) | 1569 | static int snd_via686_pcm_new(struct via82xx *chip) |
1570 | { | 1570 | { |
1571 | struct snd_pcm *pcm; | 1571 | struct snd_pcm *pcm; |
1572 | int err; | 1572 | int err; |
@@ -1643,7 +1643,7 @@ static int snd_via8233_capture_source_put(struct snd_kcontrol *kcontrol, | |||
1643 | return val != oval; | 1643 | return val != oval; |
1644 | } | 1644 | } |
1645 | 1645 | ||
1646 | static struct snd_kcontrol_new snd_via8233_capture_source __devinitdata = { | 1646 | static struct snd_kcontrol_new snd_via8233_capture_source = { |
1647 | .name = "Input Source Select", | 1647 | .name = "Input Source Select", |
1648 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1648 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1649 | .info = snd_via8233_capture_source_info, | 1649 | .info = snd_via8233_capture_source_info, |
@@ -1683,7 +1683,7 @@ static int snd_via8233_dxs3_spdif_put(struct snd_kcontrol *kcontrol, | |||
1683 | return 0; | 1683 | return 0; |
1684 | } | 1684 | } |
1685 | 1685 | ||
1686 | static struct snd_kcontrol_new snd_via8233_dxs3_spdif_control __devinitdata = { | 1686 | static struct snd_kcontrol_new snd_via8233_dxs3_spdif_control = { |
1687 | .name = SNDRV_CTL_NAME_IEC958("Output ",NONE,SWITCH), | 1687 | .name = SNDRV_CTL_NAME_IEC958("Output ",NONE,SWITCH), |
1688 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1688 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1689 | .info = snd_via8233_dxs3_spdif_info, | 1689 | .info = snd_via8233_dxs3_spdif_info, |
@@ -1772,7 +1772,7 @@ static int snd_via8233_pcmdxs_volume_put(struct snd_kcontrol *kcontrol, | |||
1772 | 1772 | ||
1773 | static const DECLARE_TLV_DB_SCALE(db_scale_dxs, -4650, 150, 1); | 1773 | static const DECLARE_TLV_DB_SCALE(db_scale_dxs, -4650, 150, 1); |
1774 | 1774 | ||
1775 | static struct snd_kcontrol_new snd_via8233_pcmdxs_volume_control __devinitdata = { | 1775 | static struct snd_kcontrol_new snd_via8233_pcmdxs_volume_control = { |
1776 | .name = "PCM Playback Volume", | 1776 | .name = "PCM Playback Volume", |
1777 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1777 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1778 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 1778 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
@@ -1783,7 +1783,7 @@ static struct snd_kcontrol_new snd_via8233_pcmdxs_volume_control __devinitdata = | |||
1783 | .tlv = { .p = db_scale_dxs } | 1783 | .tlv = { .p = db_scale_dxs } |
1784 | }; | 1784 | }; |
1785 | 1785 | ||
1786 | static struct snd_kcontrol_new snd_via8233_dxs_volume_control __devinitdata = { | 1786 | static struct snd_kcontrol_new snd_via8233_dxs_volume_control = { |
1787 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1787 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
1788 | .device = 0, | 1788 | .device = 0, |
1789 | /* .subdevice set later */ | 1789 | /* .subdevice set later */ |
@@ -1895,7 +1895,7 @@ static struct ac97_quirk ac97_quirks[] = { | |||
1895 | { } /* terminator */ | 1895 | { } /* terminator */ |
1896 | }; | 1896 | }; |
1897 | 1897 | ||
1898 | static int __devinit snd_via82xx_mixer_new(struct via82xx *chip, const char *quirk_override) | 1898 | static int snd_via82xx_mixer_new(struct via82xx *chip, const char *quirk_override) |
1899 | { | 1899 | { |
1900 | struct snd_ac97_template ac97; | 1900 | struct snd_ac97_template ac97; |
1901 | int err; | 1901 | int err; |
@@ -1930,7 +1930,7 @@ static int __devinit snd_via82xx_mixer_new(struct via82xx *chip, const char *qui | |||
1930 | 1930 | ||
1931 | #ifdef SUPPORT_JOYSTICK | 1931 | #ifdef SUPPORT_JOYSTICK |
1932 | #define JOYSTICK_ADDR 0x200 | 1932 | #define JOYSTICK_ADDR 0x200 |
1933 | static int __devinit snd_via686_create_gameport(struct via82xx *chip, unsigned char *legacy) | 1933 | static int snd_via686_create_gameport(struct via82xx *chip, unsigned char *legacy) |
1934 | { | 1934 | { |
1935 | struct gameport *gp; | 1935 | struct gameport *gp; |
1936 | struct resource *r; | 1936 | struct resource *r; |
@@ -1990,7 +1990,7 @@ static inline void snd_via686_free_gameport(struct via82xx *chip) { } | |||
1990 | * | 1990 | * |
1991 | */ | 1991 | */ |
1992 | 1992 | ||
1993 | static int __devinit snd_via8233_init_misc(struct via82xx *chip) | 1993 | static int snd_via8233_init_misc(struct via82xx *chip) |
1994 | { | 1994 | { |
1995 | int i, err, caps; | 1995 | int i, err, caps; |
1996 | unsigned char val; | 1996 | unsigned char val; |
@@ -2047,7 +2047,7 @@ static int __devinit snd_via8233_init_misc(struct via82xx *chip) | |||
2047 | return 0; | 2047 | return 0; |
2048 | } | 2048 | } |
2049 | 2049 | ||
2050 | static int __devinit snd_via686_init_misc(struct via82xx *chip) | 2050 | static int snd_via686_init_misc(struct via82xx *chip) |
2051 | { | 2051 | { |
2052 | unsigned char legacy, legacy_cfg; | 2052 | unsigned char legacy, legacy_cfg; |
2053 | int rev_h = 0; | 2053 | int rev_h = 0; |
@@ -2137,7 +2137,7 @@ static void snd_via82xx_proc_read(struct snd_info_entry *entry, | |||
2137 | } | 2137 | } |
2138 | } | 2138 | } |
2139 | 2139 | ||
2140 | static void __devinit snd_via82xx_proc_init(struct via82xx *chip) | 2140 | static void snd_via82xx_proc_init(struct via82xx *chip) |
2141 | { | 2141 | { |
2142 | struct snd_info_entry *entry; | 2142 | struct snd_info_entry *entry; |
2143 | 2143 | ||
@@ -2370,12 +2370,12 @@ static int snd_via82xx_dev_free(struct snd_device *device) | |||
2370 | return snd_via82xx_free(chip); | 2370 | return snd_via82xx_free(chip); |
2371 | } | 2371 | } |
2372 | 2372 | ||
2373 | static int __devinit snd_via82xx_create(struct snd_card *card, | 2373 | static int snd_via82xx_create(struct snd_card *card, |
2374 | struct pci_dev *pci, | 2374 | struct pci_dev *pci, |
2375 | int chip_type, | 2375 | int chip_type, |
2376 | int revision, | 2376 | int revision, |
2377 | unsigned int ac97_clock, | 2377 | unsigned int ac97_clock, |
2378 | struct via82xx ** r_via) | 2378 | struct via82xx **r_via) |
2379 | { | 2379 | { |
2380 | struct via82xx *chip; | 2380 | struct via82xx *chip; |
2381 | int err; | 2381 | int err; |
@@ -2452,7 +2452,7 @@ struct via823x_info { | |||
2452 | char *name; | 2452 | char *name; |
2453 | int type; | 2453 | int type; |
2454 | }; | 2454 | }; |
2455 | static struct via823x_info via823x_cards[] __devinitdata = { | 2455 | static struct via823x_info via823x_cards[] = { |
2456 | { VIA_REV_PRE_8233, "VIA 8233-Pre", TYPE_VIA8233 }, | 2456 | { VIA_REV_PRE_8233, "VIA 8233-Pre", TYPE_VIA8233 }, |
2457 | { VIA_REV_8233C, "VIA 8233C", TYPE_VIA8233 }, | 2457 | { VIA_REV_8233C, "VIA 8233C", TYPE_VIA8233 }, |
2458 | { VIA_REV_8233, "VIA 8233", TYPE_VIA8233 }, | 2458 | { VIA_REV_8233, "VIA 8233", TYPE_VIA8233 }, |
@@ -2466,7 +2466,7 @@ static struct via823x_info via823x_cards[] __devinitdata = { | |||
2466 | * auto detection of DXS channel supports. | 2466 | * auto detection of DXS channel supports. |
2467 | */ | 2467 | */ |
2468 | 2468 | ||
2469 | static struct snd_pci_quirk dxs_whitelist[] __devinitdata = { | 2469 | static struct snd_pci_quirk dxs_whitelist[] = { |
2470 | SND_PCI_QUIRK(0x1005, 0x4710, "Avance Logic Mobo", VIA_DXS_ENABLE), | 2470 | SND_PCI_QUIRK(0x1005, 0x4710, "Avance Logic Mobo", VIA_DXS_ENABLE), |
2471 | SND_PCI_QUIRK(0x1019, 0x0996, "ESC Mobo", VIA_DXS_48K), | 2471 | SND_PCI_QUIRK(0x1019, 0x0996, "ESC Mobo", VIA_DXS_48K), |
2472 | SND_PCI_QUIRK(0x1019, 0x0a81, "ECS K7VTA3 v8.0", VIA_DXS_NO_VRA), | 2472 | SND_PCI_QUIRK(0x1019, 0x0a81, "ECS K7VTA3 v8.0", VIA_DXS_NO_VRA), |
@@ -2510,7 +2510,7 @@ static struct snd_pci_quirk dxs_whitelist[] __devinitdata = { | |||
2510 | { } /* terminator */ | 2510 | { } /* terminator */ |
2511 | }; | 2511 | }; |
2512 | 2512 | ||
2513 | static int __devinit check_dxs_list(struct pci_dev *pci, int revision) | 2513 | static int check_dxs_list(struct pci_dev *pci, int revision) |
2514 | { | 2514 | { |
2515 | const struct snd_pci_quirk *w; | 2515 | const struct snd_pci_quirk *w; |
2516 | 2516 | ||
@@ -2535,8 +2535,8 @@ static int __devinit check_dxs_list(struct pci_dev *pci, int revision) | |||
2535 | return VIA_DXS_48K; | 2535 | return VIA_DXS_48K; |
2536 | }; | 2536 | }; |
2537 | 2537 | ||
2538 | static int __devinit snd_via82xx_probe(struct pci_dev *pci, | 2538 | static int snd_via82xx_probe(struct pci_dev *pci, |
2539 | const struct pci_device_id *pci_id) | 2539 | const struct pci_device_id *pci_id) |
2540 | { | 2540 | { |
2541 | struct snd_card *card; | 2541 | struct snd_card *card; |
2542 | struct via82xx *chip; | 2542 | struct via82xx *chip; |
@@ -2643,7 +2643,7 @@ static int __devinit snd_via82xx_probe(struct pci_dev *pci, | |||
2643 | return err; | 2643 | return err; |
2644 | } | 2644 | } |
2645 | 2645 | ||
2646 | static void __devexit snd_via82xx_remove(struct pci_dev *pci) | 2646 | static void snd_via82xx_remove(struct pci_dev *pci) |
2647 | { | 2647 | { |
2648 | snd_card_free(pci_get_drvdata(pci)); | 2648 | snd_card_free(pci_get_drvdata(pci)); |
2649 | pci_set_drvdata(pci, NULL); | 2649 | pci_set_drvdata(pci, NULL); |
@@ -2653,7 +2653,7 @@ static struct pci_driver via82xx_driver = { | |||
2653 | .name = KBUILD_MODNAME, | 2653 | .name = KBUILD_MODNAME, |
2654 | .id_table = snd_via82xx_ids, | 2654 | .id_table = snd_via82xx_ids, |
2655 | .probe = snd_via82xx_probe, | 2655 | .probe = snd_via82xx_probe, |
2656 | .remove = __devexit_p(snd_via82xx_remove), | 2656 | .remove = snd_via82xx_remove, |
2657 | .driver = { | 2657 | .driver = { |
2658 | .pm = SND_VIA82XX_PM_OPS, | 2658 | .pm = SND_VIA82XX_PM_OPS, |
2659 | }, | 2659 | }, |
diff --git a/sound/pci/via82xx_modem.c b/sound/pci/via82xx_modem.c index 8e0efc416f22..4f5fd80b7e56 100644 --- a/sound/pci/via82xx_modem.c +++ b/sound/pci/via82xx_modem.c | |||
@@ -836,7 +836,7 @@ static void init_viadev(struct via82xx_modem *chip, int idx, unsigned int reg_of | |||
836 | /* | 836 | /* |
837 | * create a pcm instance for via686a/b | 837 | * create a pcm instance for via686a/b |
838 | */ | 838 | */ |
839 | static int __devinit snd_via686_pcm_new(struct via82xx_modem *chip) | 839 | static int snd_via686_pcm_new(struct via82xx_modem *chip) |
840 | { | 840 | { |
841 | struct snd_pcm *pcm; | 841 | struct snd_pcm *pcm; |
842 | int err; | 842 | int err; |
@@ -885,7 +885,7 @@ static void snd_via82xx_mixer_free_ac97(struct snd_ac97 *ac97) | |||
885 | } | 885 | } |
886 | 886 | ||
887 | 887 | ||
888 | static int __devinit snd_via82xx_mixer_new(struct via82xx_modem *chip) | 888 | static int snd_via82xx_mixer_new(struct via82xx_modem *chip) |
889 | { | 889 | { |
890 | struct snd_ac97_template ac97; | 890 | struct snd_ac97_template ac97; |
891 | int err; | 891 | int err; |
@@ -928,7 +928,7 @@ static void snd_via82xx_proc_read(struct snd_info_entry *entry, struct snd_info_ | |||
928 | } | 928 | } |
929 | } | 929 | } |
930 | 930 | ||
931 | static void __devinit snd_via82xx_proc_init(struct via82xx_modem *chip) | 931 | static void snd_via82xx_proc_init(struct via82xx_modem *chip) |
932 | { | 932 | { |
933 | struct snd_info_entry *entry; | 933 | struct snd_info_entry *entry; |
934 | 934 | ||
@@ -1103,12 +1103,12 @@ static int snd_via82xx_dev_free(struct snd_device *device) | |||
1103 | return snd_via82xx_free(chip); | 1103 | return snd_via82xx_free(chip); |
1104 | } | 1104 | } |
1105 | 1105 | ||
1106 | static int __devinit snd_via82xx_create(struct snd_card *card, | 1106 | static int snd_via82xx_create(struct snd_card *card, |
1107 | struct pci_dev *pci, | 1107 | struct pci_dev *pci, |
1108 | int chip_type, | 1108 | int chip_type, |
1109 | int revision, | 1109 | int revision, |
1110 | unsigned int ac97_clock, | 1110 | unsigned int ac97_clock, |
1111 | struct via82xx_modem ** r_via) | 1111 | struct via82xx_modem **r_via) |
1112 | { | 1112 | { |
1113 | struct via82xx_modem *chip; | 1113 | struct via82xx_modem *chip; |
1114 | int err; | 1114 | int err; |
@@ -1168,8 +1168,8 @@ static int __devinit snd_via82xx_create(struct snd_card *card, | |||
1168 | } | 1168 | } |
1169 | 1169 | ||
1170 | 1170 | ||
1171 | static int __devinit snd_via82xx_probe(struct pci_dev *pci, | 1171 | static int snd_via82xx_probe(struct pci_dev *pci, |
1172 | const struct pci_device_id *pci_id) | 1172 | const struct pci_device_id *pci_id) |
1173 | { | 1173 | { |
1174 | struct snd_card *card; | 1174 | struct snd_card *card; |
1175 | struct via82xx_modem *chip; | 1175 | struct via82xx_modem *chip; |
@@ -1224,7 +1224,7 @@ static int __devinit snd_via82xx_probe(struct pci_dev *pci, | |||
1224 | return err; | 1224 | return err; |
1225 | } | 1225 | } |
1226 | 1226 | ||
1227 | static void __devexit snd_via82xx_remove(struct pci_dev *pci) | 1227 | static void snd_via82xx_remove(struct pci_dev *pci) |
1228 | { | 1228 | { |
1229 | snd_card_free(pci_get_drvdata(pci)); | 1229 | snd_card_free(pci_get_drvdata(pci)); |
1230 | pci_set_drvdata(pci, NULL); | 1230 | pci_set_drvdata(pci, NULL); |
@@ -1234,7 +1234,7 @@ static struct pci_driver via82xx_modem_driver = { | |||
1234 | .name = KBUILD_MODNAME, | 1234 | .name = KBUILD_MODNAME, |
1235 | .id_table = snd_via82xx_modem_ids, | 1235 | .id_table = snd_via82xx_modem_ids, |
1236 | .probe = snd_via82xx_probe, | 1236 | .probe = snd_via82xx_probe, |
1237 | .remove = __devexit_p(snd_via82xx_remove), | 1237 | .remove = snd_via82xx_remove, |
1238 | .driver = { | 1238 | .driver = { |
1239 | .pm = SND_VIA82XX_PM_OPS, | 1239 | .pm = SND_VIA82XX_PM_OPS, |
1240 | }, | 1240 | }, |
diff --git a/sound/pci/vx222/vx222.c b/sound/pci/vx222/vx222.c index fdfbaf857233..e2f1ab37e154 100644 --- a/sound/pci/vx222/vx222.c +++ b/sound/pci/vx222/vx222.c | |||
@@ -134,9 +134,9 @@ static int snd_vx222_dev_free(struct snd_device *device) | |||
134 | } | 134 | } |
135 | 135 | ||
136 | 136 | ||
137 | static int __devinit snd_vx222_create(struct snd_card *card, struct pci_dev *pci, | 137 | static int snd_vx222_create(struct snd_card *card, struct pci_dev *pci, |
138 | struct snd_vx_hardware *hw, | 138 | struct snd_vx_hardware *hw, |
139 | struct snd_vx222 **rchip) | 139 | struct snd_vx222 **rchip) |
140 | { | 140 | { |
141 | struct vx_core *chip; | 141 | struct vx_core *chip; |
142 | struct snd_vx222 *vx; | 142 | struct snd_vx222 *vx; |
@@ -188,8 +188,8 @@ static int __devinit snd_vx222_create(struct snd_card *card, struct pci_dev *pci | |||
188 | } | 188 | } |
189 | 189 | ||
190 | 190 | ||
191 | static int __devinit snd_vx222_probe(struct pci_dev *pci, | 191 | static int snd_vx222_probe(struct pci_dev *pci, |
192 | const struct pci_device_id *pci_id) | 192 | const struct pci_device_id *pci_id) |
193 | { | 193 | { |
194 | static int dev; | 194 | static int dev; |
195 | struct snd_card *card; | 195 | struct snd_card *card; |
@@ -251,7 +251,7 @@ static int __devinit snd_vx222_probe(struct pci_dev *pci, | |||
251 | return 0; | 251 | return 0; |
252 | } | 252 | } |
253 | 253 | ||
254 | static void __devexit snd_vx222_remove(struct pci_dev *pci) | 254 | static void snd_vx222_remove(struct pci_dev *pci) |
255 | { | 255 | { |
256 | snd_card_free(pci_get_drvdata(pci)); | 256 | snd_card_free(pci_get_drvdata(pci)); |
257 | pci_set_drvdata(pci, NULL); | 257 | pci_set_drvdata(pci, NULL); |
@@ -300,7 +300,7 @@ static struct pci_driver vx222_driver = { | |||
300 | .name = KBUILD_MODNAME, | 300 | .name = KBUILD_MODNAME, |
301 | .id_table = snd_vx222_ids, | 301 | .id_table = snd_vx222_ids, |
302 | .probe = snd_vx222_probe, | 302 | .probe = snd_vx222_probe, |
303 | .remove = __devexit_p(snd_vx222_remove), | 303 | .remove = snd_vx222_remove, |
304 | .driver = { | 304 | .driver = { |
305 | .pm = SND_VX222_PM_OPS, | 305 | .pm = SND_VX222_PM_OPS, |
306 | }, | 306 | }, |
diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c index e01fe34db9ec..01c49655a3c1 100644 --- a/sound/pci/ymfpci/ymfpci.c +++ b/sound/pci/ymfpci/ymfpci.c | |||
@@ -79,8 +79,8 @@ static DEFINE_PCI_DEVICE_TABLE(snd_ymfpci_ids) = { | |||
79 | MODULE_DEVICE_TABLE(pci, snd_ymfpci_ids); | 79 | MODULE_DEVICE_TABLE(pci, snd_ymfpci_ids); |
80 | 80 | ||
81 | #ifdef SUPPORT_JOYSTICK | 81 | #ifdef SUPPORT_JOYSTICK |
82 | static int __devinit snd_ymfpci_create_gameport(struct snd_ymfpci *chip, int dev, | 82 | static int snd_ymfpci_create_gameport(struct snd_ymfpci *chip, int dev, |
83 | int legacy_ctrl, int legacy_ctrl2) | 83 | int legacy_ctrl, int legacy_ctrl2) |
84 | { | 84 | { |
85 | struct gameport *gp; | 85 | struct gameport *gp; |
86 | struct resource *r = NULL; | 86 | struct resource *r = NULL; |
@@ -167,8 +167,8 @@ static inline int snd_ymfpci_create_gameport(struct snd_ymfpci *chip, int dev, i | |||
167 | void snd_ymfpci_free_gameport(struct snd_ymfpci *chip) { } | 167 | void snd_ymfpci_free_gameport(struct snd_ymfpci *chip) { } |
168 | #endif /* SUPPORT_JOYSTICK */ | 168 | #endif /* SUPPORT_JOYSTICK */ |
169 | 169 | ||
170 | static int __devinit snd_card_ymfpci_probe(struct pci_dev *pci, | 170 | static int snd_card_ymfpci_probe(struct pci_dev *pci, |
171 | const struct pci_device_id *pci_id) | 171 | const struct pci_device_id *pci_id) |
172 | { | 172 | { |
173 | static int dev; | 173 | static int dev; |
174 | struct snd_card *card; | 174 | struct snd_card *card; |
@@ -344,7 +344,7 @@ static int __devinit snd_card_ymfpci_probe(struct pci_dev *pci, | |||
344 | return 0; | 344 | return 0; |
345 | } | 345 | } |
346 | 346 | ||
347 | static void __devexit snd_card_ymfpci_remove(struct pci_dev *pci) | 347 | static void snd_card_ymfpci_remove(struct pci_dev *pci) |
348 | { | 348 | { |
349 | snd_card_free(pci_get_drvdata(pci)); | 349 | snd_card_free(pci_get_drvdata(pci)); |
350 | pci_set_drvdata(pci, NULL); | 350 | pci_set_drvdata(pci, NULL); |
@@ -354,7 +354,7 @@ static struct pci_driver ymfpci_driver = { | |||
354 | .name = KBUILD_MODNAME, | 354 | .name = KBUILD_MODNAME, |
355 | .id_table = snd_ymfpci_ids, | 355 | .id_table = snd_ymfpci_ids, |
356 | .probe = snd_card_ymfpci_probe, | 356 | .probe = snd_card_ymfpci_probe, |
357 | .remove = __devexit_p(snd_card_ymfpci_remove), | 357 | .remove = snd_card_ymfpci_remove, |
358 | #ifdef CONFIG_PM_SLEEP | 358 | #ifdef CONFIG_PM_SLEEP |
359 | .driver = { | 359 | .driver = { |
360 | .pm = &snd_ymfpci_pm, | 360 | .pm = &snd_ymfpci_pm, |
diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c index 60e8cb24bd44..22056c50fe39 100644 --- a/sound/pci/ymfpci/ymfpci_main.c +++ b/sound/pci/ymfpci/ymfpci_main.c | |||
@@ -597,7 +597,7 @@ static void snd_ymfpci_pcm_init_voice(struct snd_ymfpci_pcm *ypcm, unsigned int | |||
597 | } | 597 | } |
598 | } | 598 | } |
599 | 599 | ||
600 | static int __devinit snd_ymfpci_ac3_init(struct snd_ymfpci *chip) | 600 | static int snd_ymfpci_ac3_init(struct snd_ymfpci *chip) |
601 | { | 601 | { |
602 | if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci), | 602 | if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci), |
603 | 4096, &chip->ac3_tmp_base) < 0) | 603 | 4096, &chip->ac3_tmp_base) < 0) |
@@ -1143,7 +1143,7 @@ static struct snd_pcm_ops snd_ymfpci_capture_rec_ops = { | |||
1143 | .pointer = snd_ymfpci_capture_pointer, | 1143 | .pointer = snd_ymfpci_capture_pointer, |
1144 | }; | 1144 | }; |
1145 | 1145 | ||
1146 | int __devinit snd_ymfpci_pcm(struct snd_ymfpci *chip, int device, struct snd_pcm ** rpcm) | 1146 | int snd_ymfpci_pcm(struct snd_ymfpci *chip, int device, struct snd_pcm **rpcm) |
1147 | { | 1147 | { |
1148 | struct snd_pcm *pcm; | 1148 | struct snd_pcm *pcm; |
1149 | int err; | 1149 | int err; |
@@ -1186,7 +1186,7 @@ static struct snd_pcm_ops snd_ymfpci_capture_ac97_ops = { | |||
1186 | .pointer = snd_ymfpci_capture_pointer, | 1186 | .pointer = snd_ymfpci_capture_pointer, |
1187 | }; | 1187 | }; |
1188 | 1188 | ||
1189 | int __devinit snd_ymfpci_pcm2(struct snd_ymfpci *chip, int device, struct snd_pcm ** rpcm) | 1189 | int snd_ymfpci_pcm2(struct snd_ymfpci *chip, int device, struct snd_pcm **rpcm) |
1190 | { | 1190 | { |
1191 | struct snd_pcm *pcm; | 1191 | struct snd_pcm *pcm; |
1192 | int err; | 1192 | int err; |
@@ -1224,7 +1224,8 @@ static struct snd_pcm_ops snd_ymfpci_playback_spdif_ops = { | |||
1224 | .pointer = snd_ymfpci_playback_pointer, | 1224 | .pointer = snd_ymfpci_playback_pointer, |
1225 | }; | 1225 | }; |
1226 | 1226 | ||
1227 | int __devinit snd_ymfpci_pcm_spdif(struct snd_ymfpci *chip, int device, struct snd_pcm ** rpcm) | 1227 | int snd_ymfpci_pcm_spdif(struct snd_ymfpci *chip, int device, |
1228 | struct snd_pcm **rpcm) | ||
1228 | { | 1229 | { |
1229 | struct snd_pcm *pcm; | 1230 | struct snd_pcm *pcm; |
1230 | int err; | 1231 | int err; |
@@ -1269,7 +1270,8 @@ static const struct snd_pcm_chmap_elem surround_map[] = { | |||
1269 | { } | 1270 | { } |
1270 | }; | 1271 | }; |
1271 | 1272 | ||
1272 | int __devinit snd_ymfpci_pcm_4ch(struct snd_ymfpci *chip, int device, struct snd_pcm ** rpcm) | 1273 | int snd_ymfpci_pcm_4ch(struct snd_ymfpci *chip, int device, |
1274 | struct snd_pcm **rpcm) | ||
1273 | { | 1275 | { |
1274 | struct snd_pcm *pcm; | 1276 | struct snd_pcm *pcm; |
1275 | int err; | 1277 | int err; |
@@ -1338,7 +1340,7 @@ static int snd_ymfpci_spdif_default_put(struct snd_kcontrol *kcontrol, | |||
1338 | return change; | 1340 | return change; |
1339 | } | 1341 | } |
1340 | 1342 | ||
1341 | static struct snd_kcontrol_new snd_ymfpci_spdif_default __devinitdata = | 1343 | static struct snd_kcontrol_new snd_ymfpci_spdif_default = |
1342 | { | 1344 | { |
1343 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1345 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
1344 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), | 1346 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), |
@@ -1366,7 +1368,7 @@ static int snd_ymfpci_spdif_mask_get(struct snd_kcontrol *kcontrol, | |||
1366 | return 0; | 1368 | return 0; |
1367 | } | 1369 | } |
1368 | 1370 | ||
1369 | static struct snd_kcontrol_new snd_ymfpci_spdif_mask __devinitdata = | 1371 | static struct snd_kcontrol_new snd_ymfpci_spdif_mask = |
1370 | { | 1372 | { |
1371 | .access = SNDRV_CTL_ELEM_ACCESS_READ, | 1373 | .access = SNDRV_CTL_ELEM_ACCESS_READ, |
1372 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1374 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
@@ -1413,7 +1415,7 @@ static int snd_ymfpci_spdif_stream_put(struct snd_kcontrol *kcontrol, | |||
1413 | return change; | 1415 | return change; |
1414 | } | 1416 | } |
1415 | 1417 | ||
1416 | static struct snd_kcontrol_new snd_ymfpci_spdif_stream __devinitdata = | 1418 | static struct snd_kcontrol_new snd_ymfpci_spdif_stream = |
1417 | { | 1419 | { |
1418 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE, | 1420 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE, |
1419 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1421 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
@@ -1461,7 +1463,7 @@ static int snd_ymfpci_drec_source_put(struct snd_kcontrol *kcontrol, struct snd_ | |||
1461 | return reg != old_reg; | 1463 | return reg != old_reg; |
1462 | } | 1464 | } |
1463 | 1465 | ||
1464 | static struct snd_kcontrol_new snd_ymfpci_drec_source __devinitdata = { | 1466 | static struct snd_kcontrol_new snd_ymfpci_drec_source = { |
1465 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, | 1467 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, |
1466 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1468 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1467 | .name = "Direct Recording Source", | 1469 | .name = "Direct Recording Source", |
@@ -1631,7 +1633,7 @@ static int snd_ymfpci_put_dup4ch(struct snd_kcontrol *kcontrol, struct snd_ctl_e | |||
1631 | return change; | 1633 | return change; |
1632 | } | 1634 | } |
1633 | 1635 | ||
1634 | static struct snd_kcontrol_new snd_ymfpci_dup4ch __devinitdata = { | 1636 | static struct snd_kcontrol_new snd_ymfpci_dup4ch = { |
1635 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1637 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1636 | .name = "4ch Duplication", | 1638 | .name = "4ch Duplication", |
1637 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, | 1639 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, |
@@ -1640,7 +1642,7 @@ static struct snd_kcontrol_new snd_ymfpci_dup4ch __devinitdata = { | |||
1640 | .put = snd_ymfpci_put_dup4ch, | 1642 | .put = snd_ymfpci_put_dup4ch, |
1641 | }; | 1643 | }; |
1642 | 1644 | ||
1643 | static struct snd_kcontrol_new snd_ymfpci_controls[] __devinitdata = { | 1645 | static struct snd_kcontrol_new snd_ymfpci_controls[] = { |
1644 | { | 1646 | { |
1645 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1647 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1646 | .name = "Wave Playback Volume", | 1648 | .name = "Wave Playback Volume", |
@@ -1734,7 +1736,7 @@ static int snd_ymfpci_gpio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_ | |||
1734 | return 0; | 1736 | return 0; |
1735 | } | 1737 | } |
1736 | 1738 | ||
1737 | static struct snd_kcontrol_new snd_ymfpci_rear_shared __devinitdata = { | 1739 | static struct snd_kcontrol_new snd_ymfpci_rear_shared = { |
1738 | .name = "Shared Rear/Line-In Switch", | 1740 | .name = "Shared Rear/Line-In Switch", |
1739 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1741 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1740 | .info = snd_ymfpci_gpio_sw_info, | 1742 | .info = snd_ymfpci_gpio_sw_info, |
@@ -1798,7 +1800,7 @@ static int snd_ymfpci_pcm_vol_put(struct snd_kcontrol *kcontrol, | |||
1798 | return 0; | 1800 | return 0; |
1799 | } | 1801 | } |
1800 | 1802 | ||
1801 | static struct snd_kcontrol_new snd_ymfpci_pcm_volume __devinitdata = { | 1803 | static struct snd_kcontrol_new snd_ymfpci_pcm_volume = { |
1802 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1804 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
1803 | .name = "PCM Playback Volume", | 1805 | .name = "PCM Playback Volume", |
1804 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | | 1806 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | |
@@ -1825,7 +1827,7 @@ static void snd_ymfpci_mixer_free_ac97(struct snd_ac97 *ac97) | |||
1825 | chip->ac97 = NULL; | 1827 | chip->ac97 = NULL; |
1826 | } | 1828 | } |
1827 | 1829 | ||
1828 | int __devinit snd_ymfpci_mixer(struct snd_ymfpci *chip, int rear_switch) | 1830 | int snd_ymfpci_mixer(struct snd_ymfpci *chip, int rear_switch) |
1829 | { | 1831 | { |
1830 | struct snd_ac97_template ac97; | 1832 | struct snd_ac97_template ac97; |
1831 | struct snd_kcontrol *kctl; | 1833 | struct snd_kcontrol *kctl; |
@@ -1969,7 +1971,7 @@ static struct snd_timer_hardware snd_ymfpci_timer_hw = { | |||
1969 | .precise_resolution = snd_ymfpci_timer_precise_resolution, | 1971 | .precise_resolution = snd_ymfpci_timer_precise_resolution, |
1970 | }; | 1972 | }; |
1971 | 1973 | ||
1972 | int __devinit snd_ymfpci_timer(struct snd_ymfpci *chip, int device) | 1974 | int snd_ymfpci_timer(struct snd_ymfpci *chip, int device) |
1973 | { | 1975 | { |
1974 | struct snd_timer *timer = NULL; | 1976 | struct snd_timer *timer = NULL; |
1975 | struct snd_timer_id tid; | 1977 | struct snd_timer_id tid; |
@@ -2005,7 +2007,7 @@ static void snd_ymfpci_proc_read(struct snd_info_entry *entry, | |||
2005 | snd_iprintf(buffer, "%04x: %04x\n", i, snd_ymfpci_readl(chip, i)); | 2007 | snd_iprintf(buffer, "%04x: %04x\n", i, snd_ymfpci_readl(chip, i)); |
2006 | } | 2008 | } |
2007 | 2009 | ||
2008 | static int __devinit snd_ymfpci_proc_init(struct snd_card *card, struct snd_ymfpci *chip) | 2010 | static int snd_ymfpci_proc_init(struct snd_card *card, struct snd_ymfpci *chip) |
2009 | { | 2011 | { |
2010 | struct snd_info_entry *entry; | 2012 | struct snd_info_entry *entry; |
2011 | 2013 | ||
@@ -2127,7 +2129,7 @@ static void snd_ymfpci_download_image(struct snd_ymfpci *chip) | |||
2127 | snd_ymfpci_enable_dsp(chip); | 2129 | snd_ymfpci_enable_dsp(chip); |
2128 | } | 2130 | } |
2129 | 2131 | ||
2130 | static int __devinit snd_ymfpci_memalloc(struct snd_ymfpci *chip) | 2132 | static int snd_ymfpci_memalloc(struct snd_ymfpci *chip) |
2131 | { | 2133 | { |
2132 | long size, playback_ctrl_size; | 2134 | long size, playback_ctrl_size; |
2133 | int voice, bank, reg; | 2135 | int voice, bank, reg; |
@@ -2393,10 +2395,10 @@ static int snd_ymfpci_resume(struct device *dev) | |||
2393 | SIMPLE_DEV_PM_OPS(snd_ymfpci_pm, snd_ymfpci_suspend, snd_ymfpci_resume); | 2395 | SIMPLE_DEV_PM_OPS(snd_ymfpci_pm, snd_ymfpci_suspend, snd_ymfpci_resume); |
2394 | #endif /* CONFIG_PM_SLEEP */ | 2396 | #endif /* CONFIG_PM_SLEEP */ |
2395 | 2397 | ||
2396 | int __devinit snd_ymfpci_create(struct snd_card *card, | 2398 | int snd_ymfpci_create(struct snd_card *card, |
2397 | struct pci_dev * pci, | 2399 | struct pci_dev *pci, |
2398 | unsigned short old_legacy_ctrl, | 2400 | unsigned short old_legacy_ctrl, |
2399 | struct snd_ymfpci ** rchip) | 2401 | struct snd_ymfpci **rchip) |
2400 | { | 2402 | { |
2401 | struct snd_ymfpci *chip; | 2403 | struct snd_ymfpci *chip; |
2402 | int err; | 2404 | int err; |