Lines Matching refs:profile
30 unsigned int profile; member
58 enum cras_bt_device_profile profile) in add_profile_dev() argument
77 n->profile = profile; in add_profile_dev()
88 enum cras_bt_device_profile profile) in bt_switch_to_profile() argument
90 switch (profile) { in bt_switch_to_profile()
103 syslog(LOG_ERR, "Unexpect profile %u", profile); in bt_switch_to_profile()
111 unsigned int profile) in device_using_profile() argument
113 return cras_bt_device_get_active_profile(device) & profile; in device_using_profile()
308 if (device_using_profile(btio->device, active->profile)) in update_active_node()
317 if (device_using_profile(btio->device, n->profile)) { in update_active_node()
318 active->profile = n->profile; in update_active_node()
379 enum cras_bt_device_profile profile) in cras_bt_io_create() argument
439 active->profile = profile; in cras_bt_io_create()
448 node = add_profile_dev(&btio->base, dev, profile); in cras_bt_io_create()
454 (profile == CRAS_BT_DEVICE_PROFILE_A2DP_SOURCE && in cras_bt_io_create()
456 bt_switch_to_profile(device, profile); in cras_bt_io_create()
509 enum cras_bt_device_profile profile) in cras_bt_io_get_profile() argument
514 if (n->profile & profile) in cras_bt_io_get_profile()
521 enum cras_bt_device_profile profile) in cras_bt_io_append() argument
526 if (cras_bt_io_get_profile(bt_iodev, profile)) in cras_bt_io_append()
529 node = add_profile_dev(bt_iodev, dev, profile); in cras_bt_io_append()
533 if (profile == CRAS_BT_DEVICE_PROFILE_A2DP_SOURCE && in cras_bt_io_append()
544 enum cras_bt_device_profile profile) in cras_bt_io_on_profile() argument
547 return !!(profile & btnode->profile); in cras_bt_io_on_profile()
566 try_profile = btnode->profile; in cras_bt_io_try_remove()
570 try_profile = active->profile; in cras_bt_io_try_remove()
589 btnode->profile = 0; in cras_bt_io_remove()
600 if ((btnode->profile == 0) || (btnode->profile_dev == NULL)) in cras_bt_io_remove()