diff options
Diffstat (limited to 'sound/pci/cs46xx')
-rw-r--r-- | sound/pci/cs46xx/cs46xx.c | 8 | ||||
-rw-r--r-- | sound/pci/cs46xx/cs46xx_lib.c | 35 |
2 files changed, 23 insertions, 20 deletions
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; |