aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ens1370.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/ens1370.c')
-rw-r--r--sound/pci/ens1370.c52
1 files changed, 26 insertions, 26 deletions
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
1271static int __devinit snd_ensoniq_pcm(struct ensoniq * ensoniq, int device, 1271static 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
1313static int __devinit snd_ensoniq_pcm2(struct ensoniq * ensoniq, int device, 1313static 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 */
1487static struct snd_kcontrol_new snd_es1371_mixer_spdif[] __devinitdata = { 1487static 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
1549static struct snd_kcontrol_new snd_ens1373_rear __devinitdata = 1549static 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
1594static struct snd_kcontrol_new snd_ens1373_line __devinitdata = 1594static 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
1628static struct es1371_quirk es1371_spdif_present[] __devinitdata = { 1628static 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
1637static struct snd_pci_quirk ens1373_line_quirk[] __devinitdata = { 1637static 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
1643static int __devinit snd_ensoniq_1371_mixer(struct ensoniq *ensoniq, 1643static 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
1752static struct snd_kcontrol_new snd_es1370_controls[2] __devinitdata = { 1752static struct snd_kcontrol_new snd_es1370_controls[2] = {
1753ENSONIQ_CONTROL("PCM 0 Output also on Line-In Jack", ES_1370_XCTL0), 1753ENSONIQ_CONTROL("PCM 0 Output also on Line-In Jack", ES_1370_XCTL0),
1754ENSONIQ_CONTROL("Mic +5V bias", ES_1370_XCTL1) 1754ENSONIQ_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
1765static int __devinit snd_ensoniq_1370_mixer(struct ensoniq * ensoniq) 1765static 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
1799static int __devinit snd_ensoniq_get_joystick_port(int dev) 1799static 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
1822static int __devinit snd_ensoniq_create_gameport(struct ensoniq *ensoniq, int dev) 1822static 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
1916static void __devinit snd_ensoniq_proc_init(struct ensoniq * ensoniq) 1916static 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
1963static struct snd_pci_quirk es1371_amplifier_hack[] __devinitdata = { 1963static 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
2109static int __devinit snd_ensoniq_create(struct snd_card *card, 2109static 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
2364static int __devinit snd_ensoniq_midi(struct ensoniq * ensoniq, int device, 2364static 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
2425static int __devinit snd_audiopci_probe(struct pci_dev *pci, 2425static 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
2497static void __devexit snd_audiopci_remove(struct pci_dev *pci) 2497static 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 },