tag | line | file | source code |
patch | 1054 | drivers/sound/gus_wave.c | int is16bits, samplep, patch, pan; |
patch | 1077 | drivers/sound/gus_wave.c | if ((patch = patch_map[voice]) == -1) |
patch | 1082 | drivers/sound/gus_wave.c | if ((samplep = patch_table[patch]) == -1) |
patch | 1117 | drivers/sound/gus_wave.c | printk ("GUS: Patch %d not defined for note %d\n", patch, note_num); |
patch | 1266 | drivers/sound/gus_wave.c | struct patch_info patch; |
patch | 1272 | drivers/sound/gus_wave.c | sizeof_patch = (long) &patch.data[0] - (long) &patch; /* Size of the header |
patch | 1300 | drivers/sound/gus_wave.c | COPY_FROM_USER (&((char *) &patch)[offs], addr, offs, sizeof_patch - offs); |
patch | 1302 | drivers/sound/gus_wave.c | instr = patch.instr_no; |
patch | 1310 | drivers/sound/gus_wave.c | if (count < patch.len) |
patch | 1313 | drivers/sound/gus_wave.c | count, patch.len); |
patch | 1314 | drivers/sound/gus_wave.c | patch.len = count; |
patch | 1317 | drivers/sound/gus_wave.c | if (patch.len <= 0 || patch.len > gus_mem_size) |
patch | 1319 | drivers/sound/gus_wave.c | printk ("GUS: Invalid sample length %lu\n", patch.len); |
patch | 1323 | drivers/sound/gus_wave.c | if (patch.mode & WAVE_LOOPING) |
patch | 1325 | drivers/sound/gus_wave.c | if (patch.loop_start < 0 || patch.loop_start >= patch.len) |
patch | 1331 | drivers/sound/gus_wave.c | if (patch.loop_end < patch.loop_start || patch.loop_end > patch.len) |
patch | 1342 | drivers/sound/gus_wave.c | if (patch.mode & WAVE_16_BITS) |
patch | 1347 | drivers/sound/gus_wave.c | if (patch.len >= GUS_BANK_SIZE) |
patch | 1349 | drivers/sound/gus_wave.c | printk ("GUS: Sample (16 bit) too long %lu\n", patch.len); |
patch | 1354 | drivers/sound/gus_wave.c | ((free_mem_ptr + patch.len) / GUS_BANK_SIZE)) |
patch | 1359 | drivers/sound/gus_wave.c | if ((tmp_mem + patch.len) > gus_mem_size) |
patch | 1366 | drivers/sound/gus_wave.c | if ((free_mem_ptr + patch.len) > gus_mem_size) |
patch | 1373 | drivers/sound/gus_wave.c | if (patch.mode & WAVE_ENVELOPES) |
patch | 1374 | drivers/sound/gus_wave.c | patch.mode &= ~WAVE_TREMOLO; |
patch | 1376 | drivers/sound/gus_wave.c | memcpy ((char *) &samples[free_sample], &patch, sizeof_patch); |
patch | 1389 | drivers/sound/gus_wave.c | left = patch.len; |
patch | 1422 | drivers/sound/gus_wave.c | if (patch.mode & WAVE_UNSIGNED) |
patch | 1424 | drivers/sound/gus_wave.c | if (!(patch.mode & WAVE_16_BITS) || (i & 0x01)) |
patch | 1467 | drivers/sound/gus_wave.c | if (patch.mode & WAVE_UNSIGNED) |
patch | 1469 | drivers/sound/gus_wave.c | if (patch.mode & WAVE_16_BITS) |
patch | 1498 | drivers/sound/gus_wave.c | free_mem_ptr += patch.len; |
patch | 257 | drivers/sound/soundcard.h | struct patch_info patch; |
patch | 710 | drivers/sound/soundcard.h | #define SEQ_SET_PATCH(dev, voice, patch) {_SEQ_NEEDBUF(8);\ |
patch | 715 | drivers/sound/soundcard.h | _seqbuf[_seqbufptr+4] = (patch);\ |
patch | 735 | drivers/sound/soundcard.h | #define SEQ_WRPATCH(patch, len) {if (_seqbufptr) seqbuf_dump();\ |
patch | 736 | drivers/sound/soundcard.h | if (write(seqfd, (char*)(patch), len)==-1) \ |