Home
last modified time | relevance | path

Searched refs:audio_device (Results 1 – 21 of 21) sorted by relevance

/external/bluetooth/bluez/audio/
Dheadset.h43 typedef void (*headset_state_cb) (struct audio_device *dev,
51 typedef void (*headset_stream_cb_t) (struct audio_device *dev, void *user_data);
55 GIOChannel *headset_get_rfcomm(struct audio_device *dev);
57 struct headset *headset_init(struct audio_device *dev, uint16_t svc,
60 void headset_unregister(struct audio_device *dev);
64 void headset_update(struct audio_device *dev, uint16_t svc,
67 unsigned int headset_config_stream(struct audio_device *dev,
71 unsigned int headset_request_stream(struct audio_device *dev,
74 unsigned int headset_suspend_stream(struct audio_device *dev,
77 gboolean headset_cancel_stream(struct audio_device *dev, unsigned int id);
[all …]
Dgateway.h35 typedef void (*gateway_stream_cb_t) (struct audio_device *dev, void *user_data);
36 struct gateway *gateway_init(struct audio_device *device);
37 gboolean gateway_is_connected(struct audio_device *dev);
38 int gateway_connect_rfcomm(struct audio_device *dev, GIOChannel *chan);
39 int gateway_connect_sco(struct audio_device *dev, GIOChannel *chan);
40 void gateway_start_service(struct audio_device *device);
41 gboolean gateway_request_stream(struct audio_device *dev,
43 int gateway_config_stream(struct audio_device *dev, gateway_stream_cb_t cb,
45 gboolean gateway_cancel_stream(struct audio_device *dev, unsigned int id);
46 int gateway_get_sco_fd(struct audio_device *dev);
[all …]
Dcontrol.h33 typedef void (*avctp_state_cb) (struct audio_device *dev,
44 gboolean avrcp_connect(struct audio_device *dev);
45 void avrcp_disconnect(struct audio_device *dev);
47 struct control *control_init(struct audio_device *dev, uint16_t uuid16);
48 void control_update(struct audio_device *dev, uint16_t uuid16);
49 void control_unregister(struct audio_device *dev);
50 gboolean control_is_active(struct audio_device *dev);
Ddevice.c104 static void device_free(struct audio_device *dev) in device_free()
146 static void device_set_state(struct audio_device *dev, audio_state_t new_state) in device_set_state()
194 struct audio_device *dev = user_data; in control_connect_timeout()
204 static gboolean device_set_control_timer(struct audio_device *dev) in device_set_control_timer()
221 static void device_remove_control_timer(struct audio_device *dev) in device_remove_control_timer()
230 struct audio_device *dev = user_data; in avdtp_connect_timeout()
247 static gboolean device_set_avdtp_timer(struct audio_device *dev) in device_set_avdtp_timer()
264 static void device_remove_avdtp_timer(struct audio_device *dev) in device_remove_avdtp_timer()
273 struct audio_device *dev = user_data; in headset_connect_timeout()
291 static gboolean device_set_headset_timer(struct audio_device *dev) in device_set_headset_timer()
[all …]
Dheadset.c173 int (*callback) (struct audio_device *device, const char *buf);
199 static int rfcomm_connect(struct audio_device *device, headset_stream_cb_t cb,
201 static int get_records(struct audio_device *device, headset_stream_cb_t cb,
338 static int supported_features(struct audio_device *device, const char *buf) in supported_features()
399 static int report_indicators(struct audio_device *device, const char *buf) in report_indicators()
428 static void pending_connect_complete(struct connect_cb *cb, struct audio_device *dev) in pending_connect_complete()
438 static void pending_connect_finalize(struct audio_device *dev) in pending_connect_finalize()
517 struct audio_device *device = l->data; in send_foreach_headset()
561 struct audio_device *dev = user_data; in sco_connect_cb()
611 static int sco_connect(struct audio_device *dev, headset_stream_cb_t cb, in sco_connect()
[all …]
Dsink.h34 typedef void (*sink_state_cb) (struct audio_device *dev,
42 struct sink *sink_init(struct audio_device *dev);
43 void sink_unregister(struct audio_device *dev);
44 gboolean sink_is_active(struct audio_device *dev);
45 avdtp_state_t sink_get_state(struct audio_device *dev);
46 gboolean sink_new_stream(struct audio_device *dev, struct avdtp *session,
Dsource.h35 typedef void (*source_state_cb) (struct audio_device *dev,
43 struct source *source_init(struct audio_device *dev);
44 void source_unregister(struct audio_device *dev);
45 gboolean source_is_active(struct audio_device *dev);
46 avdtp_state_t source_get_state(struct audio_device *dev);
47 gboolean source_new_stream(struct audio_device *dev, struct avdtp *session,
Dgateway.c122 struct audio_device *device);
124 int gateway_close(struct audio_device *device);
126 static void rfcomm_start_watch(struct audio_device *dev) in rfcomm_start_watch()
135 static void rfcomm_stop_watch(struct audio_device *dev) in rfcomm_stop_watch()
317 static void process_ind_change(struct audio_device *dev, guint index, in process_ind_change()
387 static void process_ring(struct audio_device *device, GIOChannel *chan, in process_ring()
426 struct audio_device *device) in rfcomm_ag_data_cb()
493 struct audio_device *dev) in sco_io_cb()
513 struct audio_device *dev = (struct audio_device *) user_data; in sco_connect_cb()
542 struct audio_device *dev = user_data; in rfcomm_connect_cb()
[all …]
Ddevice.h53 struct audio_device { struct
73 struct audio_device *audio_device_register(DBusConnection *conn, argument
78 void audio_device_unregister(struct audio_device *device);
80 gboolean audio_device_is_active(struct audio_device *dev,
85 int audio_device_request_authorization(struct audio_device *dev,
Dsink.c59 struct audio_device *dev;
100 static void sink_set_state(struct audio_device *dev, sink_state_t new_state) in sink_set_state()
121 static void avdtp_state_callback(struct audio_device *dev, in avdtp_state_callback()
160 static void pending_request_free(struct audio_device *dev, in pending_request_free()
176 struct audio_device *device = user_data; in disconnect_cb()
190 struct audio_device *dev = user_data; in stream_state_changed()
569 struct audio_device *dev = data; in sink_connect()
608 struct audio_device *device = data; in sink_disconnect()
647 struct audio_device *device = data; in sink_suspend()
681 struct audio_device *device = data; in sink_resume()
[all …]
Dsource.c60 struct audio_device *dev;
101 static void source_set_state(struct audio_device *dev, source_state_t new_state) in source_set_state()
122 static void avdtp_state_callback(struct audio_device *dev, in avdtp_state_callback()
153 static void pending_request_free(struct audio_device *dev, in pending_request_free()
169 struct audio_device *device = user_data; in disconnect_cb()
183 struct audio_device *dev = user_data; in stream_state_changed()
537 struct audio_device *dev = data; in source_connect()
576 struct audio_device *device = data; in source_disconnect()
615 struct audio_device *device = data; in source_get_properties()
657 static void source_free(struct audio_device *dev) in source_free()
[all …]
Dmanager.h40 struct audio_device *manager_find_device(const char *path,
46 struct audio_device *manager_get_device(const bdaddr_t *src,
50 gboolean manager_allow_headset_connection(struct audio_device *device);
Dcontrol.c169 struct audio_device *dev;
378 static void avctp_disconnected(struct audio_device *dev) in avctp_disconnected()
406 struct audio_device *dev = control->dev; in avctp_set_state()
681 struct audio_device *dev; in avctp_confirm_cb()
753 gboolean avrcp_connect(struct audio_device *dev) in avrcp_connect()
781 void avrcp_disconnect(struct audio_device *dev) in avrcp_disconnect()
912 struct audio_device *device = data; in control_is_connected()
966 struct audio_device *device = data; in volume_up()
996 struct audio_device *device = data; in volume_down()
1026 struct audio_device *device = data; in control_get_properties()
[all …]
Dunix.c64 typedef void (*notify_cb_t) (struct audio_device *dev, void *data);
77 struct audio_device *dev;
91 gboolean (*cancel) (struct audio_device *dev, unsigned int id);
174 static service_type_t select_service(struct audio_device *dev, const char *interface) in select_service()
222 static uint8_t headset_generate_capability(struct audio_device *dev, in headset_generate_capability()
250 static void headset_discovery_complete(struct audio_device *dev, void *user_data) in headset_discovery_complete()
283 static void headset_setup_complete(struct audio_device *dev, void *user_data) in headset_setup_complete()
313 static void gateway_setup_complete(struct audio_device *dev, void *user_data) in gateway_setup_complete()
339 static void headset_resume_complete(struct audio_device *dev, void *user_data) in headset_resume_complete()
383 static void gateway_resume_complete(struct audio_device *dev, void *user_data) in gateway_resume_complete()
[all …]
Dmanager.c156 static void handle_uuid(const char *uuidstr, struct audio_device *device) in handle_uuid()
410 struct audio_device *device = user_data; in headset_auth_cb()
433 struct audio_device *device; in ag_confirm()
508 struct audio_device *device = user_data; in gateway_auth_cb()
530 struct audio_device *device; in hf_io_cb()
742 struct audio_device *audio_dev; in audio_probe()
760 struct audio_device *dev; in audio_remove()
1156 struct audio_device *manager_find_device(const char *path, in manager_find_device()
1165 struct audio_device *dev = l->data; in manager_find_device()
1205 struct audio_device *manager_get_device(const bdaddr_t *src, in manager_get_device()
[all …]
Dunix.h25 void unix_device_removed(struct audio_device *dev);
Da2dp.c82 struct audio_device *dev;
139 static struct audio_device *a2dp_get_dev(struct avdtp *session) in a2dp_get_dev()
242 static struct a2dp_setup *find_setup_by_dev(struct audio_device *dev) in find_setup_by_dev()
288 struct audio_device *dev; in sbc_setconf_ind()
406 struct audio_device *dev; in mpeg_setconf_ind()
484 struct audio_device *dev; in setconf_cfm()
1511 gboolean a2dp_cancel(struct audio_device *dev, unsigned int id) in a2dp_cancel()
Dmain.c74 struct audio_device *device; in sco_server_cb()
Da2dp.h143 gboolean a2dp_cancel(struct audio_device *dev, unsigned int id);
Davdtp.h122 typedef void (*avdtp_session_state_cb) (struct audio_device *dev,
Davdtp.c628 struct audio_device *dev; in disconnect_timeout()
727 struct audio_device *dev; in avdtp_set_state()
1243 struct audio_device *dev; in avdtp_setconf_cmd()
2087 struct audio_device *dev; in avdtp_confirm_cb()