Changeset 77 for GPL/trunk/alsa-kernel/synth/emux/soundfont.c
- Timestamp:
- Jul 23, 2006, 11:54:27 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/synth/emux/soundfont.c
r34 r77 195 195 break; 196 196 case SNDRV_SFNT_REMOVE_INFO: 197 198 if (sflist->currsf) {199 200 201 202 203 204 205 206 207 208 209 210 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; 211 211 } 212 212 unlock_preset(sflist);
Note:
See TracChangeset
for help on using the changeset viewer.