• Home
  • Raw
  • Download

Lines Matching refs:hw

44     HWVoiceOut hw;  member
55 HWVoiceIn hw; member
90 HWVoiceOut *hw = &pa->hw; in qpa_thread_out() local
93 threshold = conf.divisor ? hw->samples / conf.divisor : 0; in qpa_thread_out()
117 rpos = hw->rpos; in qpa_thread_out()
125 int chunk = audio_MIN (to_mix, hw->samples - rpos); in qpa_thread_out()
126 struct st_sample *src = hw->mix_buf + rpos; in qpa_thread_out()
128 hw->clip (pa->pcm_buf, src, chunk); in qpa_thread_out()
131 chunk << hw->info.shift, &error) < 0) { in qpa_thread_out()
136 rpos = (rpos + chunk) % hw->samples; in qpa_thread_out()
154 static int qpa_run_out (HWVoiceOut *hw, int live) in qpa_run_out() argument
157 PAVoiceOut *pa = (PAVoiceOut *) hw; in qpa_run_out()
166 hw->rpos = pa->rpos; in qpa_run_out()
185 HWVoiceIn *hw = &pa->hw; in qpa_thread_in() local
188 threshold = conf.divisor ? hw->samples / conf.divisor : 0; in qpa_thread_in()
212 wpos = hw->wpos; in qpa_thread_in()
220 int chunk = audio_MIN (to_grab, hw->samples - wpos); in qpa_thread_in()
224 chunk << hw->info.shift, &error) < 0) { in qpa_thread_in()
229 hw->conv (hw->conv_buf + wpos, buf, chunk, &nominal_volume); in qpa_thread_in()
230 wpos = (wpos + chunk) % hw->samples; in qpa_thread_in()
248 static int qpa_run_in (HWVoiceIn *hw) in qpa_run_in() argument
251 PAVoiceIn *pa = (PAVoiceIn *) hw; in qpa_run_in()
257 live = audio_pcm_hw_get_live_in (hw); in qpa_run_in()
258 dead = hw->samples - live; in qpa_run_in()
262 hw->wpos = pa->wpos; in qpa_run_in()
325 static int qpa_init_out (HWVoiceOut *hw, struct audsettings *as) in qpa_init_out() argument
330 PAVoiceOut *pa = (PAVoiceOut *) hw; in qpa_init_out()
354 audio_pcm_init_info (&hw->info, &obt_as); in qpa_init_out()
355 hw->samples = conf.samples; in qpa_init_out()
356 pa->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in qpa_init_out()
359 hw->samples << hw->info.shift); in qpa_init_out()
363 if (audio_pt_init (&pa->pt, qpa_thread_out, hw, AUDIO_CAP, AUDIO_FUNC)) { in qpa_init_out()
379 static int qpa_init_in (HWVoiceIn *hw, struct audsettings *as) in qpa_init_in() argument
384 PAVoiceIn *pa = (PAVoiceIn *) hw; in qpa_init_in()
408 audio_pcm_init_info (&hw->info, &obt_as); in qpa_init_in()
409 hw->samples = conf.samples; in qpa_init_in()
410 pa->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in qpa_init_in()
413 hw->samples << hw->info.shift); in qpa_init_in()
417 if (audio_pt_init (&pa->pt, qpa_thread_in, hw, AUDIO_CAP, AUDIO_FUNC)) { in qpa_init_in()
433 static void qpa_fini_out (HWVoiceOut *hw) in qpa_fini_out() argument
436 PAVoiceOut *pa = (PAVoiceOut *) hw; in qpa_fini_out()
453 static void qpa_fini_in (HWVoiceIn *hw) in qpa_fini_in() argument
456 PAVoiceIn *pa = (PAVoiceIn *) hw; in qpa_fini_in()
473 static int qpa_ctl_out (HWVoiceOut *hw, int cmd, ...) in qpa_ctl_out() argument
475 (void) hw; in qpa_ctl_out()
480 static int qpa_ctl_in (HWVoiceIn *hw, int cmd, ...) in qpa_ctl_in() argument
482 (void) hw; in qpa_ctl_in()