1 /* 2 * Copyright (C) 2012 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef AUDIO_ROUTE_H 18 #define AUDIO_ROUTE_H 19 20 /* Initialises and frees the audio routes */ 21 struct audio_route *audio_route_init(void); 22 void audio_route_free(struct audio_route *ar); 23 24 /* Applies an audio route path by name */ 25 void audio_route_apply_path(struct audio_route *ar, const char *name); 26 27 /* Resets the mixer back to its initial state */ 28 void reset_mixer_state(struct audio_route *ar); 29 30 /* Updates the mixer with any changed values */ 31 void update_mixer_state(struct audio_route *ar); 32 33 #endif 34