Changeset 426 for GPL/trunk/alsa-kernel/synth
- Timestamp:
- May 9, 2009, 11:45:26 AM (17 years ago)
- Location:
- GPL/trunk/alsa-kernel/synth/emux
- Files:
-
- 5 edited
-
emux_hwdep.c (modified) (2 diffs)
-
emux_oss.c (modified) (1 diff)
-
emux_seq.c (modified) (4 diffs)
-
emux_synth.c (modified) (2 diffs)
-
soundfont.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/synth/emux/emux_hwdep.c
r305 r426 24 24 #include <asm/uaccess.h> 25 25 #include "emux_voice.h" 26 27 /*28 * open the hwdep device29 */30 static int31 snd_emux_hwdep_open(struct snd_hwdep *hw, struct file *file)32 {33 return 0;34 }35 36 37 /*38 * close the device39 */40 static int41 snd_emux_hwdep_release(struct snd_hwdep *hw, struct file *file)42 {43 return 0;44 }45 26 46 27 … … 147 128 strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME); 148 129 hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE; 149 hw->ops.open = snd_emux_hwdep_open;150 hw->ops.release = snd_emux_hwdep_release;151 130 hw->ops.ioctl = snd_emux_hwdep_ioctl; 152 131 hw->exclusive = 1; -
GPL/trunk/alsa-kernel/synth/emux/emux_oss.c
r399 r426 133 133 1, &callback); 134 134 if (p == NULL) { 135 snd_printk( "can't create port\n");135 snd_printk(KERN_ERR "can't create port\n"); 136 136 snd_emux_dec_count(emu); 137 137 mutex_unlock(&emu->register_mutex); -
GPL/trunk/alsa-kernel/synth/emux/emux_seq.c
r399 r426 75 75 "%s WaveTable", emu->name); 76 76 if (emu->client < 0) { 77 snd_printk( "can't create client\n");77 snd_printk(KERN_ERR "can't create client\n"); 78 78 return -ENODEV; 79 79 } 80 80 81 81 if (emu->num_ports < 0) { 82 snd_printk( "seqports must be greater than zero\n");82 snd_printk(KERN_WARNING "seqports must be greater than zero\n"); 83 83 emu->num_ports = 1; 84 84 } else if (emu->num_ports >= SNDRV_EMUX_MAX_PORTS) { 85 snd_printk( "too many ports."85 snd_printk(KERN_WARNING "too many ports." 86 86 "limited max. ports %d\n", SNDRV_EMUX_MAX_PORTS); 87 87 emu->num_ports = SNDRV_EMUX_MAX_PORTS; … … 101 101 0, &pinfo); 102 102 if (p == NULL) { 103 snd_printk( "can't create port\n");103 snd_printk(KERN_ERR "can't create port\n"); 104 104 return -ENOMEM; 105 105 } … … 148 148 /* Allocate structures for this channel */ 149 149 if ((p = kzalloc(sizeof(*p), GFP_KERNEL)) == NULL) { 150 snd_printk( "no memory\n");150 snd_printk(KERN_ERR "no memory\n"); 151 151 return NULL; 152 152 } 153 153 p->chset.channels = kcalloc(max_channels, sizeof(struct snd_midi_channel), GFP_KERNEL); 154 154 if (p->chset.channels == NULL) { 155 snd_printk( "no memory\n");155 snd_printk(KERN_ERR "no memory\n"); 156 156 kfree(p); 157 157 return NULL; … … 377 377 } 378 378 emu->vmidi[i] = rmidi; 379 / /snd_printk("virmidi %d ok\n", i);379 /* snd_printk(KERN_DEBUG "virmidi %d ok\n", i); */ 380 380 } 381 381 return 0; 382 382 383 383 __error: 384 / /snd_printk("error init..\n");384 /* snd_printk(KERN_DEBUG "error init..\n"); */ 385 385 snd_emux_delete_virmidi(emu); 386 386 return -ENOMEM; -
GPL/trunk/alsa-kernel/synth/emux/emux_synth.c
r399 r426 957 957 emu->voices[voice].state = SNDRV_EMUX_ST_LOCKED; 958 958 else 959 snd_printk("invalid voice for lock %d (state = %x)\n", 959 snd_printk(KERN_WARNING 960 "invalid voice for lock %d (state = %x)\n", 960 961 voice, emu->voices[voice].state); 961 962 spin_unlock_irqrestore(&emu->voice_lock, flags); … … 974 975 emu->voices[voice].state = SNDRV_EMUX_ST_OFF; 975 976 else 976 snd_printk("invalid voice for unlock %d (state = %x)\n", 977 snd_printk(KERN_WARNING 978 "invalid voice for unlock %d (state = %x)\n", 977 979 voice, emu->voices[voice].state); 978 980 spin_unlock_irqrestore(&emu->voice_lock, flags); -
GPL/trunk/alsa-kernel/synth/emux/soundfont.c
r305 r426 134 134 135 135 if (count < (long)sizeof(patch)) { 136 snd_printk( "patch record too small %ld\n", count);136 snd_printk(KERN_ERR "patch record too small %ld\n", count); 137 137 return -EINVAL; 138 138 } … … 144 144 145 145 if (patch.key != SNDRV_OSS_SOUNDFONT_PATCH) { 146 snd_printk( "'The wrong kind of patch'%x\n", patch.key);146 snd_printk(KERN_ERR "The wrong kind of patch %x\n", patch.key); 147 147 return -EINVAL; 148 148 } 149 149 if (count < patch.len) { 150 snd_printk("Patch too short %ld, need %d\n", count, patch.len); 150 snd_printk(KERN_ERR "Patch too short %ld, need %d\n", 151 count, patch.len); 151 152 return -EINVAL; 152 153 } 153 154 if (patch.len < 0) { 154 snd_printk( "poor length %d\n", patch.len);155 snd_printk(KERN_ERR "poor length %d\n", patch.len); 155 156 return -EINVAL; 156 157 } … … 196 197 /* patch must be opened */ 197 198 if (!sflist->currsf) { 198 snd_printk("soundfont: remove_info: patch not opened\n"); 199 snd_printk(KERN_ERR "soundfont: remove_info: " 200 "patch not opened\n"); 199 201 rc = -EINVAL; 200 202 } else { … … 532 534 533 535 if (count < (long)sizeof(hdr)) { 534 printk( "Soundfont error: invalid patch zone length\n");536 printk(KERN_ERR "Soundfont error: invalid patch zone length\n"); 535 537 return -EINVAL; 536 538 } … … 542 544 543 545 if (hdr.nvoices <= 0 || hdr.nvoices >= 100) { 544 printk("Soundfont error: Illegal voice number %d\n", hdr.nvoices); 546 printk(KERN_ERR "Soundfont error: Illegal voice number %d\n", 547 hdr.nvoices); 545 548 return -EINVAL; 546 549 } 547 550 548 551 if (count < (long)sizeof(struct soundfont_voice_info) * hdr.nvoices) { 549 printk("Soundfont Error: patch length(%ld) is smaller than nvoices(%d)\n", 552 printk(KERN_ERR "Soundfont Error: " 553 "patch length(%ld) is smaller than nvoices(%d)\n", 550 554 count, hdr.nvoices); 551 555 return -EINVAL; … … 953 957 954 958 if (count < (long)sizeof(patch)) { 955 snd_printk( "patch record too small %ld\n", count);959 snd_printk(KERN_ERR "patch record too small %ld\n", count); 956 960 return -EINVAL; 957 961 } … … 1035 1039 zone->v.pan = (patch.panning + 128) / 2; 1036 1040 #if 0 1037 snd_printk("gus: basefrq=%d (ofs=%d) root=%d,tune=%d, range:%d-%d\n", 1041 snd_printk(KERN_DEBUG 1042 "gus: basefrq=%d (ofs=%d) root=%d,tune=%d, range:%d-%d\n", 1038 1043 (int)patch.base_freq, zone->v.rate_offset, 1039 1044 zone->v.root, zone->v.tune, zone->v.low, zone->v.high); … … 1069 1074 zone->v.attenuation = calc_gus_attenuation(patch.env_offset[0]); 1070 1075 #if 0 1071 snd_printk("gus: atkhld=%x, dcysus=%x, volrel=%x, att=%d\n", 1076 snd_printk(KERN_DEBUG 1077 "gus: atkhld=%x, dcysus=%x, volrel=%x, att=%d\n", 1072 1078 zone->v.parm.volatkhld, 1073 1079 zone->v.parm.voldcysus,
Note:
See TracChangeset
for help on using the changeset viewer.
