Home | History | Annotate | Download | only in audio

Lines Matching refs:device

44 #include "device.h"
74 struct audio_device *device;
93 device = manager_find_device(NULL, &src, &dst, AUDIO_HEADSET_INTERFACE,
95 if (!device)
96 device = manager_find_device(NULL, &src, &dst,
100 if (!device)
103 if (device->headset) {
104 if (headset_get_state(device) < HEADSET_STATE_CONNECTED) {
109 if (!get_hfp_active(device)) {
115 if (headset_connect_sco(device, chan) < 0)
118 headset_set_state(device, HEADSET_STATE_PLAYING);
119 } else if (device->gateway) {
120 if (!gateway_is_connected(device)) {
125 if (gateway_connect_sco(device, chan) < 0)