Searched refs:pitch (Results 1 – 12 of 12) sorted by relevance
| /sound/drivers/opl4/ |
| A D | opl4_synth.c | 423 int note, pitch, octave; in snd_opl4_update_pitch() local 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() 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() 440 octave = pitch / 0x600 - 8; in snd_opl4_update_pitch() 441 pitch = snd_opl4_pitch_map[pitch % 0x600]; in snd_opl4_update_pitch() [all …]
|
| /sound/pci/ctxfi/ |
| A D | ctatc.c | 194 unsigned int pitch; in atc_get_pitch() local 217 return pitch; in atc_get_pitch() 222 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom() 225 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom() 250 unsigned int pitch; in atc_pcm_playback_prepare() local 451 unsigned int pitch; member 461 unsigned int pitch; in setup_src_node_conf() local 470 conf[0].pitch = pitch; in setup_src_node_conf() 489 conf[0].pitch = pitch; in setup_src_node_conf() 511 unsigned int pitch; in atc_pcm_capture_get_resources() local [all …]
|
| A D | ctsrc.h | 66 int (*set_pitch)(struct src *src, unsigned int pitch);
|
| A D | cthardware.h | 104 int (*src_set_pitch)(void *blk, unsigned int pitch);
|
| A 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()
|
| A 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()
|
| A 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/core/oss/ |
| A 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 = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_src_frames() 227 res = DIV_ROUND_CLOSEST(frames << SHIFT, 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/emu10k1/ |
| A D | emu10k1_callback.c | 488 short pitch; in make_fmmod() local 492 pitch = (char)(vp->reg.parm.fmmod>>8); in make_fmmod() 495 pitch += (MOD_SENSE * modulation) / 1200; in make_fmmod() 496 LIMITVALUE(pitch, -128, 127); in make_fmmod() 497 return ((unsigned char)pitch << 8) | cutoff; in make_fmmod() 504 short pitch; in make_fm2frq2() local 508 pitch = (char)(vp->reg.parm.fm2frq2>>8); in make_fm2frq2() 511 pitch += (MOD_SENSE * modulation) / 1200; in make_fm2frq2() 512 LIMITVALUE(pitch, -128, 127); in make_fm2frq2() 513 return ((unsigned char)pitch << 8) | freq; in make_fm2frq2()
|
| /sound/isa/sb/ |
| A 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()
|
| A 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() 568 rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate); in emu8k_pcm_prepare()
|
| /sound/synth/emux/ |
| A 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()
|
Completed in 29 milliseconds