Lines Matching defs:helem
1328 snd_hctl_elem_t *helem;
1332 helem = s->ctls[type].elem;
1333 if (!helem) {
1335 helem = s->ctls[type].elem;
1337 if (!helem) {
1339 helem = s->ctls[type].elem;
1341 assert(helem);
1344 snd_hctl_elem_info(helem, &info);
1346 snd_hctl_elem_info(helem, &info);
1357 snd_hctl_elem_t *helem;
1362 helem = s->ctls[CTL_GLOBAL_ENUM].elem;
1363 if (!helem) helem = s->ctls[CTL_PLAYBACK_ENUM].elem;
1364 if (!helem) helem = s->ctls[CTL_CAPTURE_ENUM].elem;
1365 assert(helem);
1366 err = snd_hctl_elem_read(helem, &ctl);
1378 snd_hctl_elem_t *helem;
1386 helem = s->ctls[type].elem;
1387 if (!helem) {
1389 helem = s->ctls[type].elem;
1391 if (!helem) {
1393 helem = s->ctls[type].elem;
1395 assert(helem);
1399 err = snd_hctl_elem_read(helem, &ctl);
1404 return snd_hctl_elem_write(helem, &ctl);
1426 snd_hctl_elem_t *helem, selem_ctl_type_t type,
1439 err = snd_hctl_elem_info(helem, &info);
1529 snd_mixer_selem_id_set_index(id, snd_hctl_elem_get_index(helem));
1555 SNDERR("helem (%s,'%s',%u,%u,%u) appears twice or more",
1557 snd_hctl_elem_get_interface(helem)),
1558 snd_hctl_elem_get_name(helem),
1559 snd_hctl_elem_get_index(helem),
1560 snd_hctl_elem_get_device(helem),
1561 snd_hctl_elem_get_subdevice(helem));
1565 simple->ctls[type].elem = helem;
1589 err = snd_mixer_elem_attach(melem, helem);
1616 static int simple_event_add(snd_mixer_class_t *class, snd_hctl_elem_t *helem)
1618 const char *name = snd_hctl_elem_get_name(helem);
1623 if (snd_hctl_elem_get_interface(helem) != SND_CTL_ELEM_IFACE_MIXER)
1629 err = snd_hctl_elem_info(helem, &info);
1638 err = snd_hctl_elem_info(helem, &info);
1642 err = simple_add1(class, n, helem, CTL_CAPTURE_SOURCE,
1656 return simple_add1(class, ename, helem, type, 0);
1659 static int simple_event_remove(snd_hctl_elem_t *helem,
1666 if (simple->ctls[k].elem == helem)
1671 err = snd_mixer_elem_detach(melem, helem);
1681 snd_hctl_elem_t *helem, snd_mixer_elem_t *melem)
1685 return simple_event_remove(helem, melem);
1687 err = simple_event_add(class, helem);
1692 err = simple_event_remove(helem, melem);
1695 err = simple_event_add(class, helem);