• 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/mixer/

Lines Matching defs:helem

1317 	snd_hctl_elem_t *helem;
1321 helem = s->ctls[type].elem;
1322 if (!helem) {
1324 helem = s->ctls[type].elem;
1326 if (!helem) {
1328 helem = s->ctls[type].elem;
1330 assert(helem);
1334 snd_hctl_elem_info(helem, info);
1336 snd_hctl_elem_info(helem, info);
1347 snd_hctl_elem_t *helem;
1352 helem = s->ctls[CTL_GLOBAL_ENUM].elem;
1353 if (!helem) helem = s->ctls[CTL_PLAYBACK_ENUM].elem;
1354 if (!helem) helem = s->ctls[CTL_CAPTURE_ENUM].elem;
1355 assert(helem);
1357 err = snd_hctl_elem_read(helem, ctl);
1369 snd_hctl_elem_t *helem;
1377 helem = s->ctls[type].elem;
1378 if (!helem) {
1380 helem = s->ctls[type].elem;
1382 if (!helem) {
1384 helem = s->ctls[type].elem;
1386 assert(helem);
1391 err = snd_hctl_elem_read(helem, ctl);
1396 return snd_hctl_elem_write(helem, ctl);
1418 snd_hctl_elem_t *helem, selem_ctl_type_t type,
1432 err = snd_hctl_elem_info(helem, info);
1522 snd_mixer_selem_id_set_index(id, snd_hctl_elem_get_index(helem));
1546 SNDERR("helem (%s,'%s',%u,%u,%u) appears twice or more",
1547 snd_ctl_elem_iface_name(snd_hctl_elem_get_interface(helem)),
1548 snd_hctl_elem_get_name(helem),
1549 snd_hctl_elem_get_index(helem),
1550 snd_hctl_elem_get_device(helem),
1551 snd_hctl_elem_get_subdevice(helem));
1555 simple->ctls[type].elem = helem;
1577 err = snd_mixer_elem_attach(melem, helem);
1604 static int simple_event_add(snd_mixer_class_t *class, snd_hctl_elem_t *helem)
1606 const char *name = snd_hctl_elem_get_name(helem);
1609 if (snd_hctl_elem_get_interface(helem) != SND_CTL_ELEM_IFACE_MIXER)
1616 err = snd_hctl_elem_info(helem, info);
1624 err = snd_hctl_elem_info(helem, info);
1628 err = simple_add1(class, n, helem, CTL_CAPTURE_SOURCE, k);
1636 return simple_add1(class, name, helem, CTL_SINGLE, 0);
1648 return simple_add1(class, ename, helem, type, 0);
1652 static int simple_event_remove(snd_hctl_elem_t *helem,
1659 if (simple->ctls[k].elem == helem)
1664 err = snd_mixer_elem_detach(melem, helem);
1674 snd_hctl_elem_t *helem, snd_mixer_elem_t *melem)
1678 return simple_event_remove(helem, melem);
1680 err = simple_event_add(class, helem);
1685 err = simple_event_remove(helem, melem);
1688 err = simple_event_add(class, helem);