/third_party/alsa-lib/src/control/ |
H A D | hcontrol.c | 91 snd_hctl_t *hctl; in snd_hctl_open_ctl() local 95 if ((hctl = (snd_hctl_t *)calloc(1, sizeof(snd_hctl_t))) == NULL) in snd_hctl_open_ctl() 97 INIT_LIST_HEAD(&hctl->elems); in snd_hctl_open_ctl() 98 hctl->ctl = ctl; in snd_hctl_open_ctl() 99 *hctlp = hctl; in snd_hctl_open_ctl() 105 * \param hctl HCTL handle 111 int snd_hctl_close(snd_hctl_t *hctl) in snd_hctl_close() argument 115 assert(hctl); in snd_hctl_close() 116 err = snd_ctl_close(hctl->ctl); in snd_hctl_close() 117 snd_hctl_free(hctl); in snd_hctl_close() 130 snd_hctl_name(snd_hctl_t *hctl) snd_hctl_name() argument 142 snd_hctl_nonblock(snd_hctl_t *hctl, int nonblock) snd_hctl_nonblock() argument 157 snd_hctl_async(snd_hctl_t *hctl, int sig, pid_t pid) snd_hctl_async() argument 168 snd_hctl_poll_descriptors_count(snd_hctl_t *hctl) snd_hctl_poll_descriptors_count() argument 181 snd_hctl_poll_descriptors(snd_hctl_t *hctl, struct pollfd *pfds, unsigned int space) snd_hctl_poll_descriptors() argument 195 snd_hctl_poll_descriptors_revents(snd_hctl_t *hctl, struct pollfd *pfds, unsigned int nfds, unsigned short *revents) snd_hctl_poll_descriptors_revents() argument 201 snd_hctl_throw_event(snd_hctl_t *hctl, unsigned int mask, snd_hctl_elem_t *elem) snd_hctl_throw_event() argument 320 _snd_hctl_find_elem(snd_hctl_t *hctl, const snd_ctl_elem_id_t *id, int *dir) _snd_hctl_find_elem() argument 346 snd_hctl_elem_add(snd_hctl_t *hctl, snd_hctl_elem_t *elem) snd_hctl_elem_add() argument 382 snd_hctl_elem_remove(snd_hctl_t *hctl, unsigned int idx) snd_hctl_elem_remove() argument 402 snd_hctl_free(snd_hctl_t *hctl) snd_hctl_free() argument 419 snd_hctl_sort(snd_hctl_t *hctl) snd_hctl_sort() argument 448 snd_hctl_set_compare(snd_hctl_t *hctl, snd_hctl_compare_t compare) snd_hctl_set_compare() argument 498 snd_hctl_first_elem(snd_hctl_t *hctl) snd_hctl_first_elem() argument 511 snd_hctl_last_elem(snd_hctl_t *hctl) snd_hctl_last_elem() argument 551 snd_hctl_find_elem(snd_hctl_t *hctl, const snd_ctl_elem_id_t *id) snd_hctl_find_elem() argument 565 snd_hctl_load(snd_hctl_t *hctl) snd_hctl_load() argument 629 snd_hctl_set_callback(snd_hctl_t *hctl, snd_hctl_callback_t callback) snd_hctl_set_callback() argument 640 snd_hctl_set_callback_private(snd_hctl_t *hctl, void *callback_private) snd_hctl_set_callback_private() argument 651 snd_hctl_get_callback_private(snd_hctl_t *hctl) snd_hctl_get_callback_private() argument 662 snd_hctl_get_count(snd_hctl_t *hctl) snd_hctl_get_count() argument 675 snd_hctl_wait(snd_hctl_t *hctl, int timeout) snd_hctl_wait() argument 724 snd_hctl_ctl(snd_hctl_t *hctl) snd_hctl_ctl() argument 729 snd_hctl_handle_event(snd_hctl_t *hctl, snd_ctl_event_t *event) snd_hctl_handle_event() argument 779 snd_hctl_handle_events(snd_hctl_t *hctl) snd_hctl_handle_events() argument [all...] |
H A D | control_local.h | 82 snd_hctl_t *hctl; /* associated handle */ member
|
/third_party/alsa-lib/src/mixer/ |
H A D | mixer.c | 52 snd_hctl_t *hctl; member 179 static int hctl_event_handler(snd_hctl_t *hctl, unsigned int mask, in hctl_event_handler() argument 182 snd_mixer_t *mixer = snd_hctl_get_callback_private(hctl); in hctl_event_handler() 212 snd_hctl_t *hctl; in snd_mixer_attach() local 215 err = snd_hctl_open(&hctl, name, 0); in snd_mixer_attach() 218 err = snd_mixer_attach_hctl(mixer, hctl); in snd_mixer_attach() 227 * \param hctl the HCTL to be attached 230 * Upon error, this function closes the given hctl handle automatically. 232 int snd_mixer_attach_hctl(snd_mixer_t *mixer, snd_hctl_t *hctl) in snd_mixer_attach_hctl() argument 237 assert(hctl); in snd_mixer_attach_hctl() 286 snd_mixer_detach_hctl(snd_mixer_t *mixer, snd_hctl_t *hctl) snd_mixer_detach_hctl() argument 308 snd_mixer_get_hctl(snd_mixer_t *mixer, const char *name, snd_hctl_t **hctl) snd_mixer_get_hctl() argument [all...] |
H A D | simple_abst.c | 48 snd_hctl_t *hctl; member 253 if (priv->hctl) { in private_free() 255 snd_mixer_detach_hctl(snd_mixer_class_get_mixer(class), priv->hctl); in private_free() 256 snd_hctl_close(priv->hctl); in private_free() 330 err = snd_hctl_open_ctl(&priv->hctl, priv->ctl); in snd_mixer_simple_basic_register() 343 err = snd_mixer_attach_hctl(mixer, priv->hctl); in snd_mixer_simple_basic_register() 378 info->hctl = priv->hctl; in snd_mixer_sbasic_info()
|
/third_party/alsa-lib/include/ |
H A D | control.h | 717 * \param hctl HCTL handle 722 typedef int (*snd_hctl_callback_t)(snd_hctl_t *hctl, 734 int snd_hctl_open(snd_hctl_t **hctl, const char *name, int mode); 736 int snd_hctl_close(snd_hctl_t *hctl); 737 int snd_hctl_nonblock(snd_hctl_t *hctl, int nonblock); 738 static __inline__ int snd_hctl_abort(snd_hctl_t *hctl) { return snd_hctl_nonblock(hctl, 2); } in snd_hctl_abort() argument 739 int snd_hctl_poll_descriptors_count(snd_hctl_t *hctl); 740 int snd_hctl_poll_descriptors(snd_hctl_t *hctl, struct pollfd *pfds, unsigned int space); 742 unsigned int snd_hctl_get_count(snd_hctl_t *hctl); [all...] |
H A D | mixer.h | 102 int snd_mixer_attach_hctl(snd_mixer_t *mixer, snd_hctl_t *hctl); 104 int snd_mixer_detach_hctl(snd_mixer_t *mixer, snd_hctl_t *hctl); 105 int snd_mixer_get_hctl(snd_mixer_t *mixer, const char *name, snd_hctl_t **hctl);
|
H A D | mixer_abst.h | 76 snd_hctl_t *hctl; member
|
/third_party/alsa-lib/modules/mixer/simple/ |
H A D | python.c | 55 void **hctl; member 724 snd_hctl_t *hctl; in pymixer_attach_hctl() local 730 hctl = (snd_hctl_t *)get_C_ptr(obj, "get_C_hctl"); in pymixer_attach_hctl() 731 if (hctl == NULL) in pymixer_attach_hctl() 733 err = snd_mixer_attach_hctl(pymixer->mixer, hctl); in pymixer_attach_hctl() 735 PyErr_Format(PyExc_RuntimeError, "Cannot attach hctl: %s", snd_strerror(err)); in pymixer_attach_hctl() 738 hctls = realloc(pymixer->hctl, sizeof(void *) * (pymixer->hctl_count+1) * 2); in pymixer_attach_hctl() 743 pymixer->hctl = hctls; in pymixer_attach_hctl() 744 pymixer->hctl[pymixer->hctl_count*2] = (void *)hctl; in pymixer_attach_hctl() 908 snd_hctl_t *hctl = snd_hctl_elem_get_hctl(helem); new_helem() local [all...] |
/third_party/alsa-utils/alsamixer/ |
H A D | mixer_widget.c | 127 snd_hctl_t *hctl; in check_unplugged() local 134 err = snd_mixer_get_hctl(mixer, mixer_device_name, &hctl); in check_unplugged() 136 ctl = snd_hctl_ctl(hctl); in check_unplugged()
|
H A D | mixer_display.c | 150 snd_hctl_t *hctl; in display_card_info() local 162 err = snd_mixer_get_hctl(mixer, mixer_device_name, &hctl); in display_card_info() 166 ctl = snd_hctl_ctl(hctl); in display_card_info()
|
/third_party/alsa-lib/modules/mixer/simple/python/ |
H A D | common.py | 220 hctl = HControl(device, load=False) 221 mixer.attachHCtl(hctl)
|
/third_party/pulseaudio/src/modules/alsa/ |
H A D | alsa-util.c | 1662 /* Put the hctl pointer as our private data - it will be useful for callbacks */ in mixer_class_event() 1690 static int prepare_mixer(snd_mixer_t *mixer, const char *dev, snd_hctl_t *hctl) { in prepare_mixer() argument 1697 if ((err = snd_mixer_attach_hctl(mixer, hctl)) < 0) { in prepare_mixer() 1752 snd_hctl_t *hctl; in pa_alsa_open_mixer_by_name() local 1770 err = snd_hctl_open(&hctl, dev, 0); in pa_alsa_open_mixer_by_name() 1772 pa_log("Error opening hctl device: %s", pa_alsa_strerror(err)); in pa_alsa_open_mixer_by_name() 1776 if (prepare_mixer(m, dev, hctl) >= 0) { in pa_alsa_open_mixer_by_name() 1781 err = snd_ctl_card_info(snd_hctl_ctl(hctl), info); in pa_alsa_open_mixer_by_name()
|