Lines Matching defs:verb

88 static pa_alsa_ucm_device *verb_find_device(pa_alsa_ucm_verb *verb, const char *device_name);
141 /* UCM verb info - this should eventually be part of policy manangement */
182 pa_log_debug("Got %s for verb %s: %s", id, verb_name, value);
362 pa_alsa_ucm_verb *verb,
411 if (!value) /* take pcm from verb playback default */
432 if (!value) /* take pcm from verb capture default */
470 pa_hashmap_put(device->playback_volumes, pa_xstrdup(pa_proplist_gets(verb->proplist, PA_ALSA_PROP_UCM_NAME)), vol);
499 pa_hashmap_put(device->capture_volumes, pa_xstrdup(pa_proplist_gets(verb->proplist, PA_ALSA_PROP_UCM_NAME)), vol);
530 ucm_add_devices_to_idxset(device->conflicting_devices, device, verb->devices, devices, n_confdev);
542 ucm_add_devices_to_idxset(device->supported_devices, device, verb->devices, devices, n_suppdev);
584 /* Create a list of devices for this verb */
585 static int ucm_get_devices(pa_alsa_ucm_verb *verb, snd_use_case_mgr_t *uc_mgr) {
608 PA_LLIST_PREPEND(pa_alsa_ucm_device, verb->devices, d);
616 static int ucm_get_modifiers(pa_alsa_ucm_verb *verb, snd_use_case_mgr_t *uc_mgr) {
638 PA_LLIST_PREPEND(pa_alsa_ucm_modifier, verb->modifiers, m);
808 pa_log("UCM verb list not found for %s", card_name);
813 /* get the properties of each UCM verb */
815 pa_alsa_ucm_verb *verb;
817 /* Get devices and modifiers for each verb */
818 err = pa_alsa_ucm_get_verb(ucm->ucm_mgr, verb_list[i], verb_list[i+1], &verb);
820 pa_log("Failed to get the verb %s", verb_list[i]);
824 PA_LLIST_PREPEND(pa_alsa_ucm_verb, ucm->verbs, verb);
828 pa_log("No UCM verb is valid for %s", card_name);
850 pa_alsa_ucm_verb *verb;
856 pa_log_info("Set UCM verb to %s", verb_name);
861 verb = pa_xnew0(pa_alsa_ucm_verb, 1);
862 verb->proplist = pa_proplist_new();
864 pa_proplist_sets(verb->proplist, PA_ALSA_PROP_UCM_NAME, pa_strnull(verb_name));
865 pa_proplist_sets(verb->proplist, PA_ALSA_PROP_UCM_DESCRIPTION, pa_strna(verb_desc));
869 verb->priority = ui > 10000 ? 10000 : ui;
872 err = ucm_get_devices(verb, uc_mgr);
874 pa_log("No UCM devices for verb %s", verb_name);
876 err = ucm_get_modifiers(verb, uc_mgr);
878 pa_log("No UCM modifiers for verb %s", verb_name);
880 PA_LLIST_FOREACH(d, verb->devices) {
884 ucm_get_device_property(d, uc_mgr, verb, dev_name);
887 PA_LLIST_FOREACH(d, verb->devices)
890 PA_LLIST_FOREACH(mod, verb->modifiers) {
897 pa_log_debug("Set media roles for verb %s, modifier %s", verb_name, mod_name);
898 ucm_set_media_roles(mod, verb->devices, mod_name);
901 *p_verb = verb;
1376 /* Change UCM verb and device to match selected card profile */
1380 pa_alsa_ucm_verb *verb;
1391 /* change verb */
1392 pa_log_info("Set UCM verb to %s", profile);
1394 pa_log("Failed to set verb %s", profile);
1398 /* find active verb */
1400 PA_LLIST_FOREACH(verb, ucm->verbs) {
1402 verb_name = pa_proplist_gets(verb->proplist, PA_ALSA_PROP_UCM_NAME);
1404 ucm->active_verb = verb;
1766 pa_alsa_ucm_verb *verb,
1796 priority = verb->priority;
1816 PA_LLIST_FOREACH(dev, verb->devices) {
1869 PA_LLIST_FOREACH(mod, verb->modifiers) {
2003 /* change verb */
2004 pa_log_info("Set ucm verb to %s", p->name);
2007 pa_log("Failed to set verb %s", p->name);
2015 * only be controlled on the main device/verb PCM. */
2030 * only be controlled on the main device/verb PCM. */
2067 pa_alsa_ucm_verb *verb;
2075 /* create a profile for each verb */
2076 PA_LLIST_FOREACH(verb, ucm->verbs) {
2080 verb_name = pa_proplist_gets(verb->proplist, PA_ALSA_PROP_UCM_NAME);
2081 verb_desc = pa_proplist_gets(verb->proplist, PA_ALSA_PROP_UCM_DESCRIPTION);
2087 ucm_create_profile(ucm, ps, verb, verb_name, verb_desc);
2096 static void free_verb(pa_alsa_ucm_verb *verb) {
2100 PA_LLIST_FOREACH_SAFE(di, dn, verb->devices) {
2101 PA_LLIST_REMOVE(pa_alsa_ucm_device, verb->devices, di);
2126 PA_LLIST_FOREACH_SAFE(mi, mn, verb->modifiers) {
2127 PA_LLIST_REMOVE(pa_alsa_ucm_modifier, verb->modifiers, mi);
2136 pa_proplist_free(verb->proplist);
2137 pa_xfree(verb);
2140 static pa_alsa_ucm_device *verb_find_device(pa_alsa_ucm_verb *verb, const char *device_name) {
2143 pa_assert(verb);
2146 PA_LLIST_FOREACH(device, verb->devices) {