Ignore:
Timestamp:
Jul 23, 2006, 11:54:27 AM (19 years ago)
Author:
vladest
Message:

Provide sources to latest exist binary. See changelog for changes

File:
1 edited

Legend:

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

    r34 r77  
    195195                break;
    196196        case SNDRV_SFNT_REMOVE_INFO:
    197                 /* patch must be opened */
    198                 if (sflist->currsf) {
    199                         snd_printk("soundfont: remove_info: patch not opened\n");
    200                         rc = -EINVAL;
    201                 } else {
    202                         int bank, instr;
    203                         bank = ((unsigned short)patch.optarg >> 8) & 0xff;
    204                         instr = (unsigned short)patch.optarg & 0xff;
    205                         if (! remove_info(sflist, sflist->currsf, bank, instr))
    206                                 rc = -EINVAL;
    207                         else
    208                                 rc = 0;
    209                 }
    210                 break;
     197            /* patch must be opened */
     198            if (!sflist->currsf) {
     199                snd_printk("soundfont: remove_info: patch not opened\n");
     200                rc = -EINVAL;
     201            } else {
     202                int bank, instr;
     203                bank = ((unsigned short)patch.optarg >> 8) & 0xff;
     204                instr = (unsigned short)patch.optarg & 0xff;
     205                if (! remove_info(sflist, sflist->currsf, bank, instr))
     206                    rc = -EINVAL;
     207                else
     208                    rc = 0;
     209            }
     210            break;
    211211        }
    212212        unlock_preset(sflist);
Note: See TracChangeset for help on using the changeset viewer.