diff options
Diffstat (limited to 'sound/drivers')
-rw-r--r-- | sound/drivers/dummy.c | 8 | ||||
-rw-r--r-- | sound/drivers/ml403-ac97cr.c | 6 | ||||
-rw-r--r-- | sound/drivers/mpu401/mpu401.c | 6 | ||||
-rw-r--r-- | sound/drivers/mtpav.c | 18 | ||||
-rw-r--r-- | sound/drivers/mts64.c | 8 | ||||
-rw-r--r-- | sound/drivers/opl3/opl3_lib.c | 2 | ||||
-rw-r--r-- | sound/drivers/opl3/opl3_midi.c | 30 | ||||
-rw-r--r-- | sound/drivers/opl3/opl3_oss.c | 8 | ||||
-rw-r--r-- | sound/drivers/opl3/opl3_synth.c | 2 | ||||
-rw-r--r-- | sound/drivers/pcsp/pcsp.c | 8 | ||||
-rw-r--r-- | sound/drivers/portman2x4.c | 6 | ||||
-rw-r--r-- | sound/drivers/serial-u16550.c | 24 | ||||
-rw-r--r-- | sound/drivers/virmidi.c | 12 | ||||
-rw-r--r-- | sound/drivers/vx/vx_core.c | 3 | ||||
-rw-r--r-- | sound/drivers/vx/vx_hwdep.c | 12 | ||||
-rw-r--r-- | sound/drivers/vx/vx_uer.c | 2 |
16 files changed, 78 insertions, 77 deletions
diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c index 73be7e14a603..54239d2e0997 100644 --- a/sound/drivers/dummy.c +++ b/sound/drivers/dummy.c | |||
@@ -588,10 +588,10 @@ static int __devinit snd_dummy_probe(struct platform_device *devptr) | |||
588 | int idx, err; | 588 | int idx, err; |
589 | int dev = devptr->id; | 589 | int dev = devptr->id; |
590 | 590 | ||
591 | card = snd_card_new(index[dev], id[dev], THIS_MODULE, | 591 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, |
592 | sizeof(struct snd_dummy)); | 592 | sizeof(struct snd_dummy), &card); |
593 | if (card == NULL) | 593 | if (err < 0) |
594 | return -ENOMEM; | 594 | return err; |
595 | dummy = card->private_data; | 595 | dummy = card->private_data; |
596 | dummy->card = card; | 596 | dummy->card = card; |
597 | for (idx = 0; idx < MAX_PCM_DEVICES && idx < pcm_devs[dev]; idx++) { | 597 | for (idx = 0; idx < MAX_PCM_DEVICES && idx < pcm_devs[dev]; idx++) { |
diff --git a/sound/drivers/ml403-ac97cr.c b/sound/drivers/ml403-ac97cr.c index 7783843ca9ae..1950ffce2b54 100644 --- a/sound/drivers/ml403-ac97cr.c +++ b/sound/drivers/ml403-ac97cr.c | |||
@@ -1279,9 +1279,9 @@ static int __devinit snd_ml403_ac97cr_probe(struct platform_device *pfdev) | |||
1279 | if (!enable[dev]) | 1279 | if (!enable[dev]) |
1280 | return -ENOENT; | 1280 | return -ENOENT; |
1281 | 1281 | ||
1282 | card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); | 1282 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); |
1283 | if (card == NULL) | 1283 | if (err < 0) |
1284 | return -ENOMEM; | 1284 | return err; |
1285 | err = snd_ml403_ac97cr_create(card, pfdev, &ml403_ac97cr); | 1285 | err = snd_ml403_ac97cr_create(card, pfdev, &ml403_ac97cr); |
1286 | if (err < 0) { | 1286 | if (err < 0) { |
1287 | PDEBUG(INIT_FAILURE, "probe(): create failed!\n"); | 1287 | PDEBUG(INIT_FAILURE, "probe(): create failed!\n"); |
diff --git a/sound/drivers/mpu401/mpu401.c b/sound/drivers/mpu401/mpu401.c index 5b996f3faba5..149d05a8202d 100644 --- a/sound/drivers/mpu401/mpu401.c +++ b/sound/drivers/mpu401/mpu401.c | |||
@@ -73,9 +73,9 @@ static int snd_mpu401_create(int dev, struct snd_card **rcard) | |||
73 | snd_printk(KERN_ERR "the uart_enter option is obsolete; remove it\n"); | 73 | snd_printk(KERN_ERR "the uart_enter option is obsolete; remove it\n"); |
74 | 74 | ||
75 | *rcard = NULL; | 75 | *rcard = NULL; |
76 | card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); | 76 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); |
77 | if (card == NULL) | 77 | if (err < 0) |
78 | return -ENOMEM; | 78 | return err; |
79 | strcpy(card->driver, "MPU-401 UART"); | 79 | strcpy(card->driver, "MPU-401 UART"); |
80 | strcpy(card->shortname, card->driver); | 80 | strcpy(card->shortname, card->driver); |
81 | sprintf(card->longname, "%s at %#lx, ", card->shortname, port[dev]); | 81 | sprintf(card->longname, "%s at %#lx, ", card->shortname, port[dev]); |
diff --git a/sound/drivers/mtpav.c b/sound/drivers/mtpav.c index 48b64e6b2670..2f8f295d6b0c 100644 --- a/sound/drivers/mtpav.c +++ b/sound/drivers/mtpav.c | |||
@@ -303,8 +303,10 @@ static void snd_mtpav_output_port_write(struct mtpav *mtp_card, | |||
303 | 303 | ||
304 | snd_mtpav_send_byte(mtp_card, 0xf5); | 304 | snd_mtpav_send_byte(mtp_card, 0xf5); |
305 | snd_mtpav_send_byte(mtp_card, portp->hwport); | 305 | snd_mtpav_send_byte(mtp_card, portp->hwport); |
306 | //snd_printk("new outport: 0x%x\n", (unsigned int) portp->hwport); | 306 | /* |
307 | 307 | snd_printk(KERN_DEBUG "new outport: 0x%x\n", | |
308 | (unsigned int) portp->hwport); | ||
309 | */ | ||
308 | if (!(outbyte & 0x80) && portp->running_status) | 310 | if (!(outbyte & 0x80) && portp->running_status) |
309 | snd_mtpav_send_byte(mtp_card, portp->running_status); | 311 | snd_mtpav_send_byte(mtp_card, portp->running_status); |
310 | } | 312 | } |
@@ -540,7 +542,7 @@ static void snd_mtpav_read_bytes(struct mtpav *mcrd) | |||
540 | 542 | ||
541 | u8 sbyt = snd_mtpav_getreg(mcrd, SREG); | 543 | u8 sbyt = snd_mtpav_getreg(mcrd, SREG); |
542 | 544 | ||
543 | //printk("snd_mtpav_read_bytes() sbyt: 0x%x\n", sbyt); | 545 | /* printk(KERN_DEBUG "snd_mtpav_read_bytes() sbyt: 0x%x\n", sbyt); */ |
544 | 546 | ||
545 | if (!(sbyt & SIGS_BYTE)) | 547 | if (!(sbyt & SIGS_BYTE)) |
546 | return; | 548 | return; |
@@ -585,12 +587,12 @@ static irqreturn_t snd_mtpav_irqh(int irq, void *dev_id) | |||
585 | static int __devinit snd_mtpav_get_ISA(struct mtpav * mcard) | 587 | static int __devinit snd_mtpav_get_ISA(struct mtpav * mcard) |
586 | { | 588 | { |
587 | if ((mcard->res_port = request_region(port, 3, "MotuMTPAV MIDI")) == NULL) { | 589 | if ((mcard->res_port = request_region(port, 3, "MotuMTPAV MIDI")) == NULL) { |
588 | snd_printk("MTVAP port 0x%lx is busy\n", port); | 590 | snd_printk(KERN_ERR "MTVAP port 0x%lx is busy\n", port); |
589 | return -EBUSY; | 591 | return -EBUSY; |
590 | } | 592 | } |
591 | mcard->port = port; | 593 | mcard->port = port; |
592 | if (request_irq(irq, snd_mtpav_irqh, IRQF_DISABLED, "MOTU MTPAV", mcard)) { | 594 | if (request_irq(irq, snd_mtpav_irqh, IRQF_DISABLED, "MOTU MTPAV", mcard)) { |
593 | snd_printk("MTVAP IRQ %d busy\n", irq); | 595 | snd_printk(KERN_ERR "MTVAP IRQ %d busy\n", irq); |
594 | return -EBUSY; | 596 | return -EBUSY; |
595 | } | 597 | } |
596 | mcard->irq = irq; | 598 | mcard->irq = irq; |
@@ -696,9 +698,9 @@ static int __devinit snd_mtpav_probe(struct platform_device *dev) | |||
696 | int err; | 698 | int err; |
697 | struct mtpav *mtp_card; | 699 | struct mtpav *mtp_card; |
698 | 700 | ||
699 | card = snd_card_new(index, id, THIS_MODULE, sizeof(*mtp_card)); | 701 | err = snd_card_create(index, id, THIS_MODULE, sizeof(*mtp_card), &card); |
700 | if (! card) | 702 | if (err < 0) |
701 | return -ENOMEM; | 703 | return err; |
702 | 704 | ||
703 | mtp_card = card->private_data; | 705 | mtp_card = card->private_data; |
704 | spin_lock_init(&mtp_card->spinlock); | 706 | spin_lock_init(&mtp_card->spinlock); |
diff --git a/sound/drivers/mts64.c b/sound/drivers/mts64.c index 87ba1ddc0115..9284829bf927 100644 --- a/sound/drivers/mts64.c +++ b/sound/drivers/mts64.c | |||
@@ -957,10 +957,10 @@ static int __devinit snd_mts64_probe(struct platform_device *pdev) | |||
957 | if ((err = snd_mts64_probe_port(p)) < 0) | 957 | if ((err = snd_mts64_probe_port(p)) < 0) |
958 | return err; | 958 | return err; |
959 | 959 | ||
960 | card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); | 960 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); |
961 | if (card == NULL) { | 961 | if (err < 0) { |
962 | snd_printd("Cannot create card\n"); | 962 | snd_printd("Cannot create card\n"); |
963 | return -ENOMEM; | 963 | return err; |
964 | } | 964 | } |
965 | strcpy(card->driver, DRIVER_NAME); | 965 | strcpy(card->driver, DRIVER_NAME); |
966 | strcpy(card->shortname, "ESI " CARD_NAME); | 966 | strcpy(card->shortname, "ESI " CARD_NAME); |
@@ -1015,7 +1015,7 @@ static int __devinit snd_mts64_probe(struct platform_device *pdev) | |||
1015 | goto __err; | 1015 | goto __err; |
1016 | } | 1016 | } |
1017 | 1017 | ||
1018 | snd_printk("ESI Miditerminal 4140 on 0x%lx\n", p->base); | 1018 | snd_printk(KERN_INFO "ESI Miditerminal 4140 on 0x%lx\n", p->base); |
1019 | return 0; | 1019 | return 0; |
1020 | 1020 | ||
1021 | __err: | 1021 | __err: |
diff --git a/sound/drivers/opl3/opl3_lib.c b/sound/drivers/opl3/opl3_lib.c index 780582340fef..6e31e46ca393 100644 --- a/sound/drivers/opl3/opl3_lib.c +++ b/sound/drivers/opl3/opl3_lib.c | |||
@@ -302,7 +302,7 @@ void snd_opl3_interrupt(struct snd_hwdep * hw) | |||
302 | opl3 = hw->private_data; | 302 | opl3 = hw->private_data; |
303 | status = inb(opl3->l_port); | 303 | status = inb(opl3->l_port); |
304 | #if 0 | 304 | #if 0 |
305 | snd_printk("AdLib IRQ status = 0x%x\n", status); | 305 | snd_printk(KERN_DEBUG "AdLib IRQ status = 0x%x\n", status); |
306 | #endif | 306 | #endif |
307 | if (!(status & 0x80)) | 307 | if (!(status & 0x80)) |
308 | return; | 308 | return; |
diff --git a/sound/drivers/opl3/opl3_midi.c b/sound/drivers/opl3/opl3_midi.c index 16feafa2c51e..6e7d09ae0e82 100644 --- a/sound/drivers/opl3/opl3_midi.c +++ b/sound/drivers/opl3/opl3_midi.c | |||
@@ -125,7 +125,7 @@ static void debug_alloc(struct snd_opl3 *opl3, char *s, int voice) { | |||
125 | int i; | 125 | int i; |
126 | char *str = "x.24"; | 126 | char *str = "x.24"; |
127 | 127 | ||
128 | printk("time %.5i: %s [%.2i]: ", opl3->use_time, s, voice); | 128 | printk(KERN_DEBUG "time %.5i: %s [%.2i]: ", opl3->use_time, s, voice); |
129 | for (i = 0; i < opl3->max_voices; i++) | 129 | for (i = 0; i < opl3->max_voices; i++) |
130 | printk("%c", *(str + opl3->voices[i].state + 1)); | 130 | printk("%c", *(str + opl3->voices[i].state + 1)); |
131 | printk("\n"); | 131 | printk("\n"); |
@@ -218,7 +218,7 @@ static int opl3_get_voice(struct snd_opl3 *opl3, int instr_4op, | |||
218 | for (i = 0; i < END; i++) { | 218 | for (i = 0; i < END; i++) { |
219 | if (best[i].voice >= 0) { | 219 | if (best[i].voice >= 0) { |
220 | #ifdef DEBUG_ALLOC | 220 | #ifdef DEBUG_ALLOC |
221 | printk("%s %iop allocation on voice %i\n", | 221 | printk(KERN_DEBUG "%s %iop allocation on voice %i\n", |
222 | alloc_type[i], instr_4op ? 4 : 2, | 222 | alloc_type[i], instr_4op ? 4 : 2, |
223 | best[i].voice); | 223 | best[i].voice); |
224 | #endif | 224 | #endif |
@@ -317,7 +317,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) | |||
317 | opl3 = p; | 317 | opl3 = p; |
318 | 318 | ||
319 | #ifdef DEBUG_MIDI | 319 | #ifdef DEBUG_MIDI |
320 | snd_printk("Note on, ch %i, inst %i, note %i, vel %i\n", | 320 | snd_printk(KERN_DEBUG "Note on, ch %i, inst %i, note %i, vel %i\n", |
321 | chan->number, chan->midi_program, note, vel); | 321 | chan->number, chan->midi_program, note, vel); |
322 | #endif | 322 | #endif |
323 | 323 | ||
@@ -372,7 +372,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) | |||
372 | return; | 372 | return; |
373 | } | 373 | } |
374 | #ifdef DEBUG_MIDI | 374 | #ifdef DEBUG_MIDI |
375 | snd_printk(" --> OPL%i instrument: %s\n", | 375 | snd_printk(KERN_DEBUG " --> OPL%i instrument: %s\n", |
376 | instr_4op ? 3 : 2, patch->name); | 376 | instr_4op ? 3 : 2, patch->name); |
377 | #endif | 377 | #endif |
378 | /* in SYNTH mode, application takes care of voices */ | 378 | /* in SYNTH mode, application takes care of voices */ |
@@ -431,7 +431,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) | |||
431 | } | 431 | } |
432 | 432 | ||
433 | #ifdef DEBUG_MIDI | 433 | #ifdef DEBUG_MIDI |
434 | snd_printk(" --> setting OPL3 connection: 0x%x\n", | 434 | snd_printk(KERN_DEBUG " --> setting OPL3 connection: 0x%x\n", |
435 | opl3->connection_reg); | 435 | opl3->connection_reg); |
436 | #endif | 436 | #endif |
437 | /* | 437 | /* |
@@ -466,7 +466,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) | |||
466 | /* Program the FM voice characteristics */ | 466 | /* Program the FM voice characteristics */ |
467 | for (i = 0; i < (instr_4op ? 4 : 2); i++) { | 467 | for (i = 0; i < (instr_4op ? 4 : 2); i++) { |
468 | #ifdef DEBUG_MIDI | 468 | #ifdef DEBUG_MIDI |
469 | snd_printk(" --> programming operator %i\n", i); | 469 | snd_printk(KERN_DEBUG " --> programming operator %i\n", i); |
470 | #endif | 470 | #endif |
471 | op_offset = snd_opl3_regmap[voice_offset][i]; | 471 | op_offset = snd_opl3_regmap[voice_offset][i]; |
472 | 472 | ||
@@ -546,7 +546,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) | |||
546 | blocknum |= OPL3_KEYON_BIT; | 546 | blocknum |= OPL3_KEYON_BIT; |
547 | 547 | ||
548 | #ifdef DEBUG_MIDI | 548 | #ifdef DEBUG_MIDI |
549 | snd_printk(" --> trigger voice %i\n", voice); | 549 | snd_printk(KERN_DEBUG " --> trigger voice %i\n", voice); |
550 | #endif | 550 | #endif |
551 | /* Set OPL3 KEYON_BLOCK register of requested voice */ | 551 | /* Set OPL3 KEYON_BLOCK register of requested voice */ |
552 | opl3_reg = reg_side | (OPL3_REG_KEYON_BLOCK + voice_offset); | 552 | opl3_reg = reg_side | (OPL3_REG_KEYON_BLOCK + voice_offset); |
@@ -602,7 +602,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) | |||
602 | prg = extra_prg - 1; | 602 | prg = extra_prg - 1; |
603 | } | 603 | } |
604 | #ifdef DEBUG_MIDI | 604 | #ifdef DEBUG_MIDI |
605 | snd_printk(" *** allocating extra program\n"); | 605 | snd_printk(KERN_DEBUG " *** allocating extra program\n"); |
606 | #endif | 606 | #endif |
607 | goto __extra_prg; | 607 | goto __extra_prg; |
608 | } | 608 | } |
@@ -633,7 +633,7 @@ static void snd_opl3_kill_voice(struct snd_opl3 *opl3, int voice) | |||
633 | 633 | ||
634 | /* kill voice */ | 634 | /* kill voice */ |
635 | #ifdef DEBUG_MIDI | 635 | #ifdef DEBUG_MIDI |
636 | snd_printk(" --> kill voice %i\n", voice); | 636 | snd_printk(KERN_DEBUG " --> kill voice %i\n", voice); |
637 | #endif | 637 | #endif |
638 | opl3_reg = reg_side | (OPL3_REG_KEYON_BLOCK + voice_offset); | 638 | opl3_reg = reg_side | (OPL3_REG_KEYON_BLOCK + voice_offset); |
639 | /* clear Key ON bit */ | 639 | /* clear Key ON bit */ |
@@ -670,7 +670,7 @@ void snd_opl3_note_off(void *p, int note, int vel, struct snd_midi_channel *chan | |||
670 | opl3 = p; | 670 | opl3 = p; |
671 | 671 | ||
672 | #ifdef DEBUG_MIDI | 672 | #ifdef DEBUG_MIDI |
673 | snd_printk("Note off, ch %i, inst %i, note %i\n", | 673 | snd_printk(KERN_DEBUG "Note off, ch %i, inst %i, note %i\n", |
674 | chan->number, chan->midi_program, note); | 674 | chan->number, chan->midi_program, note); |
675 | #endif | 675 | #endif |
676 | 676 | ||
@@ -709,7 +709,7 @@ void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *cha | |||
709 | 709 | ||
710 | opl3 = p; | 710 | opl3 = p; |
711 | #ifdef DEBUG_MIDI | 711 | #ifdef DEBUG_MIDI |
712 | snd_printk("Key pressure, ch#: %i, inst#: %i\n", | 712 | snd_printk(KERN_DEBUG "Key pressure, ch#: %i, inst#: %i\n", |
713 | chan->number, chan->midi_program); | 713 | chan->number, chan->midi_program); |
714 | #endif | 714 | #endif |
715 | } | 715 | } |
@@ -723,7 +723,7 @@ void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan) | |||
723 | 723 | ||
724 | opl3 = p; | 724 | opl3 = p; |
725 | #ifdef DEBUG_MIDI | 725 | #ifdef DEBUG_MIDI |
726 | snd_printk("Terminate note, ch#: %i, inst#: %i\n", | 726 | snd_printk(KERN_DEBUG "Terminate note, ch#: %i, inst#: %i\n", |
727 | chan->number, chan->midi_program); | 727 | chan->number, chan->midi_program); |
728 | #endif | 728 | #endif |
729 | } | 729 | } |
@@ -812,7 +812,7 @@ void snd_opl3_control(void *p, int type, struct snd_midi_channel *chan) | |||
812 | 812 | ||
813 | opl3 = p; | 813 | opl3 = p; |
814 | #ifdef DEBUG_MIDI | 814 | #ifdef DEBUG_MIDI |
815 | snd_printk("Controller, TYPE = %i, ch#: %i, inst#: %i\n", | 815 | snd_printk(KERN_DEBUG "Controller, TYPE = %i, ch#: %i, inst#: %i\n", |
816 | type, chan->number, chan->midi_program); | 816 | type, chan->number, chan->midi_program); |
817 | #endif | 817 | #endif |
818 | 818 | ||
@@ -849,7 +849,7 @@ void snd_opl3_nrpn(void *p, struct snd_midi_channel *chan, | |||
849 | 849 | ||
850 | opl3 = p; | 850 | opl3 = p; |
851 | #ifdef DEBUG_MIDI | 851 | #ifdef DEBUG_MIDI |
852 | snd_printk("NRPN, ch#: %i, inst#: %i\n", | 852 | snd_printk(KERN_DEBUG "NRPN, ch#: %i, inst#: %i\n", |
853 | chan->number, chan->midi_program); | 853 | chan->number, chan->midi_program); |
854 | #endif | 854 | #endif |
855 | } | 855 | } |
@@ -864,6 +864,6 @@ void snd_opl3_sysex(void *p, unsigned char *buf, int len, | |||
864 | 864 | ||
865 | opl3 = p; | 865 | opl3 = p; |
866 | #ifdef DEBUG_MIDI | 866 | #ifdef DEBUG_MIDI |
867 | snd_printk("SYSEX\n"); | 867 | snd_printk(KERN_DEBUG "SYSEX\n"); |
868 | #endif | 868 | #endif |
869 | } | 869 | } |
diff --git a/sound/drivers/opl3/opl3_oss.c b/sound/drivers/opl3/opl3_oss.c index 9a2271dc046a..a54b1dc5cc78 100644 --- a/sound/drivers/opl3/opl3_oss.c +++ b/sound/drivers/opl3/opl3_oss.c | |||
@@ -220,14 +220,14 @@ static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, | |||
220 | return -EINVAL; | 220 | return -EINVAL; |
221 | 221 | ||
222 | if (count < (int)sizeof(sbi)) { | 222 | if (count < (int)sizeof(sbi)) { |
223 | snd_printk("FM Error: Patch record too short\n"); | 223 | snd_printk(KERN_ERR "FM Error: Patch record too short\n"); |
224 | return -EINVAL; | 224 | return -EINVAL; |
225 | } | 225 | } |
226 | if (copy_from_user(&sbi, buf, sizeof(sbi))) | 226 | if (copy_from_user(&sbi, buf, sizeof(sbi))) |
227 | return -EFAULT; | 227 | return -EFAULT; |
228 | 228 | ||
229 | if (sbi.channel < 0 || sbi.channel >= SBFM_MAXINSTR) { | 229 | if (sbi.channel < 0 || sbi.channel >= SBFM_MAXINSTR) { |
230 | snd_printk("FM Error: Invalid instrument number %d\n", | 230 | snd_printk(KERN_ERR "FM Error: Invalid instrument number %d\n", |
231 | sbi.channel); | 231 | sbi.channel); |
232 | return -EINVAL; | 232 | return -EINVAL; |
233 | } | 233 | } |
@@ -254,7 +254,9 @@ static int snd_opl3_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, | |||
254 | opl3 = arg->private_data; | 254 | opl3 = arg->private_data; |
255 | switch (cmd) { | 255 | switch (cmd) { |
256 | case SNDCTL_FM_LOAD_INSTR: | 256 | case SNDCTL_FM_LOAD_INSTR: |
257 | snd_printk("OPL3: Obsolete ioctl(SNDCTL_FM_LOAD_INSTR) used. Fix the program.\n"); | 257 | snd_printk(KERN_ERR "OPL3: " |
258 | "Obsolete ioctl(SNDCTL_FM_LOAD_INSTR) used. " | ||
259 | "Fix the program.\n"); | ||
258 | return -EINVAL; | 260 | return -EINVAL; |
259 | 261 | ||
260 | case SNDCTL_SYNTH_MEMAVL: | 262 | case SNDCTL_SYNTH_MEMAVL: |
diff --git a/sound/drivers/opl3/opl3_synth.c b/sound/drivers/opl3/opl3_synth.c index 962bb9c8b9c8..6d57b6441dec 100644 --- a/sound/drivers/opl3/opl3_synth.c +++ b/sound/drivers/opl3/opl3_synth.c | |||
@@ -168,7 +168,7 @@ int snd_opl3_ioctl(struct snd_hwdep * hw, struct file *file, | |||
168 | 168 | ||
169 | #ifdef CONFIG_SND_DEBUG | 169 | #ifdef CONFIG_SND_DEBUG |
170 | default: | 170 | default: |
171 | snd_printk("unknown IOCTL: 0x%x\n", cmd); | 171 | snd_printk(KERN_WARNING "unknown IOCTL: 0x%x\n", cmd); |
172 | #endif | 172 | #endif |
173 | } | 173 | } |
174 | return -ENOTTY; | 174 | return -ENOTTY; |
diff --git a/sound/drivers/pcsp/pcsp.c b/sound/drivers/pcsp/pcsp.c index a4049eb94d35..b60cef257b58 100644 --- a/sound/drivers/pcsp/pcsp.c +++ b/sound/drivers/pcsp/pcsp.c | |||
@@ -57,7 +57,7 @@ static int __devinit snd_pcsp_create(struct snd_card *card) | |||
57 | else | 57 | else |
58 | min_div = MAX_DIV; | 58 | min_div = MAX_DIV; |
59 | #if PCSP_DEBUG | 59 | #if PCSP_DEBUG |
60 | printk("PCSP: lpj=%li, min_div=%i, res=%li\n", | 60 | printk(KERN_DEBUG "PCSP: lpj=%li, min_div=%i, res=%li\n", |
61 | loops_per_jiffy, min_div, tp.tv_nsec); | 61 | loops_per_jiffy, min_div, tp.tv_nsec); |
62 | #endif | 62 | #endif |
63 | 63 | ||
@@ -98,9 +98,9 @@ static int __devinit snd_card_pcsp_probe(int devnum, struct device *dev) | |||
98 | hrtimer_init(&pcsp_chip.timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); | 98 | hrtimer_init(&pcsp_chip.timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); |
99 | pcsp_chip.timer.function = pcsp_do_timer; | 99 | pcsp_chip.timer.function = pcsp_do_timer; |
100 | 100 | ||
101 | card = snd_card_new(index, id, THIS_MODULE, 0); | 101 | err = snd_card_create(index, id, THIS_MODULE, 0, &card); |
102 | if (!card) | 102 | if (err < 0) |
103 | return -ENOMEM; | 103 | return err; |
104 | 104 | ||
105 | err = snd_pcsp_create(card); | 105 | err = snd_pcsp_create(card); |
106 | if (err < 0) { | 106 | if (err < 0) { |
diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c index b1c047ec19af..60158e2e0eaf 100644 --- a/sound/drivers/portman2x4.c +++ b/sound/drivers/portman2x4.c | |||
@@ -746,10 +746,10 @@ static int __devinit snd_portman_probe(struct platform_device *pdev) | |||
746 | if ((err = snd_portman_probe_port(p)) < 0) | 746 | if ((err = snd_portman_probe_port(p)) < 0) |
747 | return err; | 747 | return err; |
748 | 748 | ||
749 | card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); | 749 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); |
750 | if (card == NULL) { | 750 | if (err < 0) { |
751 | snd_printd("Cannot create card\n"); | 751 | snd_printd("Cannot create card\n"); |
752 | return -ENOMEM; | 752 | return err; |
753 | } | 753 | } |
754 | strcpy(card->driver, DRIVER_NAME); | 754 | strcpy(card->driver, DRIVER_NAME); |
755 | strcpy(card->shortname, CARD_NAME); | 755 | strcpy(card->shortname, CARD_NAME); |
diff --git a/sound/drivers/serial-u16550.c b/sound/drivers/serial-u16550.c index d8aab9da97c2..b2b6d50c9425 100644 --- a/sound/drivers/serial-u16550.c +++ b/sound/drivers/serial-u16550.c | |||
@@ -241,7 +241,8 @@ static void snd_uart16550_io_loop(struct snd_uart16550 * uart) | |||
241 | snd_rawmidi_receive(uart->midi_input[substream], &c, 1); | 241 | snd_rawmidi_receive(uart->midi_input[substream], &c, 1); |
242 | 242 | ||
243 | if (status & UART_LSR_OE) | 243 | if (status & UART_LSR_OE) |
244 | snd_printk("%s: Overrun on device at 0x%lx\n", | 244 | snd_printk(KERN_WARNING |
245 | "%s: Overrun on device at 0x%lx\n", | ||
245 | uart->rmidi->name, uart->base); | 246 | uart->rmidi->name, uart->base); |
246 | } | 247 | } |
247 | 248 | ||
@@ -636,7 +637,8 @@ static int snd_uart16550_output_byte(struct snd_uart16550 *uart, | |||
636 | } | 637 | } |
637 | } else { | 638 | } else { |
638 | if (!snd_uart16550_write_buffer(uart, midi_byte)) { | 639 | if (!snd_uart16550_write_buffer(uart, midi_byte)) { |
639 | snd_printk("%s: Buffer overrun on device at 0x%lx\n", | 640 | snd_printk(KERN_WARNING |
641 | "%s: Buffer overrun on device at 0x%lx\n", | ||
640 | uart->rmidi->name, uart->base); | 642 | uart->rmidi->name, uart->base); |
641 | return 0; | 643 | return 0; |
642 | } | 644 | } |
@@ -815,7 +817,8 @@ static int __devinit snd_uart16550_create(struct snd_card *card, | |||
815 | if (irq >= 0 && irq != SNDRV_AUTO_IRQ) { | 817 | if (irq >= 0 && irq != SNDRV_AUTO_IRQ) { |
816 | if (request_irq(irq, snd_uart16550_interrupt, | 818 | if (request_irq(irq, snd_uart16550_interrupt, |
817 | IRQF_DISABLED, "Serial MIDI", uart)) { | 819 | IRQF_DISABLED, "Serial MIDI", uart)) { |
818 | snd_printk("irq %d busy. Using Polling.\n", irq); | 820 | snd_printk(KERN_WARNING |
821 | "irq %d busy. Using Polling.\n", irq); | ||
819 | } else { | 822 | } else { |
820 | uart->irq = irq; | 823 | uart->irq = irq; |
821 | } | 824 | } |
@@ -919,26 +922,29 @@ static int __devinit snd_serial_probe(struct platform_device *devptr) | |||
919 | case SNDRV_SERIAL_GENERIC: | 922 | case SNDRV_SERIAL_GENERIC: |
920 | break; | 923 | break; |
921 | default: | 924 | default: |
922 | snd_printk("Adaptor type is out of range 0-%d (%d)\n", | 925 | snd_printk(KERN_ERR |
926 | "Adaptor type is out of range 0-%d (%d)\n", | ||
923 | SNDRV_SERIAL_MAX_ADAPTOR, adaptor[dev]); | 927 | SNDRV_SERIAL_MAX_ADAPTOR, adaptor[dev]); |
924 | return -ENODEV; | 928 | return -ENODEV; |
925 | } | 929 | } |
926 | 930 | ||
927 | if (outs[dev] < 1 || outs[dev] > SNDRV_SERIAL_MAX_OUTS) { | 931 | if (outs[dev] < 1 || outs[dev] > SNDRV_SERIAL_MAX_OUTS) { |
928 | snd_printk("Count of outputs is out of range 1-%d (%d)\n", | 932 | snd_printk(KERN_ERR |
933 | "Count of outputs is out of range 1-%d (%d)\n", | ||
929 | SNDRV_SERIAL_MAX_OUTS, outs[dev]); | 934 | SNDRV_SERIAL_MAX_OUTS, outs[dev]); |
930 | return -ENODEV; | 935 | return -ENODEV; |
931 | } | 936 | } |
932 | 937 | ||
933 | if (ins[dev] < 1 || ins[dev] > SNDRV_SERIAL_MAX_INS) { | 938 | if (ins[dev] < 1 || ins[dev] > SNDRV_SERIAL_MAX_INS) { |
934 | snd_printk("Count of inputs is out of range 1-%d (%d)\n", | 939 | snd_printk(KERN_ERR |
940 | "Count of inputs is out of range 1-%d (%d)\n", | ||
935 | SNDRV_SERIAL_MAX_INS, ins[dev]); | 941 | SNDRV_SERIAL_MAX_INS, ins[dev]); |
936 | return -ENODEV; | 942 | return -ENODEV; |
937 | } | 943 | } |
938 | 944 | ||
939 | card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); | 945 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); |
940 | if (card == NULL) | 946 | if (err < 0) |
941 | return -ENOMEM; | 947 | return err; |
942 | 948 | ||
943 | strcpy(card->driver, "Serial"); | 949 | strcpy(card->driver, "Serial"); |
944 | strcpy(card->shortname, "Serial MIDI (UART16550A)"); | 950 | strcpy(card->shortname, "Serial MIDI (UART16550A)"); |
diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c index f79e3614079d..0e631c3221e3 100644 --- a/sound/drivers/virmidi.c +++ b/sound/drivers/virmidi.c | |||
@@ -90,15 +90,17 @@ static int __devinit snd_virmidi_probe(struct platform_device *devptr) | |||
90 | int idx, err; | 90 | int idx, err; |
91 | int dev = devptr->id; | 91 | int dev = devptr->id; |
92 | 92 | ||
93 | card = snd_card_new(index[dev], id[dev], THIS_MODULE, | 93 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, |
94 | sizeof(struct snd_card_virmidi)); | 94 | sizeof(struct snd_card_virmidi), &card); |
95 | if (card == NULL) | 95 | if (err < 0) |
96 | return -ENOMEM; | 96 | return err; |
97 | vmidi = (struct snd_card_virmidi *)card->private_data; | 97 | vmidi = (struct snd_card_virmidi *)card->private_data; |
98 | vmidi->card = card; | 98 | vmidi->card = card; |
99 | 99 | ||
100 | if (midi_devs[dev] > MAX_MIDI_DEVICES) { | 100 | if (midi_devs[dev] > MAX_MIDI_DEVICES) { |
101 | snd_printk("too much midi devices for virmidi %d: force to use %d\n", dev, MAX_MIDI_DEVICES); | 101 | snd_printk(KERN_WARNING |
102 | "too much midi devices for virmidi %d: " | ||
103 | "force to use %d\n", dev, MAX_MIDI_DEVICES); | ||
102 | midi_devs[dev] = MAX_MIDI_DEVICES; | 104 | midi_devs[dev] = MAX_MIDI_DEVICES; |
103 | } | 105 | } |
104 | for (idx = 0; idx < midi_devs[dev]; idx++) { | 106 | for (idx = 0; idx < midi_devs[dev]; idx++) { |
diff --git a/sound/drivers/vx/vx_core.c b/sound/drivers/vx/vx_core.c index 14e3354be43a..19c6e376c7c7 100644 --- a/sound/drivers/vx/vx_core.c +++ b/sound/drivers/vx/vx_core.c | |||
@@ -688,7 +688,8 @@ int snd_vx_dsp_load(struct vx_core *chip, const struct firmware *dsp) | |||
688 | image = dsp->data + i; | 688 | image = dsp->data + i; |
689 | /* Wait DSP ready for a new read */ | 689 | /* Wait DSP ready for a new read */ |
690 | if ((err = vx_wait_isr_bit(chip, ISR_TX_EMPTY)) < 0) { | 690 | if ((err = vx_wait_isr_bit(chip, ISR_TX_EMPTY)) < 0) { |
691 | printk("dsp loading error at position %d\n", i); | 691 | printk(KERN_ERR |
692 | "dsp loading error at position %d\n", i); | ||
692 | return err; | 693 | return err; |
693 | } | 694 | } |
694 | cptr = image; | 695 | cptr = image; |
diff --git a/sound/drivers/vx/vx_hwdep.c b/sound/drivers/vx/vx_hwdep.c index 8d6362e2d4c9..46df8817c18f 100644 --- a/sound/drivers/vx/vx_hwdep.c +++ b/sound/drivers/vx/vx_hwdep.c | |||
@@ -119,16 +119,6 @@ void snd_vx_free_firmware(struct vx_core *chip) | |||
119 | 119 | ||
120 | #else /* old style firmware loading */ | 120 | #else /* old style firmware loading */ |
121 | 121 | ||
122 | static int vx_hwdep_open(struct snd_hwdep *hw, struct file *file) | ||
123 | { | ||
124 | return 0; | ||
125 | } | ||
126 | |||
127 | static int vx_hwdep_release(struct snd_hwdep *hw, struct file *file) | ||
128 | { | ||
129 | return 0; | ||
130 | } | ||
131 | |||
132 | static int vx_hwdep_dsp_status(struct snd_hwdep *hw, | 122 | static int vx_hwdep_dsp_status(struct snd_hwdep *hw, |
133 | struct snd_hwdep_dsp_status *info) | 123 | struct snd_hwdep_dsp_status *info) |
134 | { | 124 | { |
@@ -243,8 +233,6 @@ int snd_vx_setup_firmware(struct vx_core *chip) | |||
243 | 233 | ||
244 | hw->iface = SNDRV_HWDEP_IFACE_VX; | 234 | hw->iface = SNDRV_HWDEP_IFACE_VX; |
245 | hw->private_data = chip; | 235 | hw->private_data = chip; |
246 | hw->ops.open = vx_hwdep_open; | ||
247 | hw->ops.release = vx_hwdep_release; | ||
248 | hw->ops.dsp_status = vx_hwdep_dsp_status; | 236 | hw->ops.dsp_status = vx_hwdep_dsp_status; |
249 | hw->ops.dsp_load = vx_hwdep_dsp_load; | 237 | hw->ops.dsp_load = vx_hwdep_dsp_load; |
250 | hw->exclusive = 1; | 238 | hw->exclusive = 1; |
diff --git a/sound/drivers/vx/vx_uer.c b/sound/drivers/vx/vx_uer.c index 0e1ba9b47904..b0560fec6bba 100644 --- a/sound/drivers/vx/vx_uer.c +++ b/sound/drivers/vx/vx_uer.c | |||
@@ -103,7 +103,7 @@ static void vx_write_one_cbit(struct vx_core *chip, int index, int val) | |||
103 | * returns the frequency of UER, or 0 if not sync, | 103 | * returns the frequency of UER, or 0 if not sync, |
104 | * or a negative error code. | 104 | * or a negative error code. |
105 | */ | 105 | */ |
106 | static int vx_read_uer_status(struct vx_core *chip, int *mode) | 106 | static int vx_read_uer_status(struct vx_core *chip, unsigned int *mode) |
107 | { | 107 | { |
108 | int val, freq; | 108 | int val, freq; |
109 | 109 | ||