Lines Matching refs:dap
238 struct default_audio_policy *dap;
246 dap = (struct default_audio_policy *)calloc(1, sizeof(*dap));
247 if (!dap)
250 dap->policy.set_device_connection_state = ap_set_device_connection_state;
251 dap->policy.get_device_connection_state = ap_get_device_connection_state;
252 dap->policy.set_phone_state = ap_set_phone_state;
253 dap->policy.set_ringer_mode = ap_set_ringer_mode;
254 dap->policy.set_force_use = ap_set_force_use;
255 dap->policy.get_force_use = ap_get_force_use;
256 dap->policy.set_can_mute_enforced_audible =
258 dap->policy.init_check = ap_init_check;
259 dap->policy.get_output = ap_get_output;
260 dap->policy.start_output = ap_start_output;
261 dap->policy.stop_output = ap_stop_output;
262 dap->policy.release_output = ap_release_output;
263 dap->policy.get_input = ap_get_input;
264 dap->policy.start_input = ap_start_input;
265 dap->policy.stop_input = ap_stop_input;
266 dap->policy.release_input = ap_release_input;
267 dap->policy.init_stream_volume = ap_init_stream_volume;
268 dap->policy.set_stream_volume_index = ap_set_stream_volume_index;
269 dap->policy.get_stream_volume_index = ap_get_stream_volume_index;
270 dap->policy.set_stream_volume_index_for_device = ap_set_stream_volume_index_for_device;
271 dap->policy.get_stream_volume_index_for_device = ap_get_stream_volume_index_for_device;
272 dap->policy.get_strategy_for_stream = ap_get_strategy_for_stream;
273 dap->policy.get_devices_for_stream = ap_get_devices_for_stream;
274 dap->policy.get_output_for_effect = ap_get_output_for_effect;
275 dap->policy.register_effect = ap_register_effect;
276 dap->policy.unregister_effect = ap_unregister_effect;
277 dap->policy.set_effect_enabled = ap_set_effect_enabled;
278 dap->policy.is_stream_active = ap_is_stream_active;
279 dap->policy.dump = ap_dump;
281 dap->service = service;
282 dap->aps_ops = aps_ops;
284 *ap = &dap->policy;