Lines Matching refs:audio_device
43 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);
79 gboolean get_hfp_active(struct audio_device *dev);
80 void set_hfp_active(struct audio_device *dev, gboolean active);
82 void headset_set_authorized(struct audio_device *dev);
83 int headset_connect_rfcomm(struct audio_device *dev, GIOChannel *chan);
84 int headset_connect_sco(struct audio_device *dev, GIOChannel *io);
86 headset_state_t headset_get_state(struct audio_device *dev);
87 void headset_set_state(struct audio_device *dev, headset_state_t state);
89 int headset_get_channel(struct audio_device *dev);
91 int headset_get_sco_fd(struct audio_device *dev);
92 gboolean headset_get_nrec(struct audio_device *dev);
93 gboolean headset_get_sco_hci(struct audio_device *dev);
95 gboolean headset_is_active(struct audio_device *dev);
97 headset_lock_t headset_get_lock(struct audio_device *dev);
98 gboolean headset_lock(struct audio_device *dev, headset_lock_t lock);
99 gboolean headset_unlock(struct audio_device *dev, headset_lock_t lock);
100 gboolean headset_suspend(struct audio_device *dev, void *data);
101 gboolean headset_play(struct audio_device *dev, void *data);
102 void headset_shutdown(struct audio_device *dev);