Home
last modified time | relevance | path

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

12

/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dpacs_notify_server_test.c133 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, caps); in trigger_notifications()
137 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, snk_loc); in trigger_notifications()
150 bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, supported); in trigger_notifications()
154 bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, available); in trigger_notifications()
172 bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, BT_AUDIO_CONTEXT_TYPE_ANY); in test_main()
174 bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, BT_AUDIO_CONTEXT_TYPE_ANY); in test_main()
178 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &caps_1); in test_main()
181 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, BT_AUDIO_LOCATION_FRONT_LEFT); in test_main()
254 available = bt_pacs_get_available_contexts(BT_AUDIO_DIR_SINK); in test_main()
255 __ASSERT_NO_MSG(bt_pacs_get_available_contexts_for_conn(default_conn, BT_AUDIO_DIR_SINK) == in test_main()
[all …]
Dgmap_ugt_test.c69 if (ep_info.dir == BT_AUDIO_DIR_SINK) { in unicast_stream_enabled_cb()
244 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, LOCATION); in set_location()
267 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, CONTEXT); in set_supported_contexts()
293 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, CONTEXT); in set_available_contexts()
398 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &unicast_cap); in test_main()
Dbap_unicast_server_test.c251 if (ep_info.dir == BT_AUDIO_DIR_SINK) { in stream_enabled_cb()
334 if (info.dir == BT_AUDIO_DIR_SINK && sink_stream == NULL) { in transceive_test_streams()
362 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, BT_AUDIO_LOCATION_FRONT_CENTER); in set_location()
385 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, in set_available_contexts()
393 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in set_available_contexts()
443 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap); in init()
Dcap_acceptor_test.c327 if (auto_start_sink_streams && ep_info.dir == BT_AUDIO_DIR_SINK) { in unicast_stream_enabled_cb()
587 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, in set_location()
613 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, SINK_CONTEXT); in set_supported_contexts()
671 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, SINK_CONTEXT); in set_available_contexts()
723 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &unicast_cap); in init()
763 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &broadcast_cap); in init()
Dgmap_ugg_test.c146 if (dir == BT_AUDIO_DIR_SINK) { in gmap_get_named_preset()
349 if (dir == BT_AUDIO_DIR_SINK) { in bap_endpoint_cb()
363 if (dir == BT_AUDIO_DIR_SINK) { in bap_discover_cb()
549 err = bt_bap_unicast_client_discover(conn, BT_AUDIO_DIR_SINK); in discover_sink()
1468 gmap_get_named_preset(true, BT_AUDIO_DIR_SINK, preset_arg); in test_args()
1484 false, BT_AUDIO_DIR_SINK /* unused */, preset_arg); in test_args()
Dpbp_public_broadcast_sink_test.c214 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap); in init()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap.c139 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, in set_location()
166 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in set_available_contexts()
185 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, in set_supported_contexts()
219 err = bt_pacs_cap_unregister(BT_AUDIO_DIR_SINK, in pacs_update_characteristic()
227 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, in pacs_update_characteristic()
271 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in pacs_set_available_contexts()
288 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, in pacs_set_supported_contexts()
487 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap_sink); in tester_init_pacs()
489 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &vendor_cap_sink); in tester_init_pacs()
Dbtp_hap.c70 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, BT_AUDIO_LOCATION_FRONT_LEFT | in ha_init()
73 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, BT_AUDIO_LOCATION_FRONT_LEFT); in ha_init()
/Zephyr-latest/subsys/bluetooth/audio/
Dpacs.c227 case BT_AUDIO_DIR_SINK: in pacs_get_available_contexts_for_conn()
252 pacs_get_available_contexts_for_conn(conn, BT_AUDIO_DIR_SINK)), in available_contexts_read()
275 case BT_AUDIO_DIR_SINK: in supported_context_get()
294 .snk = sys_cpu_to_le16(supported_context_get(BT_AUDIO_DIR_SINK)), in supported_context_read()
573 case BT_AUDIO_DIR_SINK: in pacs_get()
687 case BT_AUDIO_DIR_SINK: in pac_notify_loc()
721 case BT_AUDIO_DIR_SINK: in pac_notify()
765 pacs_get_available_contexts_for_conn(conn, BT_AUDIO_DIR_SINK)), in available_contexts_notify()
784 .snk = sys_cpu_to_le16(supported_context_get(BT_AUDIO_DIR_SINK)), in supported_contexts_notify()
869 err = pac_notify(conn, BT_AUDIO_DIR_SINK); in notify_cb()
[all …]
Dbap_iso.c166 if (dir == BT_AUDIO_DIR_SINK) { in bap_iso_get_iso_dir()
222 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_bind_ep()
242 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_unbind_ep()
260 __ASSERT(dir == BT_AUDIO_DIR_SINK || dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_get_ep()
334 __ASSERT(dir == BT_AUDIO_DIR_SINK || dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_get_stream()
Daudio_internal.h72 case BT_AUDIO_DIR_SINK: in bt_audio_dir_str()
Dbap_unicast_server.c129 if (ep->dir != BT_AUDIO_DIR_SINK) { in bt_bap_unicast_server_start()
Dbap_unicast_client.c68 #define PAC_DIR_UNUSED(dir) ((dir) != BT_AUDIO_DIR_SINK && (dir) != BT_AUDIO_DIR_SOURCE)
539 case BT_AUDIO_DIR_SINK: in unicast_client_ep_new()
839 } else if (ep->dir == BT_AUDIO_DIR_SINK) { in unicast_client_ep_qos_update()
964 if (ep->dir == BT_AUDIO_DIR_SINK && ops->disabled != NULL) { in unicast_client_ep_qos_state()
2461 if (dir == BT_AUDIO_DIR_SINK) { in unicast_client_qos_cfg_to_iso_qos()
2476 if (bt_bap_iso_get_ep(true, iso, BT_AUDIO_DIR_SINK) == NULL) { in unicast_client_qos_cfg_to_iso_qos()
2568 unicast_group_add_stream(group, param->tx_param, iso, BT_AUDIO_DIR_SINK); in unicast_group_add_stream_pair()
2613 unicast_group_del_stream(group, param->tx_param->stream, BT_AUDIO_DIR_SINK); in unicast_group_del_stream_pair()
2654 BT_AUDIO_DIR_SINK); in unicast_group_free()
2764 if (dir == BT_AUDIO_DIR_SINK) { in valid_unicast_group_stream_param()
[all …]
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/
Dbap_unicast_sr.c325 if (ep_info.dir == BT_AUDIO_DIR_SINK) { in stream_enabled()
377 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap); in bap_unicast_sr_init()
380 bt_pacs_set_location(BT_AUDIO_DIR_SINK, BT_AUDIO_LOCATION_FRONT_LEFT); in bap_unicast_sr_init()
382 bt_pacs_set_location(BT_AUDIO_DIR_SINK, BT_AUDIO_LOCATION_FRONT_RIGHT); in bap_unicast_sr_init()
385 bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, in bap_unicast_sr_init()
387 bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in bap_unicast_sr_init()
/Zephyr-latest/samples/bluetooth/hap_ha/src/
Dmain.c214 bt_pacs_set_location(BT_AUDIO_DIR_SINK, in main()
218 bt_pacs_set_location(BT_AUDIO_DIR_SINK, in main()
222 bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in main()
Dbap_unicast_sr.c411 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap_sink); in bap_unicast_sr_init()
420 bt_pacs_set_location(BT_AUDIO_DIR_SINK, in bap_unicast_sr_init()
424 bt_pacs_set_location(BT_AUDIO_DIR_SINK, in bap_unicast_sr_init()
427 bt_pacs_set_location(BT_AUDIO_DIR_SINK, in bap_unicast_sr_init()
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/uut/
Dbap_unicast_client.c174 if (stream->ep != NULL && stream->ep->dir == BT_AUDIO_DIR_SINK) { in bt_bap_unicast_client_connect()
189 if (stream == NULL || stream->ep == NULL || stream->ep->dir == BT_AUDIO_DIR_SINK) { in bt_bap_unicast_client_start()
241 if (stream->ep->dir == BT_AUDIO_DIR_SINK) { in bt_bap_unicast_client_disable()
271 if (stream == NULL || stream->ep == NULL || stream->ep->dir == BT_AUDIO_DIR_SINK) { in bt_bap_unicast_client_stop()
/Zephyr-latest/samples/bluetooth/bap_unicast_server/src/
Dmain.c274 return BT_AUDIO_DIR_SINK; in stream_dir()
571 if (stream_dir(stream) == BT_AUDIO_DIR_SINK) { in stream_enabled_cb()
644 err = bt_pacs_set_location(BT_AUDIO_DIR_SINK, in set_location()
672 err = bt_pacs_set_supported_contexts(BT_AUDIO_DIR_SINK, in set_supported_contexts()
703 err = bt_pacs_set_available_contexts(BT_AUDIO_DIR_SINK, in set_available_contexts()
740 bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap_sink); in main()
/Zephyr-latest/samples/bluetooth/tmap_central/src/
Dcap_initiator.c248 if (dir == BT_AUDIO_DIR_SINK) { in discover_cb()
267 } else if (dir == BT_AUDIO_DIR_SINK) { in endpoint_cb()
276 err = bt_bap_unicast_client_discover(conn, BT_AUDIO_DIR_SINK); in discover_sinks()
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dmain.c143 if (dir == BT_AUDIO_DIR_SINK && peer.sink_stream.bap_stream.ep == NULL) { in stream_alloc()
276 err = register_pac(BT_AUDIO_DIR_SINK, SINK_CONTEXT, &sink_cap); in init_cap_acceptor()
/Zephyr-latest/samples/bluetooth/cap_initiator/src/
Dcap_initiator_unicast.c91 return ep_info.dir == BT_AUDIO_DIR_SINK; in is_tx_stream()
257 if (dir == BT_AUDIO_DIR_SINK) { in discover_cb()
284 } else if (dir == BT_AUDIO_DIR_SINK) { in endpoint_cb()
298 err = bt_bap_unicast_client_discover(peer.conn, BT_AUDIO_DIR_SINK); in discover_sinks()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap.c892 return BT_AUDIO_DIR_SINK; in stream_dir()
967 if (dir == BT_AUDIO_DIR_SINK) { in endpoint_cb()
987 if (dir == BT_AUDIO_DIR_SINK) { in discover_all()
1116 dir = BT_AUDIO_DIR_SINK; in cmd_discover()
1188 dir = BT_AUDIO_DIR_SINK; in cmd_config()
1459 if (stream_dir(stream) == BT_AUDIO_DIR_SINK) { in set_group_param()
2234 dir = BT_AUDIO_DIR_SINK; in cmd_preset()
2904 if (ep_info.dir == BT_AUDIO_DIR_SINK) { in stream_enabled_cb()
3672 dir = BT_AUDIO_DIR_SINK; in cmd_set_loc()
3712 dir = BT_AUDIO_DIR_SINK; in cmd_context()
[all …]
/Zephyr-latest/tests/bluetooth/audio/ascs/src/
Dtest_ase_state_transition.c142 expect_bt_bap_unicast_server_cb_config_called_once(conn, EMPTY, BT_AUDIO_DIR_SINK, EMPTY); in ZTEST_F()
229 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SINK, EMPTY); in ZTEST_F()
264 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SINK, EMPTY); in ZTEST_F()
421 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SINK, EMPTY); in ZTEST_F()
462 expect_bt_bap_unicast_server_cb_reconfig_called_once(stream, BT_AUDIO_DIR_SINK, EMPTY); in ZTEST_F()
/Zephyr-latest/samples/bluetooth/tmap_bmr/src/
Dbap_broadcast_sink.c321 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap); in bap_broadcast_sink_init()
/Zephyr-latest/samples/bluetooth/pbp_public_broadcast_sink/src/
Dmain.c334 err = bt_pacs_cap_register(BT_AUDIO_DIR_SINK, &cap); in bap_broadcast_sink_init()

12