Home
last modified time | relevance | path

Searched refs:hctl (Results 1 – 9 of 9) sorted by relevance

/external/adhd/cras/src/server/
Dcras_alsa_plugin_io.c37 snd_hctl_t *hctl; member
56 if (plugin->hctl == NULL) in hctl_event_pending()
61 snd_hctl_handle_events(plugin->hctl); in hctl_event_pending()
71 n = snd_hctl_poll_descriptors_count(plugin->hctl); in collect_poll_descriptors()
81 n = snd_hctl_poll_descriptors(plugin->hctl, pollfds, n); in collect_poll_descriptors()
128 rc = snd_hctl_open(&plugin->hctl, ctl_name, SND_CTL_NONBLOCK); in alsa_plugin_io_create()
134 rc = snd_hctl_nonblock(plugin->hctl, 1); in alsa_plugin_io_create()
139 rc = snd_hctl_load(plugin->hctl); in alsa_plugin_io_create()
165 plugin->hctl, direction, NULL_USB_VID, in alsa_plugin_io_create()
186 if (plugin->hctl) in destroy_plugin()
[all …]
Dcras_alsa_card.c61 snd_hctl_t *hctl; member
117 alsa_card->ucm, alsa_card->hctl, direction, in create_iodev_for_device()
193 snd_hctl_handle_events(card->hctl); in alsa_control_event_pending()
523 rc = snd_hctl_open(&alsa_card->hctl, alsa_card->name, SND_CTL_NONBLOCK); in cras_alsa_card_create()
526 alsa_card->hctl = NULL; in cras_alsa_card_create()
528 rc = snd_hctl_nonblock(alsa_card->hctl, 1); in cras_alsa_card_create()
535 rc = snd_hctl_load(alsa_card->hctl); in cras_alsa_card_create()
562 n = alsa_card->hctl ? snd_hctl_poll_descriptors_count(alsa_card->hctl) : in cras_alsa_card_create()
575 n = snd_hctl_poll_descriptors(alsa_card->hctl, pollfds, n); in cras_alsa_card_create()
626 if (alsa_card->hctl) in cras_alsa_card_destroy()
[all …]
Dcras_alsa_jack.c120 snd_hctl_t *hctl; member
723 static snd_hctl_elem_t *find_eld_control_by_dev_index(snd_hctl_t *hctl, in find_eld_control_by_dev_index() argument
734 return snd_hctl_find_elem(hctl, elem_id); in find_eld_control_by_dev_index()
790 jack_list->hctl, in find_gpio_jacks()
890 if (!jack_list->hctl) { in find_jack_controls()
903 for (elem = snd_hctl_first_elem(jack_list->hctl); elem != NULL; in find_jack_controls()
962 jack_list->hctl, jack_list->device_index); in find_jack_controls()
992 if (!jack_list->hctl) { in find_hctl_jack_for_section()
1002 elem = snd_hctl_find_elem(jack_list->hctl, elem_id); in find_hctl_jack_for_section()
1039 jack_list->hctl, jack_list->device_index); in find_hctl_jack_for_section()
[all …]
Dcras_alsa_io.h46 struct cras_use_case_mgr *ucm, snd_hctl_t *hctl,
Dcras_alsa_jack.h51 struct cras_use_case_mgr *ucm, snd_hctl_t *hctl,
Dcras_alsa_io.c2059 struct cras_use_case_mgr *ucm, snd_hctl_t *hctl, in alsa_iodev_create() argument
2166 card_index, card_name, device_index, is_first, mixer, ucm, hctl, in alsa_iodev_create()
/external/adhd/cras/src/tests/
Dalsa_card_unittest.cc1037 snd_hctl_t* hctl, in alsa_iodev_create() argument
1144 int snd_hctl_nonblock(snd_hctl_t* hctl, int nonblock) { in snd_hctl_nonblock() argument
1148 int snd_hctl_load(snd_hctl_t* hctl) { in snd_hctl_load() argument
1152 int snd_hctl_close(snd_hctl_t* hctl) { in snd_hctl_close() argument
1156 int snd_hctl_poll_descriptors_count(snd_hctl_t* hctl) { in snd_hctl_poll_descriptors_count() argument
1159 int snd_hctl_poll_descriptors(snd_hctl_t* hctl, in snd_hctl_poll_descriptors() argument
1167 int snd_hctl_handle_events(snd_hctl_t* hctl) { in snd_hctl_handle_events() argument
Dalsa_jack_unittest.cc868 snd_hctl_elem_t* snd_hctl_first_elem(snd_hctl_t* hctl) { in snd_hctl_first_elem() argument
916 snd_hctl_elem_t* snd_hctl_find_elem(snd_hctl_t* hctl, in snd_hctl_find_elem() argument
Dalsa_io_unittest.cc2669 snd_hctl_t* hctl, in cras_alsa_jack_list_create() argument