Home
last modified time | relevance | path

Searched refs:pitch (Results 1 – 13 of 13) sorted by relevance

/sound/drivers/opl4/
Dopl4_synth.c423 int note, pitch, octave; in snd_opl4_update_pitch() local
430 pitch = ((note - 60) << 7) * voice->sound->key_scaling / 100 + (60 << 7); in snd_opl4_update_pitch()
431 pitch += voice->sound->pitch_offset; in snd_opl4_update_pitch()
433 pitch += chan->gm_rpn_coarse_tuning; in snd_opl4_update_pitch()
434 pitch += chan->gm_rpn_fine_tuning >> 7; in snd_opl4_update_pitch()
435 pitch += chan->midi_pitchbend * chan->gm_rpn_pitch_bend_range / 0x2000; in snd_opl4_update_pitch()
436 if (pitch < 0) in snd_opl4_update_pitch()
437 pitch = 0; in snd_opl4_update_pitch()
438 else if (pitch >= 0x6000) in snd_opl4_update_pitch()
439 pitch = 0x5fff; in snd_opl4_update_pitch()
[all …]
/sound/core/oss/
Drate.c46 unsigned int pitch; member
114 pos += data->pitch; in resample_expand()
174 pos += data->pitch; in resample_shrink()
194 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames()
196 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_src_frames()
227 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_dst_frames()
229 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_dst_frames()
333 data->pitch = ((src_format->rate << SHIFT) + (dst_format->rate >> 1)) / dst_format->rate; in snd_pcm_plugin_build_rate()
336 data->pitch = ((dst_format->rate << SHIFT) + (src_format->rate >> 1)) / src_format->rate; in snd_pcm_plugin_build_rate()
/sound/pci/ctxfi/
Dctatc.c195 unsigned int pitch; in atc_get_pitch() local
199 pitch = (input_rate / output_rate) << 24; in atc_get_pitch()
215 pitch |= input_rate; in atc_get_pitch()
218 return pitch; in atc_get_pitch()
221 static int select_rom(unsigned int pitch) in select_rom() argument
223 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom()
226 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom()
229 } else if (pitch == 0x02000000) { in select_rom()
232 } else if (pitch <= 0x08000000) { in select_rom()
251 unsigned int pitch; in atc_pcm_playback_prepare() local
[all …]
Dctsrc.h66 int (*set_pitch)(struct src *src, unsigned int pitch);
Dcthardware.h103 int (*src_set_pitch)(void *blk, unsigned int pitch);
Dctsrc.c154 static int src_set_pitch(struct src *src, unsigned int pitch) in src_set_pitch() argument
159 hw->src_set_pitch(src->rsc.ctrl_blk, pitch); in src_set_pitch()
Dcthw20k1.c320 static int src_set_pitch(void *blk, unsigned int pitch) in src_set_pitch() argument
324 set_field(&ctl->mpr, MPRLH_PITCH, pitch); in src_set_pitch()
Dcthw20k2.c320 static int src_set_pitch(void *blk, unsigned int pitch) in src_set_pitch() argument
324 set_field(&ctl->mpr, MPRLH_PITCH, pitch); in src_set_pitch()
/sound/isa/sb/
Demu8000_callback.c373 short pitch; in set_fmmod() local
377 pitch = (char)(vp->reg.parm.fmmod>>8); in set_fmmod()
380 pitch += (MOD_SENSE * modulation) / 1200; in set_fmmod()
381 LIMITVALUE(pitch, -128, 127); in set_fmmod()
382 fmmod = ((unsigned char)pitch<<8) | cutoff; in set_fmmod()
398 short pitch; in set_fm2frq2() local
402 pitch = (char)(vp->reg.parm.fm2frq2>>8); in set_fm2frq2()
405 pitch += (MOD_SENSE * modulation) / 1200; in set_fm2frq2()
406 LIMITVALUE(pitch, -128, 127); in set_fm2frq2()
407 fm2frq2 = ((unsigned char)pitch<<8) | freq; in set_fm2frq2()
Demu8000_pcm.c49 unsigned int pitch; member
255 static int calc_pitch_target(int pitch) in calc_pitch_target() argument
257 int ptarget = 1 << (pitch >> 12); in calc_pitch_target()
258 if (pitch & 0x800) ptarget += (ptarget * 0x102e) / 0x2710; in calc_pitch_target()
259 if (pitch & 0x400) ptarget += (ptarget * 0x764) / 0x2710; in calc_pitch_target()
260 if (pitch & 0x200) ptarget += (ptarget * 0x389) / 0x2710; in calc_pitch_target()
282 EMU8000_IP_WRITE(hw, ch, rec->pitch); in setup_voice()
327 int pt = calc_pitch_target(rec->pitch); in start_voice()
609 rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate); in emu8k_pcm_prepare()
/sound/pci/emu10k1/
Demu10k1_callback.c498 short pitch; in set_fmmod() local
502 pitch = (char)(vp->reg.parm.fmmod>>8); in set_fmmod()
505 pitch += (MOD_SENSE * modulation) / 1200; in set_fmmod()
506 LIMITVALUE(pitch, -128, 127); in set_fmmod()
507 fmmod = ((unsigned char)pitch<<8) | cutoff; in set_fmmod()
516 short pitch; in set_fm2frq2() local
520 pitch = (char)(vp->reg.parm.fm2frq2>>8); in set_fm2frq2()
523 pitch += (MOD_SENSE * modulation) / 1200; in set_fm2frq2()
524 LIMITVALUE(pitch, -128, 127); in set_fm2frq2()
525 fm2frq2 = ((unsigned char)pitch<<8) | freq; in set_fm2frq2()
Demupcm.c694 unsigned int voice, pitch, pitch_target; in snd_emu10k1_playback_trigger_voice() local
702 pitch = snd_emu10k1_rate_to_pitch(runtime->rate) >> 8; in snd_emu10k1_playback_trigger_voice()
710 snd_emu10k1_ptr_write(emu, IP, voice, pitch); in snd_emu10k1_playback_trigger_voice()
/sound/synth/emux/
Demux_synth.c549 int pitch; in setup_voice() local
572 pitch = (HI_BYTE(parm->pefe) << 4) + vp->apitch; in setup_voice()
573 if (pitch > 0xffff) in setup_voice()
574 pitch = 0xffff; in setup_voice()
582 pitch = vp->apitch; in setup_voice()
586 if (pitch != 0xffff) { in setup_voice()
587 vp->ptarget = 1 << (pitch >> 12); in setup_voice()
588 if (pitch & 0x800) vp->ptarget += (vp->ptarget*0x102e)/0x2710; in setup_voice()
589 if (pitch & 0x400) vp->ptarget += (vp->ptarget*0x764)/0x2710; in setup_voice()
590 if (pitch & 0x200) vp->ptarget += (vp->ptarget*0x389)/0x2710; in setup_voice()