/sound/drivers/opl4/ |
D | opl4_synth.c | 423 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/ |
D | rate.c | 46 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/ |
D | ctatc.c | 198 unsigned int pitch; in atc_get_pitch() local 202 pitch = (input_rate / output_rate) << 24; in atc_get_pitch() 218 pitch |= input_rate; in atc_get_pitch() 221 return pitch; in atc_get_pitch() 224 static int select_rom(unsigned int pitch) in select_rom() argument 226 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom() 229 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom() 232 } else if (pitch == 0x02000000) { in select_rom() 235 } else if (pitch <= 0x08000000) { in select_rom() 254 unsigned int pitch; in atc_pcm_playback_prepare() local [all …]
|
D | ctsrc.h | 70 int (*set_pitch)(struct src *src, unsigned int pitch);
|
D | cthardware.h | 107 int (*src_set_pitch)(void *blk, unsigned int pitch);
|
D | ctsrc.c | 158 static int src_set_pitch(struct src *src, unsigned int pitch) in src_set_pitch() argument 163 hw->src_set_pitch(src->rsc.ctrl_blk, pitch); in src_set_pitch()
|
D | cthw20k2.c | 324 static int src_set_pitch(void *blk, unsigned int pitch) in src_set_pitch() argument 328 set_field(&ctl->mpr, MPRLH_PITCH, pitch); in src_set_pitch()
|
D | cthw20k1.c | 324 static int src_set_pitch(void *blk, unsigned int pitch) in src_set_pitch() argument 328 set_field(&ctl->mpr, MPRLH_PITCH, pitch); in src_set_pitch()
|
/sound/isa/sb/ |
D | emu8000_callback.c | 386 short pitch; in set_fmmod() local 390 pitch = (char)(vp->reg.parm.fmmod>>8); in set_fmmod() 393 pitch += (MOD_SENSE * modulation) / 1200; in set_fmmod() 394 LIMITVALUE(pitch, -128, 127); in set_fmmod() 395 fmmod = ((unsigned char)pitch<<8) | cutoff; in set_fmmod() 411 short pitch; in set_fm2frq2() local 415 pitch = (char)(vp->reg.parm.fm2frq2>>8); in set_fm2frq2() 418 pitch += (MOD_SENSE * modulation) / 1200; in set_fm2frq2() 419 LIMITVALUE(pitch, -128, 127); in set_fm2frq2() 420 fm2frq2 = ((unsigned char)pitch<<8) | freq; in set_fm2frq2()
|
D | emu8000_pcm.c | 60 unsigned int pitch; member 266 static int calc_pitch_target(int pitch) in calc_pitch_target() argument 268 int ptarget = 1 << (pitch >> 12); in calc_pitch_target() 269 if (pitch & 0x800) ptarget += (ptarget * 0x102e) / 0x2710; in calc_pitch_target() 270 if (pitch & 0x400) ptarget += (ptarget * 0x764) / 0x2710; in calc_pitch_target() 271 if (pitch & 0x200) ptarget += (ptarget * 0x389) / 0x2710; in calc_pitch_target() 293 EMU8000_IP_WRITE(hw, ch, rec->pitch); in setup_voice() 338 int pt = calc_pitch_target(rec->pitch); in start_voice() 615 rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate); in emu8k_pcm_prepare()
|
/sound/pci/emu10k1/ |
D | emu10k1_callback.c | 511 short pitch; in set_fmmod() local 515 pitch = (char)(vp->reg.parm.fmmod>>8); in set_fmmod() 518 pitch += (MOD_SENSE * modulation) / 1200; in set_fmmod() 519 LIMITVALUE(pitch, -128, 127); in set_fmmod() 520 fmmod = ((unsigned char)pitch<<8) | cutoff; in set_fmmod() 529 short pitch; in set_fm2frq2() local 533 pitch = (char)(vp->reg.parm.fm2frq2>>8); in set_fm2frq2() 536 pitch += (MOD_SENSE * modulation) / 1200; in set_fm2frq2() 537 LIMITVALUE(pitch, -128, 127); in set_fm2frq2() 538 fm2frq2 = ((unsigned char)pitch<<8) | freq; in set_fm2frq2()
|
D | emupcm.c | 701 unsigned int voice, pitch, pitch_target; in snd_emu10k1_playback_trigger_voice() local 709 pitch = snd_emu10k1_rate_to_pitch(runtime->rate) >> 8; in snd_emu10k1_playback_trigger_voice() 717 snd_emu10k1_ptr_write(emu, IP, voice, pitch); in snd_emu10k1_playback_trigger_voice()
|
/sound/synth/emux/ |
D | emux_synth.c | 563 int pitch; in setup_voice() local 586 pitch = (HI_BYTE(parm->pefe) << 4) + vp->apitch; in setup_voice() 587 if (pitch > 0xffff) in setup_voice() 588 pitch = 0xffff; in setup_voice() 596 pitch = vp->apitch; in setup_voice() 600 if (pitch != 0xffff) { in setup_voice() 601 vp->ptarget = 1 << (pitch >> 12); in setup_voice() 602 if (pitch & 0x800) vp->ptarget += (vp->ptarget*0x102e)/0x2710; in setup_voice() 603 if (pitch & 0x400) vp->ptarget += (vp->ptarget*0x764)/0x2710; in setup_voice() 604 if (pitch & 0x200) vp->ptarget += (vp->ptarget*0x389)/0x2710; in setup_voice()
|