Home | History | Annotate | Download | only in audio_route

Lines Matching defs:audio_route

18 #define LOG_TAG "audio_route"
62 struct audio_route {
73 struct audio_route *ar;
92 static inline struct mixer_ctl *index_to_ctl(struct audio_route *ar,
98 static void path_print(struct audio_route *ar, struct mixer_path *path)
113 static void path_free(struct audio_route *ar)
129 static struct mixer_path *path_get_by_name(struct audio_route *ar,
141 static struct mixer_path *path_create(struct audio_route *ar, const char *name)
217 static int path_add_setting(struct audio_route *ar, struct mixer_path *path,
244 static int path_add_value(struct audio_route *ar, struct mixer_path *path,
288 static int path_add_path(struct audio_route *ar, struct mixer_path *path,
300 static int path_apply(struct audio_route *ar, struct mixer_path *path)
322 static int path_reset(struct audio_route *ar, struct mixer_path *path)
367 struct audio_route *ar = state->ar;
473 static int alloc_mixer_state(struct audio_route *ar)
514 static void free_mixer_state(struct audio_route *ar)
534 int audio_route_update_mixer(struct audio_route *ar)
573 static void save_mixer_state(struct audio_route *ar)
589 void audio_route_reset(struct audio_route *ar)
606 int audio_route_apply_path(struct audio_route *ar, const char *name)
611 ALOGE("invalid audio_route");
627 int audio_route_reset_path(struct audio_route *ar, const char *name)
632 ALOGE("invalid audio_route");
651 static int audio_route_update_path(struct audio_route *ar, const char *name, bool reverse)
658 ALOGE("invalid audio_route");
701 int audio_route_apply_and_update_path(struct audio_route *ar, const char *name)
709 int audio_route_reset_and_update_path(struct audio_route *ar, const char *name)
717 struct audio_route *audio_route_init(unsigned int card, const char *xml_path)
725 struct audio_route *ar;
727 ar = calloc(1, sizeof(struct audio_route));
810 void audio_route_free(struct audio_route *ar)