~ubuntu-branches/ubuntu/lucid/linux-rt/lucid

« back to all changes in this revision

Viewing changes to sound/core/seq/seq_midi_event.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-07-11 13:31:31 UTC
  • mfrom: (14.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090711133131-omdhleccno39rayr
Tags: 2.6.29.6-1.1
New upstream kernel and RT patchset release

Show diffs side-by-side

added added

removed removed

Lines of Context:
504
504
        if (dev->nostat && count < 12)
505
505
                return -ENOMEM;
506
506
        cmd = MIDI_CMD_CONTROL|(ev->data.control.channel & 0x0f);
507
 
        bytes[0] = ev->data.control.param & 0x007f;
508
 
        bytes[1] = (ev->data.control.param & 0x3f80) >> 7;
509
 
        bytes[2] = ev->data.control.value & 0x007f;
510
 
        bytes[3] = (ev->data.control.value & 0x3f80) >> 7;
 
507
        bytes[0] = (ev->data.control.param & 0x3f80) >> 7;
 
508
        bytes[1] = ev->data.control.param & 0x007f;
 
509
        bytes[2] = (ev->data.control.value & 0x3f80) >> 7;
 
510
        bytes[3] = ev->data.control.value & 0x007f;
511
511
        if (cmd != dev->lastcmd && !dev->nostat) {
512
512
                if (count < 9)
513
513
                        return -ENOMEM;