Home | History | Annotate | Download | only in audio

Lines Matching refs:ctl

37     struct mixer_ctl *ctl;
44 struct mixer_ctl *ctl;
140 if (path->setting[i].ctl == setting->ctl)
153 mixer_ctl_get_name(setting->ctl));
175 path->setting[path->length].ctl = setting->ctl;
199 ALOGV(" %d: %s -> %d", i, mixer_ctl_get_name(path->setting[i].ctl),
209 struct mixer_ctl *ctl = path->setting[i].ctl;
211 /* locate the mixer ctl in the list */
213 if (ar->mixer_state[j].ctl == ctl)
225 static int mixer_enum_string_to_value(struct mixer_ctl *ctl, const char *string)
230 for (i = 0; i < mixer_ctl_get_num_enums(ctl); i++) {
231 if (strcmp(mixer_ctl_get_enum_string(ctl, i), string) == 0)
246 struct mixer_ctl *ctl;
274 else if (strcmp(tag_name, "ctl") == 0) {
275 /* Obtain the mixer ctl and value */
276 ctl = mixer_get_ctl_by_name(ar->mixer, attr_name);
277 switch (mixer_ctl_get_type(ctl)) {
283 value = mixer_enum_string_to_value(ctl, (char *)attr_value);
291 /* top level ctl (initial setting) */
293 /* locate the mixer ctl in the list */
295 if (ar->mixer_state[i].ctl == ctl)
302 /* nested ctl (within a path) */
303 mixer_setting.ctl = ctl;
329 ar->mixer_state[i].ctl = mixer_get_ctl(ar->mixer, i);
330 /* only get value 0, assume multiple ctl values are the same */
331 ar->mixer_state[i].old_value = mixer_ctl_get_value(ar->mixer_state[i].ctl, 0);
352 /* set all ctl values the same */
353 for (j = 0; j < mixer_ctl_get_num_values(ar->mixer_state[i].ctl); j++)
354 mixer_ctl_set_value(ar->mixer_state[i].ctl, j,
367 /* only get value 0, assume multiple ctl values are the same */
368 ar->mixer_state[i].reset_value = mixer_ctl_get_value(ar->mixer_state[i].ctl, 0);