• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/sound/drivers/opl3/

Lines Matching defs:patch

240  * load a patch, obviously.
245 * name is the name string of the patch.
256 struct fm_patch *patch;
259 patch = snd_opl3_find_patch(opl3, prog, bank, 1);
260 if (!patch)
263 patch->type = type;
266 patch->inst.op[i].am_vib = data[AM_VIB + i];
267 patch->inst.op[i].ksl_level = data[KSL_LEVEL + i];
268 patch->inst.op[i].attack_decay = data[ATTACK_DECAY + i];
269 patch->inst.op[i].sustain_release = data[SUSTAIN_RELEASE + i];
270 patch->inst.op[i].wave_select = data[WAVE_SELECT + i];
272 patch->inst.feedback_connection[0] = data[CONNECTION];
276 patch->inst.op[i+2].am_vib =
278 patch->inst.op[i+2].ksl_level =
280 patch->inst.op[i+2].attack_decay =
282 patch->inst.op[i+2].sustain_release =
284 patch->inst.op[i+2].wave_select =
287 patch->inst.feedback_connection[1] =
292 patch->inst.echo_delay = ext[0];
293 patch->inst.echo_atten = ext[1];
294 patch->inst.chorus_spread = ext[2];
295 patch->inst.trnsps = ext[3];
296 patch->inst.fix_dur = ext[4];
297 patch->inst.modes = ext[5];
298 patch->inst.fix_key = ext[6];
302 strlcpy(patch->name, name, sizeof(patch->name));
309 * find a patch with the given program and bank numbers, returns its pointer
310 * if no matching patch is found and create_patch is set, it creates a
311 * new patch object.
318 struct fm_patch *patch;
320 for (patch = opl3->patch_table[key]; patch; patch = patch->next) {
321 if (patch->prog == prog && patch->bank == bank)
322 return patch;
327 patch = kzalloc(sizeof(*patch), GFP_KERNEL);
328 if (!patch)
330 patch->prog = prog;
331 patch->bank = bank;
332 patch->next = opl3->patch_table[key];
333 opl3->patch_table[key] = patch;
334 return patch;
345 struct fm_patch *patch, *next;
346 for (patch = opl3->patch_table[i]; patch; patch = next) {
347 next = patch->next;
348 kfree(patch);