Home | History | Annotate | Download | only in server

Lines Matching refs:active

46 /* Returns the active profile specific iodev. */
49 struct bt_node *active = (struct bt_node *)iodev->active_node;
51 return active->profile_dev;
84 * it has already been open for streaming, the new active profile will
107 /* Checks if bt device is active for the given profile.
281 /* If the first private iodev doesn't match the active profile stored on
289 struct bt_node *active = (struct bt_node *)iodev->active_node;
291 if (device_using_profile(btio->device, active->profile))
297 if (n == active)
301 active->profile = n->profile;
302 active->profile_dev = n->profile_dev;
318 struct bt_node *active;
349 active = (struct bt_node *)calloc(1, sizeof(*active));
350 if (!active)
352 active->base.dev = iodev;
353 active->base.idx = btio->next_node_id++;
354 active->base.type = CRAS_NODE_TYPE_BLUETOOTH;
355 active->base.volume = 100;
356 active->base.plugged = 1;
357 active->base.stable_id = SuperFastHash(
361 active->base.stable_id_new = active->base.stable_id;
362 active->profile = profile;
363 active->profile_dev = dev;
364 gettimeofday(&active->base.plugged_time, NULL);
365 strcpy(active->base.name, dev->info.name);
367 if (!is_utf8_string(active->base.name))
368 strcpy(active->base.name, DEFAULT_BT_DEVICE_NAME);
369 cras_iodev_add_node(iodev, &active->base);
375 /* Default active profile to a2dp whenever it's allowed. */
388 cras_iodev_set_active_node(iodev, &active->base);
476 struct bt_node *active, *btnode;
479 active = (struct bt_node *)bt_iodev->active_node;
481 if (active->profile_dev == dev) {
484 /* Skip the active node and the node we're trying
486 if (btnode == active || btnode->profile_dev == dev)
492 try_profile = active->profile;
508 /* If this is the active node, reset it. Otherwise delete
519 /* The node of active profile could have been removed, update it.
520 * Return err when fail to locate the active profile dev. */