Lines Matching refs:audio_policy
83 struct audio_policy { struct
89 int (*set_device_connection_state)(struct audio_policy *pol, argument
96 const struct audio_policy *pol,
102 void (*set_phone_state)(struct audio_policy *pol, audio_mode_t state); argument
105 void (*set_ringer_mode)(struct audio_policy *pol, uint32_t mode, argument
109 void (*set_force_use)(struct audio_policy *pol, argument
114 audio_policy_forced_cfg_t (*get_force_use)(const struct audio_policy *pol, argument
119 void (*set_can_mute_enforced_audible)(struct audio_policy *pol, argument
123 int (*init_check)(const struct audio_policy *pol); argument
131 audio_io_handle_t (*get_output)(struct audio_policy *pol, argument
141 int (*start_output)(struct audio_policy *pol, argument
148 int (*stop_output)(struct audio_policy *pol, argument
154 void (*release_output)(struct audio_policy *pol, audio_io_handle_t output); argument
158 audio_io_handle_t (*get_input)(struct audio_policy *pol, audio_source_t inputSource, argument
165 int (*start_input)(struct audio_policy *pol, audio_io_handle_t input); argument
168 int (*stop_input)(struct audio_policy *pol, audio_io_handle_t input); argument
171 void (*release_input)(struct audio_policy *pol, audio_io_handle_t input); argument
179 void (*init_stream_volume)(struct audio_policy *pol, argument
186 int (*set_stream_volume_index)(struct audio_policy *pol, argument
191 int (*get_stream_volume_index)(const struct audio_policy *pol, argument
198 int (*set_stream_volume_index_for_device)(struct audio_policy *pol, argument
204 int (*get_stream_volume_index_for_device)(const struct audio_policy *pol, argument
210 uint32_t (*get_strategy_for_stream)(const struct audio_policy *pol, argument
214 audio_devices_t (*get_devices_for_stream)(const struct audio_policy *pol, argument
218 audio_io_handle_t (*get_output_for_effect)(struct audio_policy *pol, argument
221 int (*register_effect)(struct audio_policy *pol, argument
228 int (*unregister_effect)(struct audio_policy *pol, int id); argument
230 int (*set_effect_enabled)(struct audio_policy *pol, int id, bool enabled); argument
232 bool (*is_stream_active)(const struct audio_policy *pol, argument
236 bool (*is_stream_active_remotely)(const struct audio_policy *pol, argument
240 bool (*is_source_active)(const struct audio_policy *pol, argument
244 int (*dump)(const struct audio_policy *pol, int fd); argument
247 bool (*is_offload_supported)(const struct audio_policy *pol, argument
434 struct audio_policy **ap);
437 struct audio_policy *ap);