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