• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/src/control/

Lines Matching refs:ext

44 	snd_ctl_ext_t *ext = handle->private_data;
46 if (ext->callback->close)
47 ext->callback->close(ext);
53 snd_ctl_ext_t *ext = handle->private_data;
55 ext->nonblock = nonblock;
68 snd_ctl_ext_t *ext = handle->private_data;
71 return ext->subscribed;
72 ext->subscribed = !!subscribe;
73 if (ext->callback->subscribe_events)
74 ext->callback->subscribe_events(ext, subscribe);
80 snd_ctl_ext_t *ext = handle->private_data;
83 info->card = ext->card_idx;
84 memcpy(info->id, ext->id, sizeof(info->id));
85 memcpy(info->driver, ext->driver, sizeof(info->driver));
86 memcpy(info->name, ext->name, sizeof(info->name));
87 memcpy(info->longname, ext->longname, sizeof(info->longname));
88 memcpy(info->mixername, ext->mixername, sizeof(info->mixername));
94 snd_ctl_ext_t *ext = handle->private_data;
99 list->count = ext->callback->elem_count(ext);
107 ret = ext->callback->elem_list(ext, offset, ids);
118 static snd_ctl_ext_key_t get_elem(snd_ctl_ext_t *ext, snd_ctl_elem_id_t *id)
122 ext->callback->elem_list(ext, numid - 1, id);
126 return ext->callback->find_elem(ext, id);
131 snd_ctl_ext_t *ext = handle->private_data;
135 key = get_elem(ext, &info->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);
210 snd_ctl_ext_t *ext = handle->private_data;
215 key = get_elem(ext, &control->id);
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);
264 snd_ctl_ext_t *ext = handle->private_data;
269 key = get_elem(ext, &control->id);
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);
331 snd_ctl_ext_t *ext = handle->private_data;
338 if (ext->version <= SNDRV_PROTOCOL_VERSION(1, 0, 0))
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);
360 return ext->tlv.c(ext, key, op_flag, numid, tlv, tlv_size);
364 len = ext->tlv.p[1] + 2 * sizeof(unsigned int);
367 memcpy(tlv, ext->tlv.p, len);
416 snd_ctl_ext_t *ext = handle->private_data;
419 return ext->callback->read_event(ext, &event->data.elem.id, &event->data.elem.mask);
424 snd_ctl_ext_t *ext = handle->private_data;
426 if (ext->callback->poll_descriptors_count)
427 return ext->callback->poll_descriptors_count(ext);
428 if (ext->poll_fd >= 0)
435 snd_ctl_ext_t *ext = handle->private_data;
437 if (ext->callback->poll_descriptors)
438 return ext->callback->poll_descriptors(ext, pfds, space);
439 if (ext->poll_fd < 0)
442 pfds->fd = ext->poll_fd;
451 snd_ctl_ext_t *ext = handle->private_data;
453 if (ext->callback->poll_revents)
454 return ext->callback->poll_revents(ext, pfds, nfds, revents);
537 snd_ctl_ext_t ext;
567 myctl->ext.version = SND_CTL_EXT_VERSION;
568 myctl->ext.card_idx = 0;
569 strcpy(myctl->ext.id, "Myctl");
570 strcpy(myctl->ext.name, "My Control");
571 strcpy(myctl->ext.longname, "My External Control for Foobar");
572 strcpy(myctl->ext.mixername, "My Control");
573 myctl->ext.callback = &my_own_callback;
574 myctl->ext.private_data = myctl;
577 err = snd_pcm_extplug_create(&myctl->ext, name, mode);
583 *phandle = myctl->ext.handle;
696 * \param ext the plugin handle
704 int snd_ctl_ext_create(snd_ctl_ext_t *ext, const char *name, int mode)
709 if (ext->version < SNDRV_PROTOCOL_VERSION(1, 0, 0) ||
710 ext->version > SND_CTL_EXT_VERSION) {
719 ext->handle = ctl;
722 ctl->private_data = ext;
723 ctl->poll_fd = ext->poll_fd;
725 ext->nonblock = 1;
732 * \param ext the plugin handle
735 int snd_ctl_ext_delete(snd_ctl_ext_t *ext)
737 return snd_ctl_close(ext->handle);