Lines Matching refs:audio_policy
45 struct audio_policy policy;
53 static inline struct legacy_audio_policy * to_lap(struct audio_policy *pol) in to_lap()
58 static inline const struct legacy_audio_policy * to_clap(const struct audio_policy *pol) in to_clap()
64 static int ap_set_device_connection_state(struct audio_policy *pol, in ap_set_device_connection_state()
77 const struct audio_policy *pol, in ap_get_device_connection_state()
87 static void ap_set_phone_state(struct audio_policy *pol, audio_mode_t state) in ap_set_phone_state()
95 static void ap_set_ringer_mode(struct audio_policy *pol, uint32_t mode, in ap_set_ringer_mode()
102 static void ap_set_force_use(struct audio_policy *pol, in ap_set_force_use()
113 const struct audio_policy *pol, in ap_get_force_use()
123 static void ap_set_can_mute_enforced_audible(struct audio_policy *pol, in ap_set_can_mute_enforced_audible()
130 static int ap_init_check(const struct audio_policy *pol) in ap_init_check()
136 static audio_io_handle_t ap_get_output(struct audio_policy *pol, in ap_get_output()
153 static int ap_start_output(struct audio_policy *pol, audio_io_handle_t output, in ap_start_output()
161 static int ap_stop_output(struct audio_policy *pol, audio_io_handle_t output, in ap_stop_output()
169 static void ap_release_output(struct audio_policy *pol, in ap_release_output()
176 static audio_io_handle_t ap_get_input(struct audio_policy *pol, audio_source_t inputSource, in ap_get_input()
187 static int ap_start_input(struct audio_policy *pol, audio_io_handle_t input) in ap_start_input()
193 static int ap_stop_input(struct audio_policy *pol, audio_io_handle_t input) in ap_stop_input()
199 static void ap_release_input(struct audio_policy *pol, audio_io_handle_t input) in ap_release_input()
205 static void ap_init_stream_volume(struct audio_policy *pol, in ap_init_stream_volume()
214 static int ap_set_stream_volume_index(struct audio_policy *pol, in ap_set_stream_volume_index()
224 static int ap_get_stream_volume_index(const struct audio_policy *pol, in ap_get_stream_volume_index()
234 static int ap_set_stream_volume_index_for_device(struct audio_policy *pol, in ap_set_stream_volume_index_for_device()
245 static int ap_get_stream_volume_index_for_device(const struct audio_policy *pol, in ap_get_stream_volume_index_for_device()
256 static uint32_t ap_get_strategy_for_stream(const struct audio_policy *pol, in ap_get_strategy_for_stream()
263 static audio_devices_t ap_get_devices_for_stream(const struct audio_policy *pol, in ap_get_devices_for_stream()
270 static audio_io_handle_t ap_get_output_for_effect(struct audio_policy *pol, in ap_get_output_for_effect()
277 static int ap_register_effect(struct audio_policy *pol, in ap_register_effect()
288 static int ap_unregister_effect(struct audio_policy *pol, int id) in ap_unregister_effect()
294 static int ap_set_effect_enabled(struct audio_policy *pol, int id, bool enabled) in ap_set_effect_enabled()
300 static bool ap_is_stream_active(const struct audio_policy *pol, audio_stream_type_t stream, in ap_is_stream_active()
307 static bool ap_is_stream_active_remotely(const struct audio_policy *pol, audio_stream_type_t stream, in ap_is_stream_active_remotely()
314 static bool ap_is_source_active(const struct audio_policy *pol, audio_source_t source) in ap_is_source_active()
320 static int ap_dump(const struct audio_policy *pol, int fd) in ap_dump()
326 static bool ap_is_offload_supported(const struct audio_policy *pol, in ap_is_offload_supported()
336 struct audio_policy **ap) in create_legacy_ap()
409 struct audio_policy *ap) in destroy_legacy_ap()