diff options
Diffstat (limited to 'sound/pci/ali5451/ali5451.c')
-rw-r--r-- | sound/pci/ali5451/ali5451.c | 32 |
1 files changed, 16 insertions, 16 deletions
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 | }, |