Lines Matching +full:816 +full:v
360 init_voice_info(&zp->v); in sf_zone_new()
440 zp->v.low == map.map_key && in load_map()
441 zp->v.start == map.src_instr && in load_map()
442 zp->v.end == map.src_bank && in load_map()
443 zp->v.fixkey == map.src_key) { in load_map()
466 zp->v.low = map.map_key; in load_map()
467 zp->v.high = map.map_key; in load_map()
469 zp->v.start = map.src_instr; in load_map()
470 zp->v.end = map.src_bank; in load_map()
471 zp->v.fixkey = map.src_key; in load_map()
472 zp->v.sf_id = sf->id; in load_map()
574 if (copy_from_user(&tmpzone.v, data, sizeof(tmpzone.v))) { in load_info()
578 data += sizeof(tmpzone.v); in load_info()
579 count -= sizeof(tmpzone.v); in load_info()
584 tmpzone.v.sf_id = sf->id; in load_info()
585 if (tmpzone.v.mode & SNDRV_SFNT_MODE_INIT_PARM) in load_info()
586 init_voice_parm(&tmpzone.v.parm); in load_info()
596 zone->v = tmpzone.v; in load_info()
599 zone->sample = set_sample(sf, &zone->v); in load_info()
667 avp->start += sample->v.start; in set_sample()
668 avp->end += sample->v.end; in set_sample()
669 avp->loopstart += sample->v.loopstart; in set_sample()
670 avp->loopend += sample->v.loopend; in set_sample()
673 avp->sample_mode = sample->v.mode_flags; in set_sample()
688 if (p->v.sample == sample_id) in find_sample()
771 sp->v = sample_info; in load_data()
772 sp->v.sf_id = sf->id; in load_data()
773 sp->v.dummy = 0; in load_data()
774 sp->v.truesize = 0; in load_data()
779 if (sp->v.size > 0) { in load_data()
788 sflist->mem_used += sp->v.truesize; in load_data()
829 int v; in snd_sf_linear_to_log() local
839 v = (log_tbl[s + 1] * low + log_tbl[s] * (0x100 - low)) >> 8; in snd_sf_linear_to_log()
840 v -= offset; in snd_sf_linear_to_log()
841 v = (v * ratio) >> 16; in snd_sf_linear_to_log()
842 v += (24 - bit) * ratio; in snd_sf_linear_to_log()
843 return v; in snd_sf_linear_to_log()
903 32767, 32767, 5989, 4235, 2994, 2518, 2117, 1780, 1497, 1373, 1259, 1154, 1058, 970, 890, 816,
1009 smp->v.sample = sample_id; in load_guspatch()
1010 smp->v.start = 0; in load_guspatch()
1011 smp->v.end = patch.len; in load_guspatch()
1012 smp->v.loopstart = patch.loop_start; in load_guspatch()
1013 smp->v.loopend = patch.loop_end; in load_guspatch()
1014 smp->v.size = patch.len; in load_guspatch()
1016 if (validate_sample_info(&smp->v) < 0) { in load_guspatch()
1022 smp->v.mode_flags = 0; in load_guspatch()
1024 smp->v.mode_flags |= SNDRV_SFNT_SAMPLE_8BITS; in load_guspatch()
1026 smp->v.mode_flags |= SNDRV_SFNT_SAMPLE_UNSIGNED; in load_guspatch()
1027 smp->v.mode_flags |= SNDRV_SFNT_SAMPLE_NO_BLANK; in load_guspatch()
1029 smp->v.mode_flags |= SNDRV_SFNT_SAMPLE_SINGLESHOT; in load_guspatch()
1031 smp->v.mode_flags |= SNDRV_SFNT_SAMPLE_BIDIR_LOOP; in load_guspatch()
1033 smp->v.mode_flags |= SNDRV_SFNT_SAMPLE_REVERSE_LOOP; in load_guspatch()
1037 smp->v.size /= 2; in load_guspatch()
1038 smp->v.end /= 2; in load_guspatch()
1039 smp->v.loopstart /= 2; in load_guspatch()
1040 smp->v.loopend /= 2; in load_guspatch()
1042 /*smp->v.loopend++;*/ in load_guspatch()
1044 smp->v.dummy = 0; in load_guspatch()
1045 smp->v.truesize = 0; in load_guspatch()
1046 smp->v.sf_id = sf->id; in load_guspatch()
1058 if (smp->v.size > 0) { in load_guspatch()
1071 sflist->mem_used += smp->v.truesize; in load_guspatch()
1073 zone->v.sample = sample_id; /* the last sample */ in load_guspatch()
1074 zone->v.rate_offset = calc_rate_offset(patch.base_freq); in load_guspatch()
1076 zone->v.root = note / 100; in load_guspatch()
1077 zone->v.tune = -(note % 100); in load_guspatch()
1078 zone->v.low = (freq_to_note(patch.low_note) + 99) / 100; in load_guspatch()
1079 zone->v.high = freq_to_note(patch.high_note) / 100; in load_guspatch()
1081 zone->v.pan = (patch.panning + 128) / 2; in load_guspatch()
1085 (int)patch.base_freq, zone->v.rate_offset, in load_guspatch()
1086 zone->v.root, zone->v.tune, zone->v.low, zone->v.high); in load_guspatch()
1110 zone->v.parm.volatkhld = in load_guspatch()
1113 zone->v.parm.voldcysus = (calc_gus_sustain(patch.env_offset[2]) << 8) | in load_guspatch()
1115 zone->v.parm.volrelease = 0x8000 | snd_sf_calc_parm_decay(release); in load_guspatch()
1116 zone->v.attenuation = calc_gus_attenuation(patch.env_offset[0]); in load_guspatch()
1120 zone->v.parm.volatkhld, in load_guspatch()
1121 zone->v.parm.voldcysus, in load_guspatch()
1122 zone->v.parm.volrelease, in load_guspatch()
1123 zone->v.attenuation); in load_guspatch()
1129 zone->v.parm.volrelease = 0x807f; in load_guspatch()
1135 zone->v.parm.tremfrq = ((patch.tremolo_depth / 2) << 8) | rate; in load_guspatch()
1140 zone->v.parm.fm2frq2 = ((patch.vibrato_depth / 6) << 8) | rate; in load_guspatch()
1145 if (!(smp->v.mode_flags & SNDRV_SFNT_SAMPLE_SINGLESHOT)) in load_guspatch()
1146 zone->v.mode = SNDRV_SFNT_MODE_LOOPING; in load_guspatch()
1148 zone->v.mode = 0; in load_guspatch()
1155 zone->v.sf_id = sf->id; in load_guspatch()
1157 zone->sample = set_sample(sf, &zone->v); in load_guspatch()
1200 cur->sample = set_sample(sf, &cur->v); in rebuild_presets()
1220 zone = search_first_zone(sflist, cur->bank, cur->instr, cur->v.low); in add_preset()
1221 if (zone && zone->v.sf_id != cur->v.sf_id) { in add_preset()
1236 index = get_index(cur->bank, cur->instr, cur->v.low); in add_preset()
1253 index = get_index(zp->bank, zp->instr, zp->v.low); in delete_preset()
1339 if (*notep >= zp->v.low && *notep <= zp->v.high && in search_zones()
1340 vel >= zp->v.vellow && vel <= zp->v.velhigh) { in search_zones()
1343 int key = zp->v.fixkey; in search_zones()
1344 preset = zp->v.start; in search_zones()
1345 bank = zp->v.end; in search_zones()
1526 sflist->mem_used -= sp->v.truesize; in snd_soundfont_remove_unlocked()