aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/opti9xx/miro.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/isa/opti9xx/miro.c')
-rw-r--r--sound/isa/opti9xx/miro.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/sound/isa/opti9xx/miro.c b/sound/isa/opti9xx/miro.c
index 4a7ff4e8985..c3da1df9371 100644
--- a/sound/isa/opti9xx/miro.c
+++ b/sound/isa/opti9xx/miro.c
@@ -587,7 +587,7 @@ static int snd_miro_put_double(struct snd_kcontrol *kcontrol,
587 return change; 587 return change;
588} 588}
589 589
590static struct snd_kcontrol_new snd_miro_controls[] __devinitdata = { 590static struct snd_kcontrol_new snd_miro_controls[] = {
591MIRO_DOUBLE("Master Playback Volume", 0, ACI_GET_MASTER, ACI_SET_MASTER), 591MIRO_DOUBLE("Master Playback Volume", 0, ACI_GET_MASTER, ACI_SET_MASTER),
592MIRO_DOUBLE("Mic Playback Volume", 1, ACI_GET_MIC, ACI_SET_MIC), 592MIRO_DOUBLE("Mic Playback Volume", 1, ACI_GET_MIC, ACI_SET_MIC),
593MIRO_DOUBLE("Line Playback Volume", 1, ACI_GET_LINE, ACI_SET_LINE), 593MIRO_DOUBLE("Line Playback Volume", 1, ACI_GET_LINE, ACI_SET_LINE),
@@ -599,7 +599,7 @@ MIRO_DOUBLE("Aux Playback Volume", 2, ACI_GET_LINE2, ACI_SET_LINE2),
599 599
600/* Equalizer with seven bands (only PCM20) 600/* Equalizer with seven bands (only PCM20)
601 from -12dB up to +12dB on each band */ 601 from -12dB up to +12dB on each band */
602static struct snd_kcontrol_new snd_miro_eq_controls[] __devinitdata = { 602static struct snd_kcontrol_new snd_miro_eq_controls[] = {
603MIRO_DOUBLE("Tone Control - 28 Hz", 0, ACI_GET_EQ1, ACI_SET_EQ1), 603MIRO_DOUBLE("Tone Control - 28 Hz", 0, ACI_GET_EQ1, ACI_SET_EQ1),
604MIRO_DOUBLE("Tone Control - 160 Hz", 0, ACI_GET_EQ2, ACI_SET_EQ2), 604MIRO_DOUBLE("Tone Control - 160 Hz", 0, ACI_GET_EQ2, ACI_SET_EQ2),
605MIRO_DOUBLE("Tone Control - 400 Hz", 0, ACI_GET_EQ3, ACI_SET_EQ3), 605MIRO_DOUBLE("Tone Control - 400 Hz", 0, ACI_GET_EQ3, ACI_SET_EQ3),
@@ -609,15 +609,15 @@ MIRO_DOUBLE("Tone Control - 6.3 kHz", 0, ACI_GET_EQ6, ACI_SET_EQ6),
609MIRO_DOUBLE("Tone Control - 16 kHz", 0, ACI_GET_EQ7, ACI_SET_EQ7), 609MIRO_DOUBLE("Tone Control - 16 kHz", 0, ACI_GET_EQ7, ACI_SET_EQ7),
610}; 610};
611 611
612static struct snd_kcontrol_new snd_miro_radio_control[] __devinitdata = { 612static struct snd_kcontrol_new snd_miro_radio_control[] = {
613MIRO_DOUBLE("Radio Playback Volume", 0, ACI_GET_LINE1, ACI_SET_LINE1), 613MIRO_DOUBLE("Radio Playback Volume", 0, ACI_GET_LINE1, ACI_SET_LINE1),
614}; 614};
615 615
616static struct snd_kcontrol_new snd_miro_line_control[] __devinitdata = { 616static struct snd_kcontrol_new snd_miro_line_control[] = {
617MIRO_DOUBLE("Line Playback Volume", 2, ACI_GET_LINE1, ACI_SET_LINE1), 617MIRO_DOUBLE("Line Playback Volume", 2, ACI_GET_LINE1, ACI_SET_LINE1),
618}; 618};
619 619
620static struct snd_kcontrol_new snd_miro_preamp_control[] __devinitdata = { 620static struct snd_kcontrol_new snd_miro_preamp_control[] = {
621{ 621{
622 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 622 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
623 .name = "Mic Boost", 623 .name = "Mic Boost",
@@ -627,7 +627,7 @@ static struct snd_kcontrol_new snd_miro_preamp_control[] __devinitdata = {
627 .put = snd_miro_put_preamp, 627 .put = snd_miro_put_preamp,
628}}; 628}};
629 629
630static struct snd_kcontrol_new snd_miro_amp_control[] __devinitdata = { 630static struct snd_kcontrol_new snd_miro_amp_control[] = {
631{ 631{
632 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 632 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
633 .name = "Line Boost", 633 .name = "Line Boost",
@@ -637,7 +637,7 @@ static struct snd_kcontrol_new snd_miro_amp_control[] __devinitdata = {
637 .put = snd_miro_put_amp, 637 .put = snd_miro_put_amp,
638}}; 638}};
639 639
640static struct snd_kcontrol_new snd_miro_capture_control[] __devinitdata = { 640static struct snd_kcontrol_new snd_miro_capture_control[] = {
641{ 641{
642 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 642 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
643 .name = "PCM Capture Switch", 643 .name = "PCM Capture Switch",
@@ -647,7 +647,7 @@ static struct snd_kcontrol_new snd_miro_capture_control[] __devinitdata = {
647 .put = snd_miro_put_capture, 647 .put = snd_miro_put_capture,
648}}; 648}};
649 649
650static unsigned char aci_init_values[][2] __devinitdata = { 650static unsigned char aci_init_values[][2] = {
651 { ACI_SET_MUTE, 0x00 }, 651 { ACI_SET_MUTE, 0x00 },
652 { ACI_SET_POWERAMP, 0x00 }, 652 { ACI_SET_POWERAMP, 0x00 },
653 { ACI_SET_PREAMP, 0x00 }, 653 { ACI_SET_PREAMP, 0x00 },
@@ -670,7 +670,7 @@ static unsigned char aci_init_values[][2] __devinitdata = {
670 { ACI_SET_MASTER + 1, 0x20 }, 670 { ACI_SET_MASTER + 1, 0x20 },
671}; 671};
672 672
673static int __devinit snd_set_aci_init_values(struct snd_miro *miro) 673static int snd_set_aci_init_values(struct snd_miro *miro)
674{ 674{
675 int idx, error; 675 int idx, error;
676 struct snd_miro_aci *aci = miro->aci; 676 struct snd_miro_aci *aci = miro->aci;
@@ -713,8 +713,8 @@ static int __devinit snd_set_aci_init_values(struct snd_miro *miro)
713 return 0; 713 return 0;
714} 714}
715 715
716static int __devinit snd_miro_mixer(struct snd_card *card, 716static int snd_miro_mixer(struct snd_card *card,
717 struct snd_miro *miro) 717 struct snd_miro *miro)
718{ 718{
719 unsigned int idx; 719 unsigned int idx;
720 int err; 720 int err;
@@ -771,8 +771,8 @@ static int __devinit snd_miro_mixer(struct snd_card *card,
771 return 0; 771 return 0;
772} 772}
773 773
774static int __devinit snd_miro_init(struct snd_miro *chip, 774static int snd_miro_init(struct snd_miro *chip,
775 unsigned short hardware) 775 unsigned short hardware)
776{ 776{
777 static int opti9xx_mc_size[] = {7, 7, 10, 10, 2, 2, 2}; 777 static int opti9xx_mc_size[] = {7, 7, 10, 10, 2, 2, 2};
778 778
@@ -989,8 +989,8 @@ static void snd_miro_proc_read(struct snd_info_entry * entry,
989 snd_iprintf(buffer, " preamp : 0x%x\n", aci->aci_preamp); 989 snd_iprintf(buffer, " preamp : 0x%x\n", aci->aci_preamp);
990} 990}
991 991
992static void __devinit snd_miro_proc_init(struct snd_card *card, 992static void snd_miro_proc_init(struct snd_card *card,
993 struct snd_miro *miro) 993 struct snd_miro *miro)
994{ 994{
995 struct snd_info_entry *entry; 995 struct snd_info_entry *entry;
996 996
@@ -1002,7 +1002,7 @@ static void __devinit snd_miro_proc_init(struct snd_card *card,
1002 * Init 1002 * Init
1003 */ 1003 */
1004 1004
1005static int __devinit snd_miro_configure(struct snd_miro *chip) 1005static int snd_miro_configure(struct snd_miro *chip)
1006{ 1006{
1007 unsigned char wss_base_bits; 1007 unsigned char wss_base_bits;
1008 unsigned char irq_bits; 1008 unsigned char irq_bits;
@@ -1162,7 +1162,7 @@ __skip_mpu:
1162 return 0; 1162 return 0;
1163} 1163}
1164 1164
1165static int __devinit snd_miro_opti_check(struct snd_miro *chip) 1165static int snd_miro_opti_check(struct snd_miro *chip)
1166{ 1166{
1167 unsigned char value; 1167 unsigned char value;
1168 1168
@@ -1182,8 +1182,8 @@ static int __devinit snd_miro_opti_check(struct snd_miro *chip)
1182 return -ENODEV; 1182 return -ENODEV;
1183} 1183}
1184 1184
1185static int __devinit snd_card_miro_detect(struct snd_card *card, 1185static int snd_card_miro_detect(struct snd_card *card,
1186 struct snd_miro *chip) 1186 struct snd_miro *chip)
1187{ 1187{
1188 int i, err; 1188 int i, err;
1189 1189
@@ -1200,8 +1200,8 @@ static int __devinit snd_card_miro_detect(struct snd_card *card,
1200 return -ENODEV; 1200 return -ENODEV;
1201} 1201}
1202 1202
1203static int __devinit snd_card_miro_aci_detect(struct snd_card *card, 1203static int snd_card_miro_aci_detect(struct snd_card *card,
1204 struct snd_miro *miro) 1204 struct snd_miro *miro)
1205{ 1205{
1206 unsigned char regval; 1206 unsigned char regval;
1207 int i; 1207 int i;
@@ -1265,7 +1265,7 @@ static void snd_card_miro_free(struct snd_card *card)
1265 release_and_free_resource(miro->res_mc_base); 1265 release_and_free_resource(miro->res_mc_base);
1266} 1266}
1267 1267
1268static int __devinit snd_miro_probe(struct snd_card *card) 1268static int snd_miro_probe(struct snd_card *card)
1269{ 1269{
1270 int error; 1270 int error;
1271 struct snd_miro *miro = card->private_data; 1271 struct snd_miro *miro = card->private_data;
@@ -1386,7 +1386,7 @@ static int __devinit snd_miro_probe(struct snd_card *card)
1386 return snd_card_register(card); 1386 return snd_card_register(card);
1387} 1387}
1388 1388
1389static int __devinit snd_miro_isa_match(struct device *devptr, unsigned int n) 1389static int snd_miro_isa_match(struct device *devptr, unsigned int n)
1390{ 1390{
1391#ifdef CONFIG_PNP 1391#ifdef CONFIG_PNP
1392 if (snd_miro_pnp_is_probed) 1392 if (snd_miro_pnp_is_probed)
@@ -1397,7 +1397,7 @@ static int __devinit snd_miro_isa_match(struct device *devptr, unsigned int n)
1397 return 1; 1397 return 1;
1398} 1398}
1399 1399
1400static int __devinit snd_miro_isa_probe(struct device *devptr, unsigned int n) 1400static int snd_miro_isa_probe(struct device *devptr, unsigned int n)
1401{ 1401{
1402 static long possible_ports[] = {0x530, 0xe80, 0xf40, 0x604, -1}; 1402 static long possible_ports[] = {0x530, 0xe80, 0xf40, 0x604, -1};
1403 static long possible_mpu_ports[] = {0x330, 0x300, 0x310, 0x320, -1}; 1403 static long possible_mpu_ports[] = {0x330, 0x300, 0x310, 0x320, -1};
@@ -1491,8 +1491,8 @@ static int __devinit snd_miro_isa_probe(struct device *devptr, unsigned int n)
1491 return 0; 1491 return 0;
1492} 1492}
1493 1493
1494static int __devexit snd_miro_isa_remove(struct device *devptr, 1494static int snd_miro_isa_remove(struct device *devptr,
1495 unsigned int dev) 1495 unsigned int dev)
1496{ 1496{
1497 snd_card_free(dev_get_drvdata(devptr)); 1497 snd_card_free(dev_get_drvdata(devptr));
1498 dev_set_drvdata(devptr, NULL); 1498 dev_set_drvdata(devptr, NULL);
@@ -1504,7 +1504,7 @@ static int __devexit snd_miro_isa_remove(struct device *devptr,
1504static struct isa_driver snd_miro_driver = { 1504static struct isa_driver snd_miro_driver = {
1505 .match = snd_miro_isa_match, 1505 .match = snd_miro_isa_match,
1506 .probe = snd_miro_isa_probe, 1506 .probe = snd_miro_isa_probe,
1507 .remove = __devexit_p(snd_miro_isa_remove), 1507 .remove = snd_miro_isa_remove,
1508 /* FIXME: suspend/resume */ 1508 /* FIXME: suspend/resume */
1509 .driver = { 1509 .driver = {
1510 .name = DEV_NAME 1510 .name = DEV_NAME
@@ -1513,9 +1513,9 @@ static struct isa_driver snd_miro_driver = {
1513 1513
1514#ifdef CONFIG_PNP 1514#ifdef CONFIG_PNP
1515 1515
1516static int __devinit snd_card_miro_pnp(struct snd_miro *chip, 1516static int snd_card_miro_pnp(struct snd_miro *chip,
1517 struct pnp_card_link *card, 1517 struct pnp_card_link *card,
1518 const struct pnp_card_device_id *pid) 1518 const struct pnp_card_device_id *pid)
1519{ 1519{
1520 struct pnp_dev *pdev; 1520 struct pnp_dev *pdev;
1521 int err; 1521 int err;
@@ -1574,8 +1574,8 @@ static int __devinit snd_card_miro_pnp(struct snd_miro *chip,
1574 return 0; 1574 return 0;
1575} 1575}
1576 1576
1577static int __devinit snd_miro_pnp_probe(struct pnp_card_link *pcard, 1577static int snd_miro_pnp_probe(struct pnp_card_link *pcard,
1578 const struct pnp_card_device_id *pid) 1578 const struct pnp_card_device_id *pid)
1579{ 1579{
1580 struct snd_card *card; 1580 struct snd_card *card;
1581 int err; 1581 int err;
@@ -1624,7 +1624,7 @@ static int __devinit snd_miro_pnp_probe(struct pnp_card_link *pcard,
1624 return 0; 1624 return 0;
1625} 1625}
1626 1626
1627static void __devexit snd_miro_pnp_remove(struct pnp_card_link * pcard) 1627static void snd_miro_pnp_remove(struct pnp_card_link *pcard)
1628{ 1628{
1629 snd_card_free(pnp_get_card_drvdata(pcard)); 1629 snd_card_free(pnp_get_card_drvdata(pcard));
1630 pnp_set_card_drvdata(pcard, NULL); 1630 pnp_set_card_drvdata(pcard, NULL);
@@ -1636,7 +1636,7 @@ static struct pnp_card_driver miro_pnpc_driver = {
1636 .name = "miro", 1636 .name = "miro",
1637 .id_table = snd_miro_pnpids, 1637 .id_table = snd_miro_pnpids,
1638 .probe = snd_miro_pnp_probe, 1638 .probe = snd_miro_pnp_probe,
1639 .remove = __devexit_p(snd_miro_pnp_remove), 1639 .remove = snd_miro_pnp_remove,
1640}; 1640};
1641#endif 1641#endif
1642 1642