Lines Matching full:hw

35     HWVoiceOut hw;  member
40 HWVoiceIn hw; member
44 static size_t no_write(HWVoiceOut *hw, void *buf, size_t len) in no_write() argument
46 NoVoiceOut *no = (NoVoiceOut *) hw; in no_write()
47 return audio_rate_get_bytes(&no->rate, &hw->info, len); in no_write()
50 static int no_init_out(HWVoiceOut *hw, struct audsettings *as, void *drv_opaque) in no_init_out() argument
52 NoVoiceOut *no = (NoVoiceOut *) hw; in no_init_out()
54 audio_pcm_init_info (&hw->info, as); in no_init_out()
55 hw->samples = 1024; in no_init_out()
60 static void no_fini_out (HWVoiceOut *hw) in no_fini_out() argument
62 (void) hw; in no_fini_out()
65 static void no_enable_out(HWVoiceOut *hw, bool enable) in no_enable_out() argument
67 NoVoiceOut *no = (NoVoiceOut *) hw; in no_enable_out()
74 static int no_init_in(HWVoiceIn *hw, struct audsettings *as, void *drv_opaque) in no_init_in() argument
76 NoVoiceIn *no = (NoVoiceIn *) hw; in no_init_in()
78 audio_pcm_init_info (&hw->info, as); in no_init_in()
79 hw->samples = 1024; in no_init_in()
84 static void no_fini_in (HWVoiceIn *hw) in no_fini_in() argument
86 (void) hw; in no_fini_in()
89 static size_t no_read(HWVoiceIn *hw, void *buf, size_t size) in no_read() argument
91 NoVoiceIn *no = (NoVoiceIn *) hw; in no_read()
92 int64_t bytes = audio_rate_get_bytes(&no->rate, &hw->info, size); in no_read()
94 audio_pcm_info_clear_buf(&hw->info, buf, bytes / hw->info.bytes_per_frame); in no_read()
98 static void no_enable_in(HWVoiceIn *hw, bool enable) in no_enable_in() argument
100 NoVoiceIn *no = (NoVoiceIn *) hw; in no_enable_in()