Home
last modified time | relevance | path

Searched refs:BT_AUDIO_DIR_SINK (Results 1 – 25 of 27) sorted by relevance

12

/Zephyr-Core-3.5.0/tests/bsim/bluetooth/audio/src/
Dpacs_notify_server_test.c115 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, caps); in trigger_notifications()
119 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, snk_loc); in trigger_notifications()
132 bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, supported); in trigger_notifications()
136 bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, available); in trigger_notifications()
153 bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, BT_AUDIO_CONTEXT_TYPE_ANY); in test_main()
155 bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, BT_AUDIO_CONTEXT_TYPE_ANY); in test_main()
159 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &caps_1); in test_main()
162 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, BT_AUDIO_LOCATION_FRONT_LEFT); in test_main()
Dbap_unicast_server_test.c220 if (ep_info.dir == BT_AUDIO_DIR_SINK) { in stream_enabled_cb()
247 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, BT_AUDIO_LOCATION_FRONT_CENTER); in set_location()
270 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, in set_available_contexts()
278 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in set_available_contexts()
320 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap); in init()
Dcap_acceptor_test.c313 if (auto_start_sink_streams && ep_info.dir == BT_AUDIO_DIR_SINK) { in unicast_stream_enabled_cb()
477 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, in set_location()
503 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, SINK_CONTEXT); in set_supported_contexts()
531 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, SINK_CONTEXT); in set_available_contexts()
580 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &unicast_cap); in init()
620 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &broadcast_cap); in init()
Dbap_unicast_client_test.c275 if (dir == BT_AUDIO_DIR_SINK) { in endpoint_cb()
461 err = bt_bap_unicast_client_discover(default_conn, BT_AUDIO_DIR_SINK); in discover_sinks()
Dbap_broadcast_sink_test.c225 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap); in init()
Dcap_initiator_unicast_test.c290 if (dir == BT_AUDIO_DIR_SINK) { in discover_cb()
305 if (dir == BT_AUDIO_DIR_SINK) { in endpoint_cb()
434 err = bt_bap_unicast_client_discover(conn, BT_AUDIO_DIR_SINK); in discover_sink()
/Zephyr-Core-3.5.0/samples/bluetooth/hap_ha/src/
Dmain.c213 bt_pacs_set_location(BT_AUDIO_DIR_SINK, in main()
217 bt_pacs_set_location(BT_AUDIO_DIR_SINK, in main()
221 bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in main()
Dbap_unicast_sr.c395 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap_sink); in bap_unicast_sr_init()
404 bt_pacs_set_location(BT_AUDIO_DIR_SINK, in bap_unicast_sr_init()
408 bt_pacs_set_location(BT_AUDIO_DIR_SINK, in bap_unicast_sr_init()
411 bt_pacs_set_location(BT_AUDIO_DIR_SINK, in bap_unicast_sr_init()
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_peripheral/src/
Dbap_unicast_sr.c340 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap); in bap_unicast_sr_init()
343 bt_pacs_set_location(BT_AUDIO_DIR_SINK, BT_AUDIO_LOCATION_FRONT_LEFT); in bap_unicast_sr_init()
345 bt_pacs_set_location(BT_AUDIO_DIR_SINK, BT_AUDIO_LOCATION_FRONT_RIGHT); in bap_unicast_sr_init()
348 bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, in bap_unicast_sr_init()
350 bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in bap_unicast_sr_init()
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/
Dbap_iso.c160 if (dir == BT_AUDIO_DIR_SINK) { 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()
291 __ASSERT(dir == BT_AUDIO_DIR_SINK || dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_get_stream()
Dpacs.c543 case BT_AUDIO_DIR_SINK: in pacs_get()
655 case BT_AUDIO_DIR_SINK: in pac_notify_loc()
692 case BT_AUDIO_DIR_SINK: in pac_notify()
832 err = pac_notify(conn, BT_AUDIO_DIR_SINK); in notify_cb()
841 err = pac_notify_loc(conn, BT_AUDIO_DIR_SINK); in notify_cb()
975 if (dir == BT_AUDIO_DIR_SINK) { in bt_pacs_context_available()
1048 if (IS_ENABLED(CONFIG_BT_PAC_SNK_NOTIFIABLE) && dir == BT_AUDIO_DIR_SINK) { in bt_pacs_cap_register()
1083 case BT_AUDIO_DIR_SINK: in bt_pacs_cap_unregister()
1104 case BT_AUDIO_DIR_SINK: in bt_pacs_set_location()
1120 case BT_AUDIO_DIR_SINK: in bt_pacs_set_available_contexts()
[all …]
Daudio_internal.h67 case BT_AUDIO_DIR_SINK: in bt_audio_dir_str()
Dbap_unicast_server.c96 if (ep->dir != BT_AUDIO_DIR_SINK) { in bt_bap_unicast_server_start()
Dbap_unicast_client.c50 #define PAC_DIR_UNUSED(dir) ((dir) != BT_AUDIO_DIR_SINK && (dir) != BT_AUDIO_DIR_SOURCE)
502 case BT_AUDIO_DIR_SINK: in unicast_client_ep_new()
623 } else if (ep->dir == BT_AUDIO_DIR_SINK) { in unicast_client_ep_qos_update()
731 if (ep->dir == BT_AUDIO_DIR_SINK && stream->ops != NULL && stream->ops->disabled != NULL) { in unicast_client_ep_qos_state()
2281 if (dir == BT_AUDIO_DIR_SINK) { in unicast_client_codec_qos_to_iso_qos()
2296 if (bt_bap_iso_get_ep(true, iso, BT_AUDIO_DIR_SINK) == NULL) { in unicast_client_codec_qos_to_iso_qos()
2365 unicast_group_add_stream(group, param->tx_param, iso, BT_AUDIO_DIR_SINK); in unicast_group_add_stream_pair()
2410 unicast_group_del_stream(group, param->tx_param->stream, BT_AUDIO_DIR_SINK); in unicast_group_del_stream_pair()
2451 BT_AUDIO_DIR_SINK); in unicast_group_free()
2826 case BT_AUDIO_DIR_SINK: in bt_bap_unicast_client_qos()
[all …]
Dascs.c53 (_id > CONFIG_BT_ASCS_ASE_SNK_COUNT ? BT_AUDIO_DIR_SOURCE : BT_AUDIO_DIR_SINK)
192 if (ep->dir == BT_AUDIO_DIR_SINK) { in ascs_disconnect_stream_work_handler()
322 if (ase->ep.dir == BT_AUDIO_DIR_SINK && ase->ep.receiver_ready && ase->ep.iso != NULL && in ase_set_state_enabling()
478 valid_state_transition = ase->ep.dir == BT_AUDIO_DIR_SINK || in ascs_ep_set_state()
796 if (ep->dir == BT_AUDIO_DIR_SINK) { in ascs_update_sdu_size()
835 if (ep->dir == BT_AUDIO_DIR_SINK && ep->receiver_ready) { in ascs_ep_iso_connected()
1773 if (ep->dir == BT_AUDIO_DIR_SINK) { in ase_stream_qos()
2388 if (ASE_DIR(id) == BT_AUDIO_DIR_SINK) { in ascs_start()
2599 if (ASE_DIR(id) == BT_AUDIO_DIR_SINK) { in ascs_stop()
Dbap_broadcast_sink.c718 ep->dir = BT_AUDIO_DIR_SINK; in broadcast_sink_ep_init()
969 bt_pacs_cap_foreach(BT_AUDIO_DIR_SINK, codec_lookup_id, in bt_bap_broadcast_sink_sync()
/Zephyr-Core-3.5.0/samples/bluetooth/unicast_audio_server/src/
Dmain.c251 return BT_AUDIO_DIR_SINK; in stream_dir()
554 if (stream_dir(stream) == BT_AUDIO_DIR_SINK) { in stream_enabled_cb()
626 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, in set_location()
654 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, in set_supported_contexts()
685 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in set_available_contexts()
721 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap_sink); in main()
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_central/src/
Dcap_initiator.c239 if (dir == BT_AUDIO_DIR_SINK) { in discover_cb()
258 } else if (dir == BT_AUDIO_DIR_SINK) { in endpoint_cb()
267 err = bt_bap_unicast_client_discover(conn, BT_AUDIO_DIR_SINK); in discover_sinks()
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/shell/
Dbap.c731 return BT_AUDIO_DIR_SINK; in stream_dir()
806 if (dir == BT_AUDIO_DIR_SINK) { in endpoint_cb()
826 if (dir == BT_AUDIO_DIR_SINK) { in discover_all()
955 dir = BT_AUDIO_DIR_SINK; in cmd_discover()
1303 if (stream_dir(stream) == BT_AUDIO_DIR_SINK) { in create_unicast_group()
1908 if (ep_info.dir == BT_AUDIO_DIR_SINK) { in stream_enabled_cb()
2378 dir = BT_AUDIO_DIR_SINK; in cmd_set_loc()
2419 dir = BT_AUDIO_DIR_SINK; in cmd_context()
2480 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap_sink); in cmd_init()
2488 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, LOCATION); in cmd_init()
[all …]
Dcap_initiator.c381 if (ep_info.dir == BT_AUDIO_DIR_SINK) { in cmd_cap_initiator_unicast_update()
423 if (ep_info.dir == BT_AUDIO_DIR_SINK) { in cmd_cap_initiator_unicast_update()
/Zephyr-Core-3.5.0/tests/bluetooth/tester/src/
Dbtp_bap.c576 if (conn_info.role == BT_HCI_ROLE_PERIPHERAL && info.dir == BT_AUDIO_DIR_SINK) { in stream_enabled()
644 if (stream->ep->dir == BT_AUDIO_DIR_SINK) { in stream_released()
978 if (dir == BT_AUDIO_DIR_SINK) { in discover_cb()
1032 err = bt_bap_unicast_client_discover(conn, BT_AUDIO_DIR_SINK); in bap_discover()
2424 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, in set_location()
2451 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in set_available_contexts()
2470 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, in set_supported_contexts()
2504 err = bt_pacs_cap_unregister(BT_AUDIO_DIR_SINK, in pacs_update_characteristic()
2512 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, in pacs_update_characteristic()
2560 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in pacs_set_available_contexts()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/audio/ascs/src/
Dtest_ase_state_transition.c90 expect_bt_bap_unicast_server_cb_config_called_once(conn, EMPTY, BT_AUDIO_DIR_SINK, EMPTY); in ZTEST_F()
176 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SINK, EMPTY); in ZTEST_F()
210 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SINK, EMPTY); in ZTEST_F()
359 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SINK, EMPTY); in ZTEST_F()
399 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SINK, EMPTY); in ZTEST_F()
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_bmr/src/
Dbap_broadcast_sink.c320 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap); in bap_broadcast_sink_init()
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/audio/
Daudio.h386 BT_AUDIO_DIR_SINK = 0x01, enumerator
/Zephyr-Core-3.5.0/samples/bluetooth/unicast_audio_client/src/
Dmain.c735 } else if (dir == BT_AUDIO_DIR_SINK) { in endpoint_cb()
811 err = bt_bap_unicast_client_discover(default_conn, BT_AUDIO_DIR_SINK); in discover_sinks()

12