Lines Matching refs:hw
32 HWVoiceOut hw; member
37 HWVoiceIn hw; member
41 static int no_run_out (HWVoiceOut *hw, int live) in no_run_out() argument
43 NoVoiceOut *no = (NoVoiceOut *) hw; in no_run_out()
51 bytes = muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); in no_run_out()
53 samples = bytes >> hw->info.shift; in no_run_out()
57 hw->rpos = (hw->rpos + decr) % hw->samples; in no_run_out()
66 static int no_init_out (HWVoiceOut *hw, struct audsettings *as) in no_init_out() argument
68 audio_pcm_init_info (&hw->info, as); in no_init_out()
69 hw->samples = 1024; in no_init_out()
73 static void no_fini_out (HWVoiceOut *hw) in no_fini_out() argument
75 (void) hw; in no_fini_out()
78 static int no_ctl_out (HWVoiceOut *hw, int cmd, ...) in no_ctl_out() argument
80 (void) hw; in no_ctl_out()
85 static int no_init_in (HWVoiceIn *hw, struct audsettings *as) in no_init_in() argument
87 audio_pcm_init_info (&hw->info, as); in no_init_in()
88 hw->samples = 1024; in no_init_in()
92 static void no_fini_in (HWVoiceIn *hw) in no_fini_in() argument
94 (void) hw; in no_fini_in()
97 static int no_run_in (HWVoiceIn *hw) in no_run_in() argument
99 NoVoiceIn *no = (NoVoiceIn *) hw; in no_run_in()
100 int live = audio_pcm_hw_get_live_in (hw); in no_run_in()
101 int dead = hw->samples - live; in no_run_in()
108 muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); in no_run_in()
112 samples = bytes >> hw->info.shift; in no_run_in()
121 int total = sw->hw->total_samples_captured - sw->total_hw_samples_acquired; in no_read()
127 static int no_ctl_in (HWVoiceIn *hw, int cmd, ...) in no_ctl_in() argument
129 (void) hw; in no_ctl_in()