1 /*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include <stdint.h>
8 #include <stdbool.h>
9
10 #include <zephyr/bluetooth/hci_types.h>
11 #include "isoal.h"
12 #include "ull_iso_types.h"
13
14 /* FIXME: Implement vendor specific data path configuration */
15 static bool dummy;
16
ll_data_path_configured(uint8_t data_path_dir,uint8_t data_path_id)17 bool ll_data_path_configured(uint8_t data_path_dir, uint8_t data_path_id)
18 {
19 ARG_UNUSED(data_path_dir);
20 ARG_UNUSED(data_path_id);
21
22 return dummy;
23 }
24
ll_data_path_source_create(uint16_t handle,struct ll_iso_datapath * datapath,isoal_source_pdu_alloc_cb * pdu_alloc,isoal_source_pdu_write_cb * pdu_write,isoal_source_pdu_emit_cb * pdu_emit,isoal_source_pdu_release_cb * pdu_release)25 bool ll_data_path_source_create(uint16_t handle,
26 struct ll_iso_datapath *datapath,
27 isoal_source_pdu_alloc_cb *pdu_alloc,
28 isoal_source_pdu_write_cb *pdu_write,
29 isoal_source_pdu_emit_cb *pdu_emit,
30 isoal_source_pdu_release_cb *pdu_release)
31 {
32 ARG_UNUSED(handle);
33 ARG_UNUSED(datapath);
34 ARG_UNUSED(pdu_alloc);
35 ARG_UNUSED(pdu_write);
36 ARG_UNUSED(pdu_emit);
37 ARG_UNUSED(pdu_release);
38
39 return false;
40 }
41
ll_configure_data_path(uint8_t data_path_dir,uint8_t data_path_id,uint8_t vs_config_len,uint8_t * vs_config)42 uint8_t ll_configure_data_path(uint8_t data_path_dir, uint8_t data_path_id,
43 uint8_t vs_config_len, uint8_t *vs_config)
44 {
45 ARG_UNUSED(data_path_dir);
46 ARG_UNUSED(data_path_id);
47 ARG_UNUSED(vs_config_len);
48 ARG_UNUSED(vs_config);
49
50 if (!IS_ENABLED(CONFIG_BT_CTLR_SYNC_ISO) ||
51 (data_path_dir == BT_HCI_DATAPATH_DIR_CTLR_TO_HOST)) {
52 dummy = true;
53 }
54
55 return 0;
56 }
57