/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 | 197 unsigned int pitch; in atc_get_pitch() local 201 pitch = (input_rate / output_rate) << 24; in atc_get_pitch() 217 pitch |= input_rate; in atc_get_pitch() 220 return pitch; in atc_get_pitch() 223 static int select_rom(unsigned int pitch) in select_rom() argument 225 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom() 228 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom() 231 } else if (pitch == 0x02000000) { in select_rom() 234 } else if (pitch <= 0x08000000) { in select_rom() 253 unsigned int pitch; in atc_pcm_playback_prepare() local [all …]
|
D | ctsrc.h | 66 int (*set_pitch)(struct src *src, unsigned int pitch);
|
D | cthardware.h | 104 int (*src_set_pitch)(void *blk, unsigned int pitch);
|
D | ctsrc.c | 154 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()
|
D | cthw20k1.c | 320 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()
|
D | cthw20k2.c | 320 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/ |
D | emu8000_callback.c | 373 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()
|
D | emu8000_pcm.c | 49 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/ |
D | emu10k1_callback.c | 498 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()
|
D | emupcm.c | 683 unsigned int voice, pitch, pitch_target; in snd_emu10k1_playback_trigger_voice() local 691 pitch = snd_emu10k1_rate_to_pitch(runtime->rate) >> 8; in snd_emu10k1_playback_trigger_voice() 699 snd_emu10k1_ptr_write(emu, IP, voice, pitch); in snd_emu10k1_playback_trigger_voice()
|
/sound/synth/emux/ |
D | emux_synth.c | 549 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()
|