Home | History | Annotate | Download | only in audio_route

Lines Matching defs:audio_route

18 #define LOG_TAG "audio_route"
70 struct audio_route {
81 struct audio_route *ar;
120 static inline struct mixer_ctl *index_to_ctl(struct audio_route *ar,
127 static void path_print(struct audio_route *ar, struct mixer_path *path)
151 static void path_free(struct audio_route *ar)
168 static struct mixer_path *path_get_by_name(struct audio_route *ar,
180 static struct mixer_path *path_create(struct audio_route *ar, const char *name)
256 static int path_add_setting(struct audio_route *ar, struct mixer_path *path,
292 static int path_add_value(struct audio_route *ar, struct mixer_path *path,
362 static int path_add_path(struct audio_route *ar, struct mixer_path *path,
374 static int path_apply(struct audio_route *ar, struct mixer_path *path)
396 static int path_reset(struct audio_route *ar, struct mixer_path *path)
452 struct audio_route *ar = state->ar;
575 static int alloc_mixer_state(struct audio_route *ar)
617 static void free_mixer_state(struct audio_route *ar)
637 int audio_route_update_mixer(struct audio_route *ar)
695 static void save_mixer_state(struct audio_route *ar)
712 void audio_route_reset(struct audio_route *ar)
730 int audio_route_apply_path(struct audio_route *ar, const char *name)
735 ALOGE("invalid audio_route");
751 int audio_route_reset_path(struct audio_route *ar, const char *name)
756 ALOGE("invalid audio_route");
775 static int audio_route_update_path(struct audio_route *ar, const char *name, bool reverse)
782 ALOGE("invalid audio_route");
836 int audio_route_apply_and_update_path(struct audio_route *ar, const char *name)
844 int audio_route_reset_and_update_path(struct audio_route *ar, const char *name)
852 struct audio_route *audio_route_init(unsigned int card, const char *xml_path)
859 struct audio_route *ar;
861 ar = calloc(1, sizeof(struct audio_route));
945 void audio_route_free(struct audio_route *ar)