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