Lines Matching refs:glue
39 static void glue (audio_init_nb_voices_, TYPE) (struct audio_driver *drv) in glue() function
42 int max_voices = glue (drv->max_voices_, TYPE); in glue()
43 int voice_size = glue (drv->voice_size_, TYPE); in glue()
45 if (glue (s->nb_hw_voices_, TYPE) > max_voices) { in glue()
54 glue (s->nb_hw_voices_, TYPE), in glue()
57 glue (s->nb_hw_voices_, TYPE) = max_voices; in glue()
63 glue (s->nb_hw_voices_, TYPE) = 0; in glue()
72 static void glue (audio_pcm_hw_free_resources_, TYPE) (HW *hw) in glue() function
81 static int glue (audio_pcm_hw_alloc_resources_, TYPE) (HW *hw) in glue() function
93 static void glue (audio_pcm_sw_free_resources_, TYPE) (SW *sw) in glue() function
107 static int glue (audio_pcm_sw_alloc_resources_, TYPE) (SW *sw) in glue() function
137 static int glue (audio_pcm_sw_init_, TYPE) ( in glue() function
168 err = glue (audio_pcm_sw_alloc_resources_, TYPE) (sw); in glue()
176 static void glue (audio_pcm_sw_fini_, TYPE) (SW *sw) in glue() function
178 glue (audio_pcm_sw_free_resources_, TYPE) (sw); in glue()
185 static void glue (audio_pcm_hw_add_sw_, TYPE) (HW *hw, SW *sw) in glue() function
190 static void glue (audio_pcm_hw_del_sw_, TYPE) (SW *sw) in glue() function
195 static void glue (audio_pcm_hw_gc_, TYPE) (HW **hwp) in glue() function
205 glue (s->nb_hw_voices_, TYPE) += 1; in glue()
206 glue (audio_pcm_hw_free_resources_ ,TYPE) (hw); in glue()
208 glue (hw->pcm_ops->fini_, TYPE) (hw); in glue()
215 static HW *glue (audio_pcm_hw_find_any_, TYPE) (HW *hw) in glue() function
218 return hw ? hw->entries.le_next : glue (s->hw_head_, TYPE).lh_first; in glue()
221 static HW *glue (audio_pcm_hw_find_any_enabled_, TYPE) (HW *hw) in glue() function
223 while ((hw = glue (audio_pcm_hw_find_any_, TYPE) (hw))) { in glue()
231 static HW *glue (audio_pcm_hw_find_specific_, TYPE) ( in glue() function
236 while ((hw = glue (audio_pcm_hw_find_any_, TYPE) (hw))) { in glue()
244 static HW *glue (audio_pcm_hw_add_new_, TYPE) (struct audsettings *as) in glue() function
251 if (!glue (s->nb_hw_voices_, TYPE)) { in glue()
265 hw = audio_calloc (AUDIO_FUNC, 1, glue (drv->voice_size_, TYPE)); in glue()
268 drv->name, glue (drv->voice_size_, TYPE)); in glue()
278 err = glue (hw->pcm_ops->init_, TYPE) (hw, as); in glue()
298 if (glue (audio_pcm_hw_alloc_resources_, TYPE) (hw)) { in glue()
302 QLIST_INSERT_HEAD (&s->glue (hw_head_, TYPE), hw, entries); in glue()
303 glue (s->nb_hw_voices_, TYPE) -= 1; in glue()
311 glue (hw->pcm_ops->fini_, TYPE) (hw); in glue()
318 static HW *glue (audio_pcm_hw_add_, TYPE) (struct audsettings *as) in glue() function
322 if (glue (conf.fixed_, TYPE).enabled && glue (conf.fixed_, TYPE).greedy) { in glue()
323 hw = glue (audio_pcm_hw_add_new_, TYPE) (as); in glue()
329 hw = glue (audio_pcm_hw_find_specific_, TYPE) (NULL, as); in glue()
334 hw = glue (audio_pcm_hw_add_new_, TYPE) (as); in glue()
339 return glue (audio_pcm_hw_find_any_, TYPE) (NULL); in glue()
342 static SW *glue (audio_pcm_create_voice_pair_, TYPE) ( in glue() function
351 if (glue (conf.fixed_, TYPE).enabled) { in glue()
352 hw_as = glue (conf.fixed_, TYPE).settings; in glue()
365 hw = glue (audio_pcm_hw_add_, TYPE) (&hw_as); in glue()
370 glue (audio_pcm_hw_add_sw_, TYPE) (hw, sw); in glue()
372 if (glue (audio_pcm_sw_init_, TYPE) (sw, hw, sw_name, as)) { in glue()
379 glue (audio_pcm_hw_del_sw_, TYPE) (sw); in glue()
380 glue (audio_pcm_hw_gc_, TYPE) (&hw); in glue()
387 static void glue (audio_close_, TYPE) (SW *sw) in glue() function
389 glue (audio_pcm_sw_fini_, TYPE) (sw); in glue()
390 glue (audio_pcm_hw_del_sw_, TYPE) (sw); in glue()
391 glue (audio_pcm_hw_gc_, TYPE) (&sw->hw); in glue()
395 void glue (AUD_close_, TYPE) (QEMUSoundCard *card, SW *sw) in glue() function
403 glue (audio_close_, TYPE) (sw); in glue()
407 SW *glue (AUD_open_, TYPE) ( in glue() function
468 if (!glue (conf.fixed_, TYPE).enabled && sw) { in glue()
469 glue (AUD_close_, TYPE) (card, sw); in glue()
482 glue (audio_pcm_sw_fini_, TYPE) (sw); in glue()
483 if (glue (audio_pcm_sw_init_, TYPE) (sw, hw, name, as)) { in glue()
488 sw = glue (audio_pcm_create_voice_pair_, TYPE) (name, as); in glue()
526 glue (AUD_close_, TYPE) (card, sw); in glue()
530 int glue (AUD_is_active_, TYPE) (SW *sw) in glue() function
535 void glue (AUD_init_time_stamp_, TYPE) (SW *sw, QEMUAudioTimeStamp *ts) in glue() function
544 uint64_t glue (AUD_get_elapsed_usec_, TYPE) (SW *sw, QEMUAudioTimeStamp *ts) in glue() function