Home
last modified time | relevance | path

Searched refs:BT_AUDIO_DIR_SOURCE (Results 1 – 22 of 22) sorted by relevance

/Zephyr-Core-3.5.0/tests/bsim/bluetooth/audio/src/
Dpacs_notify_server_test.c116 bt_pacs_cap_register(BT_AUDIO_DIR_SOURCE, caps); in trigger_notifications()
125 err = bt_pacs_set_location(BT_AUDIO_DIR_SOURCE, src_loc); in trigger_notifications()
154 bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SOURCE, BT_AUDIO_CONTEXT_TYPE_ANY); in test_main()
156 bt_pacs_set_available_contexts(BT_AUDIO_DIR_SOURCE, BT_AUDIO_CONTEXT_TYPE_ANY); in test_main()
160 bt_pacs_cap_register(BT_AUDIO_DIR_SOURCE, &caps_1); in test_main()
168 err = bt_pacs_set_location(BT_AUDIO_DIR_SOURCE, BT_AUDIO_LOCATION_FRONT_RIGHT); in test_main()
Dbap_unicast_server_test.c255 err = bt_pacs_set_location(BT_AUDIO_DIR_SOURCE, (BT_AUDIO_LOCATION_FRONT_LEFT | in set_location()
286 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SOURCE, in set_available_contexts()
293 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SOURCE, in set_available_contexts()
326 err = bt_pacs_cap_register(BT_AUDIO_DIR_SOURCE, &cap); in init()
Dcap_acceptor_test.c486 err = bt_pacs_set_location(BT_AUDIO_DIR_SOURCE, in set_location()
513 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SOURCE, SOURCE_CONTEXT); in set_supported_contexts()
537 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SOURCE, SOURCE_CONTEXT); in set_available_contexts()
588 err = bt_pacs_cap_register(BT_AUDIO_DIR_SOURCE, &unicast_cap); in init()
Dcap_initiator_unicast_test.c294 } else if (dir == BT_AUDIO_DIR_SOURCE) { in discover_cb()
308 } else if (dir == BT_AUDIO_DIR_SOURCE) { in endpoint_cb()
456 err = bt_bap_unicast_client_discover(conn, BT_AUDIO_DIR_SOURCE); in discover_source()
Dbap_unicast_client_test.c483 err = bt_bap_unicast_client_discover(default_conn, BT_AUDIO_DIR_SOURCE); in discover_sources()
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/
Dbap_iso.c153 if (dir == BT_AUDIO_DIR_SOURCE) { in bap_iso_get_iso_dir()
179 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_bind_ep()
199 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_unbind_ep()
217 __ASSERT(dir == BT_AUDIO_DIR_SINK || dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_get_ep()
250 if (dir == BT_AUDIO_DIR_SOURCE) { in bt_bap_iso_bind_stream()
275 if (dir == BT_AUDIO_DIR_SOURCE) { in bt_bap_iso_unbind_stream()
291 __ASSERT(dir == BT_AUDIO_DIR_SINK || dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_get_stream()
297 if (dir == BT_AUDIO_DIR_SOURCE) { in bt_bap_iso_get_stream()
Dpacs.c547 case BT_AUDIO_DIR_SOURCE: in pacs_get()
663 case BT_AUDIO_DIR_SOURCE: in pac_notify_loc()
697 case BT_AUDIO_DIR_SOURCE: in pac_notify()
849 err = pac_notify(conn, BT_AUDIO_DIR_SOURCE); in notify_cb()
857 err = pac_notify_loc(conn, BT_AUDIO_DIR_SOURCE); in notify_cb()
971 if (dir == BT_AUDIO_DIR_SOURCE) { in bt_pacs_context_available()
1053 if (IS_ENABLED(CONFIG_BT_PAC_SRC_NOTIFIABLE) && dir == BT_AUDIO_DIR_SOURCE) { in bt_pacs_cap_register()
1089 case BT_AUDIO_DIR_SOURCE: in bt_pacs_cap_unregister()
1107 case BT_AUDIO_DIR_SOURCE: in bt_pacs_set_location()
1122 case BT_AUDIO_DIR_SOURCE: in bt_pacs_set_available_contexts()
[all …]
Daudio_internal.h69 case BT_AUDIO_DIR_SOURCE: in bt_audio_dir_str()
Dbap_unicast_client.c50 #define PAC_DIR_UNUSED(dir) ((dir) != BT_AUDIO_DIR_SINK && (dir) != BT_AUDIO_DIR_SOURCE)
135 if (ep->receiver_ready != true || ep->dir != BT_AUDIO_DIR_SOURCE) { in unicast_client_send_start()
316 if (ep->receiver_ready && ep->dir == BT_AUDIO_DIR_SOURCE) { in unicast_client_ep_iso_connected()
508 case BT_AUDIO_DIR_SOURCE: in unicast_client_ep_new()
618 if (ep->dir == BT_AUDIO_DIR_SOURCE) { in unicast_client_ep_qos_update()
777 if (ep->dir == BT_AUDIO_DIR_SOURCE) { in unicast_client_ep_qos_state()
1021 if (ep->dir == BT_AUDIO_DIR_SOURCE) { in unicast_client_ep_set_status()
1092 if (ep->dir == BT_AUDIO_DIR_SOURCE) { in unicast_client_ep_set_status()
1130 if (ep->dir == BT_AUDIO_DIR_SOURCE) { in unicast_client_ep_set_status()
2286 if (bt_bap_iso_get_ep(true, iso, BT_AUDIO_DIR_SOURCE) == NULL) { in unicast_client_codec_qos_to_iso_qos()
[all …]
Dascs.c53 (_id > CONFIG_BT_ASCS_ASE_SNK_COUNT ? BT_AUDIO_DIR_SOURCE : BT_AUDIO_DIR_SINK)
471 valid_state_transition = ase->ep.dir == BT_AUDIO_DIR_SOURCE; in ascs_ep_set_state()
506 valid_state_transition = ase->ep.dir == BT_AUDIO_DIR_SOURCE; in ascs_ep_set_state()
520 valid_state_transition = ase->ep.dir == BT_AUDIO_DIR_SOURCE; in ascs_ep_set_state()
798 } else if (ep->dir == BT_AUDIO_DIR_SOURCE) { in ascs_update_sdu_size()
1074 if (ep->dir == BT_AUDIO_DIR_SOURCE) { in ase_disable()
Dbap_stream.c140 (role == BT_CONN_ROLE_PERIPHERAL && dir == BT_AUDIO_DIR_SOURCE)) { in bt_bap_ep_get_info()
Dbap_broadcast_source.c235 ep->dir = BT_AUDIO_DIR_SOURCE; in broadcast_source_ep_init()
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_peripheral/src/
Dbap_unicast_sr.c136 if (dir == BT_AUDIO_DIR_SOURCE) { in lc3_config()
356 bt_pacs_cap_register(BT_AUDIO_DIR_SOURCE, &cap); in bap_unicast_sr_init()
359 bt_pacs_set_location(BT_AUDIO_DIR_SOURCE, BT_AUDIO_LOCATION_FRONT_LEFT); in bap_unicast_sr_init()
361 bt_pacs_set_location(BT_AUDIO_DIR_SOURCE, BT_AUDIO_LOCATION_FRONT_RIGHT); in bap_unicast_sr_init()
364 bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SOURCE, in bap_unicast_sr_init()
366 bt_pacs_set_available_contexts(BT_AUDIO_DIR_SOURCE, in bap_unicast_sr_init()
/Zephyr-Core-3.5.0/samples/bluetooth/unicast_audio_server/src/
Dmain.c245 return BT_AUDIO_DIR_SOURCE; in stream_dir()
261 if (dir == BT_AUDIO_DIR_SOURCE) { in stream_alloc()
300 if (dir == BT_AUDIO_DIR_SOURCE) { in lc3_config()
635 err = bt_pacs_set_location(BT_AUDIO_DIR_SOURCE, in set_location()
665 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SOURCE, in set_supported_contexts()
694 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SOURCE, in set_available_contexts()
722 bt_pacs_cap_register(BT_AUDIO_DIR_SOURCE, &cap_source); in main()
/Zephyr-Core-3.5.0/samples/bluetooth/hap_ha/src/
Dmain.c225 bt_pacs_set_location(BT_AUDIO_DIR_SOURCE, in main()
227 bt_pacs_set_available_contexts(BT_AUDIO_DIR_SOURCE, in main()
Dbap_unicast_sr.c209 if (dir == BT_AUDIO_DIR_SOURCE) { in lc3_config()
417 bt_pacs_cap_register(BT_AUDIO_DIR_SOURCE, &cap_source); in bap_unicast_sr_init()
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_central/src/
Dcap_initiator.c242 } else if (dir == BT_AUDIO_DIR_SOURCE) { in discover_cb()
256 if (dir == BT_AUDIO_DIR_SOURCE) { in endpoint_cb()
286 err = bt_bap_unicast_client_discover(conn, BT_AUDIO_DIR_SOURCE); in discover_sources()
/Zephyr-Core-3.5.0/tests/bluetooth/tester/src/
Dbtp_bap.c346 if (dir == BT_AUDIO_DIR_SOURCE) { in lc3_config()
979 err = bt_bap_unicast_client_discover(conn, BT_AUDIO_DIR_SOURCE); in discover_cb()
1880 if (stream->ep->dir == BT_AUDIO_DIR_SOURCE) { in client_create_unicast_group()
2431 err = bt_pacs_set_location(BT_AUDIO_DIR_SOURCE, in set_location()
2445 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SOURCE, in set_available_contexts()
2464 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SOURCE, in set_supported_contexts()
2508 err = bt_pacs_cap_unregister(BT_AUDIO_DIR_SOURCE, in pacs_update_characteristic()
2517 err = bt_pacs_set_location(BT_AUDIO_DIR_SOURCE, in pacs_update_characteristic()
2523 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SOURCE, in pacs_update_characteristic()
2527 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SOURCE, in pacs_update_characteristic()
[all …]
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/shell/
Dbap.c741 return BT_AUDIO_DIR_SOURCE; in stream_dir()
812 if (dir == BT_AUDIO_DIR_SOURCE) { in endpoint_cb()
827 dir = BT_AUDIO_DIR_SOURCE; in discover_all()
962 dir = BT_AUDIO_DIR_SOURCE; in cmd_discover()
2380 dir = BT_AUDIO_DIR_SOURCE; in cmd_set_loc()
2421 dir = BT_AUDIO_DIR_SOURCE; in cmd_context()
2484 bt_pacs_cap_register(BT_AUDIO_DIR_SOURCE, &cap_source); in cmd_init()
2503 err = bt_pacs_set_location(BT_AUDIO_DIR_SOURCE, LOCATION); in cmd_init()
2506 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SOURCE, in cmd_init()
2511 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SOURCE, in cmd_init()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/audio/ascs/src/
Dtest_ase_state_transition.c607 expect_bt_bap_unicast_server_cb_config_called_once(conn, EMPTY, BT_AUDIO_DIR_SOURCE, EMPTY); in ZTEST_F()
714 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SOURCE, EMPTY); in ZTEST_F()
748 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SOURCE, EMPTY); in ZTEST_F()
940 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SOURCE, EMPTY); in ZTEST_F()
980 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SOURCE, EMPTY); in ZTEST_F()
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/audio/
Daudio.h387 BT_AUDIO_DIR_SOURCE = 0x02, enumerator
/Zephyr-Core-3.5.0/samples/bluetooth/unicast_audio_client/src/
Dmain.c733 if (dir == BT_AUDIO_DIR_SOURCE) { in endpoint_cb()
832 err = bt_bap_unicast_client_discover(default_conn, BT_AUDIO_DIR_SOURCE); in discover_sources()