Home | History | Annotate | Download | only in server

Lines Matching defs:device

80  *    device - The bt device associated with this audio gateway.
91 struct cras_bt_device *device;
116 /* If the bt device is not using a2dp, do a deeper clean up
118 if (!cras_bt_device_has_a2dp(ag->device))
119 cras_bt_device_disconnect(ag->conn, ag->device);
124 /* Checks if there already a audio gateway connected for device. */
125 static int has_audio_gateway(struct cras_bt_device *device)
129 if (ag->device == device)
150 return cras_bt_device_audio_gateway_initialized(ag->device);
169 /* Check if there's already an A2DP/HFP device. */
171 if (cras_bt_device_has_a2dp(ag->device))
175 /* Check if there's already an A2DP-only device. */
186 struct cras_bt_device *device = (struct cras_bt_device *)data;
190 /* Check if the device is still connected. */
192 if (ag->device == device)
207 if (a2dp_device && a2dp_device != device) {
215 struct cras_bt_device *device,
220 if (has_audio_gateway(device)) {
222 cras_bt_device_name(device), profile->name);
227 if (check_for_conflict_ag(device))
230 cras_bt_device_set_append_iodev_cb(device, possibly_remove_conflict_dev);
232 ag->device = device;
237 device,
245 struct cras_bt_device *device)
249 if (ag->slc_handle && ag->device == device)
279 struct cras_bt_device *device,
284 if (has_audio_gateway(device)) {
286 cras_bt_device_name(device), profile->name);
291 if (check_for_conflict_ag(device))
294 cras_bt_device_set_append_iodev_cb(device, possibly_remove_conflict_dev);
296 ag->device = device;
299 ag->slc_handle = hfp_slc_create(rfcomm_fd, 1, device, NULL,
319 int cras_hfp_ag_start(struct cras_bt_device *device)
323 DL_SEARCH_SCALAR(connected_ags, ag, device, device);
328 ag->idev = hfp_iodev_create(CRAS_STREAM_INPUT, ag->device,
331 ag->odev = hfp_iodev_create(CRAS_STREAM_OUTPUT, ag->device,
350 void cras_hfp_ag_suspend_connected_device(struct cras_bt_device *device)
354 DL_SEARCH_SCALAR(connected_ags, ag, device, device);
362 * might want this to return the HFP device user is selected. */
366 struct hfp_slc_handle *cras_hfp_ag_get_slc(struct cras_bt_device *device)
370 if (ag->device == device)