Lines Matching refs:callback

46 	if (ext->callback->close)
47 ext->callback->close(ext);
73 if (ext->callback->subscribe_events)
74 ext->callback->subscribe_events(ext, subscribe);
99 list->count = ext->callback->elem_count(ext);
107 ret = ext->callback->elem_list(ext, offset, ids);
122 ext->callback->elem_list(ext, numid - 1, id);
126 return ext->callback->find_elem(ext, id);
138 ret = ext->callback->get_attribute(ext, key, &type, &info->access, &info->count);
150 if (! ext->callback->get_integer_info)
152 ret = ext->callback->get_integer_info(ext, key, &info->value.integer.min,
157 if (! ext->callback->get_integer64_info)
161 ret = ext->callback->get_integer64_info(ext, key,
171 if (! ext->callback->get_enumerated_info)
173 ret = ext->callback->get_enumerated_info(ext, key, &info->value.enumerated.items);
174 ext->callback->get_enumerated_name(ext, key, info->value.enumerated.item,
184 if (ext->callback->free_key)
185 ext->callback->free_key(ext, key);
218 ret = ext->callback->get_attribute(ext, key, &type, &access, &count);
225 if (! ext->callback->read_integer)
227 ret = ext->callback->read_integer(ext, key, control->value.integer.value);
230 if (! ext->callback->read_integer64)
232 ret = ext->callback->read_integer64(ext, key,
236 if (! ext->callback->read_enumerated)
238 ret = ext->callback->read_enumerated(ext, key, control->value.enumerated.item);
241 if (! ext->callback->read_bytes)
243 ret = ext->callback->read_bytes(ext, key, control->value.bytes.data,
247 if (! ext->callback->read_iec958)
249 ret = ext->callback->read_iec958(ext, key, (snd_aes_iec958_t *)&control->value.iec958);
256 if (ext->callback->free_key)
257 ext->callback->free_key(ext, key);
272 ret = ext->callback->get_attribute(ext, key, &type, &access, &count);
279 if (! ext->callback->write_integer)
281 ret = ext->callback->write_integer(ext, key, control->value.integer.value);
284 if (! ext->callback->write_integer64)
286 ret = ext->callback->write_integer64(ext, key, (int64_t *)control->value.integer64.value);
289 if (! ext->callback->write_enumerated)
291 ret = ext->callback->write_enumerated(ext, key, control->value.enumerated.item);
294 if (! ext->callback->write_bytes)
296 ret = ext->callback->write_bytes(ext, key, control->value.bytes.data,
300 if (! ext->callback->write_iec958)
302 ret = ext->callback->write_iec958(ext, key, (snd_aes_iec958_t *)&control->value.iec958);
309 if (ext->callback->free_key)
310 ext->callback->free_key(ext, key);
343 ext->callback->elem_list(ext, numid - 1, &id);
347 key = ext->callback->find_elem(ext, &id);
351 ret = ext->callback->get_attribute(ext, key, &type, &access, &count);
418 if (ext->callback->read_event) {
420 return ext->callback->read_event(ext, &event->data.elem.id, &event->data.elem.mask);
430 if (ext->callback->poll_descriptors_count)
431 return ext->callback->poll_descriptors_count(ext);
441 if (ext->callback->poll_descriptors)
442 return ext->callback->poll_descriptors(ext, pfds, space);
457 if (ext->callback->poll_revents)
458 return ext->callback->poll_revents(ext, pfds, nfds, revents);
577 myctl->ext.callback = &my_own_callback;
600 #snd_ctl_ext_create() : version, card_idx, id, name, longname, mixername, poll_fd and callback.
611 The callback field contains the table of callback functions for this plugin (defined as
615 poll_descriptors callbacks in the callback table for handling the poll descriptor(s)
627 The callback functions in #snd_ctl_ext_callback_t define the real
630 The close callback is called when the PCM is closed. If the plugin
632 again. This callback is optional.
637 The id field is initialized to all zero in prior to elem_list callback. The callback
643 The find_elem callback is used to convert the given control element ID to the
648 return #SND_CTL_EXT_KEY_NOT_FOUND. This callback is (very likely) required
651 the allocated record can be released with the optional free_key callback.
653 The get_attribute is a mandatory callback, which returns the attribute of the
654 control element given via a key value (converted with find_elem callback).
656 (#snd_ctl_ext_access_t), and the count (element array size). The callback returns
664 get_enumerated_name callback to store the name of the enumerated item of the given control
671 (i.e. the count value in get_attribute callback is more than 1), <i>all</i> values
674 info callback since it's obvious). These callbacks return 0 if successful, or
683 The subscribe_events callback is called when the application subscribes or cancels
686 The read_event callback is called for reading a pending notification event.
687 The callback needs to fill the event_mask value, a bit-field defined as SND_CTL_EVENT_MASK_XXX.
691 the poll descriptor(s) via callbacks. As already mentioned, if the callback cannot
694 The poll_revents callback is used for handle poll revents.