Ignore:
Timestamp:
May 9, 2009, 11:45:26 AM (17 years ago)
Author:
Paul Smedley
Message:

Update alsa-kernel to ALSA 1.0.20 level

Location:
GPL/trunk/alsa-kernel/synth/emux
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/synth/emux/emux_hwdep.c

    r305 r426  
    2424#include <asm/uaccess.h>
    2525#include "emux_voice.h"
    26 
    27 /*
    28  * open the hwdep device
    29  */
    30 static int
    31 snd_emux_hwdep_open(struct snd_hwdep *hw, struct file *file)
    32 {
    33         return 0;
    34 }
    35 
    36 
    37 /*
    38  * close the device
    39  */
    40 static int
    41 snd_emux_hwdep_release(struct snd_hwdep *hw, struct file *file)
    42 {
    43         return 0;
    44 }
    4526
    4627
     
    147128        strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME);
    148129        hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE;
    149         hw->ops.open = snd_emux_hwdep_open;
    150         hw->ops.release = snd_emux_hwdep_release;
    151130        hw->ops.ioctl = snd_emux_hwdep_ioctl;
    152131        hw->exclusive = 1;
  • GPL/trunk/alsa-kernel/synth/emux/emux_oss.c

    r399 r426  
    133133                                 1, &callback);
    134134        if (p == NULL) {
    135                 snd_printk("can't create port\n");
     135                snd_printk(KERN_ERR "can't create port\n");
    136136                snd_emux_dec_count(emu);
    137137                mutex_unlock(&emu->register_mutex);
  • GPL/trunk/alsa-kernel/synth/emux/emux_seq.c

    r399 r426  
    7575                                                   "%s WaveTable", emu->name);
    7676        if (emu->client < 0) {
    77                 snd_printk("can't create client\n");
     77                snd_printk(KERN_ERR "can't create client\n");
    7878                return -ENODEV;
    7979        }
    8080
    8181        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");
    8383                emu->num_ports = 1;
    8484        } else if (emu->num_ports >= SNDRV_EMUX_MAX_PORTS) {
    85                 snd_printk("too many ports."
     85                snd_printk(KERN_WARNING "too many ports."
    8686                           "limited max. ports %d\n", SNDRV_EMUX_MAX_PORTS);
    8787                emu->num_ports = SNDRV_EMUX_MAX_PORTS;
     
    101101                                         0, &pinfo);
    102102                if (p == NULL) {
    103                         snd_printk("can't create port\n");
     103                        snd_printk(KERN_ERR "can't create port\n");
    104104                        return -ENOMEM;
    105105                }
     
    148148        /* Allocate structures for this channel */
    149149        if ((p = kzalloc(sizeof(*p), GFP_KERNEL)) == NULL) {
    150                 snd_printk("no memory\n");
     150                snd_printk(KERN_ERR "no memory\n");
    151151                return NULL;
    152152        }
    153153        p->chset.channels = kcalloc(max_channels, sizeof(struct snd_midi_channel), GFP_KERNEL);
    154154        if (p->chset.channels == NULL) {
    155                 snd_printk("no memory\n");
     155                snd_printk(KERN_ERR "no memory\n");
    156156                kfree(p);
    157157                return NULL;
     
    377377                }
    378378                emu->vmidi[i] = rmidi;
    379                 //snd_printk("virmidi %d ok\n", i);
     379                /* snd_printk(KERN_DEBUG "virmidi %d ok\n", i); */
    380380        }
    381381        return 0;
    382382
    383383__error:
    384         //snd_printk("error init..\n");
     384        /* snd_printk(KERN_DEBUG "error init..\n"); */
    385385        snd_emux_delete_virmidi(emu);
    386386        return -ENOMEM;
  • GPL/trunk/alsa-kernel/synth/emux/emux_synth.c

    r399 r426  
    957957                emu->voices[voice].state = SNDRV_EMUX_ST_LOCKED;
    958958        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",
    960961                           voice, emu->voices[voice].state);
    961962        spin_unlock_irqrestore(&emu->voice_lock, flags);
     
    974975                emu->voices[voice].state = SNDRV_EMUX_ST_OFF;
    975976        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",
    977979                           voice, emu->voices[voice].state);
    978980        spin_unlock_irqrestore(&emu->voice_lock, flags);
  • GPL/trunk/alsa-kernel/synth/emux/soundfont.c

    r305 r426  
    134134
    135135        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);
    137137                return -EINVAL;
    138138        }
     
    144144
    145145        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);
    147147                return -EINVAL;
    148148        }
    149149        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);
    151152                return -EINVAL;
    152153        }
    153154        if (patch.len < 0) {
    154                 snd_printk("poor length %d\n", patch.len);
     155                snd_printk(KERN_ERR "poor length %d\n", patch.len);
    155156                return -EINVAL;
    156157        }
     
    196197                /* patch must be opened */
    197198                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");
    199201                        rc = -EINVAL;
    200202                } else {
     
    532534
    533535        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");
    535537                return -EINVAL;
    536538        }
     
    542544
    543545        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);
    545548                return -EINVAL;
    546549        }
    547550
    548551        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",
    550554                       count, hdr.nvoices);
    551555                return -EINVAL;
     
    953957
    954958        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);
    956960                return -EINVAL;
    957961        }
     
    10351039        zone->v.pan = (patch.panning + 128) / 2;
    10361040#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",
    10381043                   (int)patch.base_freq, zone->v.rate_offset,
    10391044                   zone->v.root, zone->v.tune, zone->v.low, zone->v.high);
     
    10691074                zone->v.attenuation = calc_gus_attenuation(patch.env_offset[0]);
    10701075#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",
    10721078                           zone->v.parm.volatkhld,
    10731079                           zone->v.parm.voldcysus,
Note: See TracChangeset for help on using the changeset viewer.