/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | hci.c | 31 struct bt_hci_cp_mesh_advertise *cp; in cmd_mesh_adv() local 35 sizeof(*cp)); in cmd_mesh_adv() 43 cp = net_buf_add(buf, sizeof(*cp)); in cmd_mesh_adv() 44 cp->adv_slot = 0U; in cmd_mesh_adv() 45 cp->own_addr_type = 0x01; in cmd_mesh_adv() 46 memset(&cp->random_addr, 0, sizeof(bt_addr_t)); in cmd_mesh_adv() 47 cp->ch_map = 0x07; in cmd_mesh_adv() 48 cp->tx_power = 0; in cmd_mesh_adv() 49 cp->min_tx_delay = 0U; in cmd_mesh_adv() 50 cp->max_tx_delay = 0x32; in cmd_mesh_adv() [all …]
|
/Zephyr-latest/tests/subsys/fs/common/ |
D | test_fs_util.h | 208 #define TESTFS_BCMD_IS_ENTER_DIR(cp) (((cp)->type == FS_DIR_ENTRY_DIR) \ argument 209 && ((cp)->name != NULL)) 210 #define TESTFS_BCMD_IS_EXIT_DIR(cp) (((cp)->type == FS_DIR_ENTRY_DIR) \ argument 211 && ((cp)->name == NULL)) 212 #define TESTFS_BCMD_IS_FILE(cp) (((cp)->type == FS_DIR_ENTRY_FILE) \ argument 213 && ((cp)->name != NULL)) 214 #define TESTFS_BCMD_IS_END(cp) (((cp)->type == FS_DIR_ENTRY_FILE) \ argument 215 && ((cp)->name == NULL)) 232 const struct testfs_bcmd *cp); 240 static inline struct testfs_bcmd *testfs_bcmd_end(struct testfs_bcmd *cp) in testfs_bcmd_end() argument [all …]
|
D | test_fs_util.c | 226 const struct testfs_bcmd *cp) in testfs_build() argument 230 while (!TESTFS_BCMD_IS_END(cp)) { in testfs_build() 232 if (TESTFS_BCMD_IS_FILE(cp)) { in testfs_build() 238 cp->name, in testfs_build() 242 root->path, cp->size, cp->value, rc); in testfs_build() 244 rc = testfs_write_incrementing(&file, cp->value, cp->size); in testfs_build() 255 } else if (TESTFS_BCMD_IS_ENTER_DIR(cp)) { in testfs_build() 257 cp->name, in testfs_build() 264 } else if (TESTFS_BCMD_IS_EXIT_DIR(cp)) { in testfs_build() 271 ++cp; in testfs_build() [all …]
|
D | test_fs_dirops.c | 80 const struct testfs_bcmd *cp) in build_layout() argument 97 zassert_equal(testfs_build(&path, cp), in build_layout() 129 struct testfs_bcmd *cp = layout; in check_layout() local 131 while (!TESTFS_BCMD_IS_END(cp)) { in check_layout() 132 if (cp->name != NULL) { in check_layout() 134 cp->name, in check_layout() 135 (cp->type == FS_DIR_ENTRY_DIR) ? "/" : "", in check_layout() 136 cp->size); in check_layout() 137 zassert_true(cp->matched, in check_layout() 140 ++cp; in check_layout() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | cs.c | 280 struct bt_hci_cp_le_read_remote_supported_capabilities *cp; in bt_le_cs_read_remote_supported_capabilities() local 283 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_READ_REMOTE_SUPPORTED_CAPABILITIES, sizeof(*cp)); in bt_le_cs_read_remote_supported_capabilities() 288 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_read_remote_supported_capabilities() 289 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_read_remote_supported_capabilities() 413 struct bt_hci_cp_le_cs_set_default_settings *cp; in bt_le_cs_set_default_settings() local 416 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_SET_DEFAULT_SETTINGS, sizeof(*cp)); in bt_le_cs_set_default_settings() 421 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_set_default_settings() 422 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_set_default_settings() 423 cp->max_tx_power = params->max_tx_power; in bt_le_cs_set_default_settings() 424 cp->cs_sync_antenna_selection = params->cs_sync_antenna_selection; in bt_le_cs_set_default_settings() [all …]
|
D | direction.c | 91 struct bt_hci_cp_le_set_cl_cte_tx_params *cp; in hci_df_set_cl_cte_tx_params() local 128 sizeof(*cp) + params->num_ant_ids); in hci_df_set_cl_cte_tx_params() 133 cp = net_buf_add(buf, sizeof(*cp)); in hci_df_set_cl_cte_tx_params() 134 cp->handle = adv->handle; in hci_df_set_cl_cte_tx_params() 135 cp->cte_len = params->cte_len; in hci_df_set_cl_cte_tx_params() 136 cp->cte_type = get_hci_cte_type(params->cte_type); in hci_df_set_cl_cte_tx_params() 137 cp->cte_count = params->cte_count; in hci_df_set_cl_cte_tx_params() 143 cp->switch_pattern_len = params->num_ant_ids; in hci_df_set_cl_cte_tx_params() 145 cp->switch_pattern_len = 0; in hci_df_set_cl_cte_tx_params() 210 struct bt_hci_cp_le_set_cl_cte_tx_enable *cp; in hci_df_set_adv_cte_tx_enable() local [all …]
|
D | scan.c | 120 struct bt_hci_cp_le_set_ext_scan_enable *cp; in cmd_le_set_ext_scan_enable() local 125 buf = bt_hci_cmd_create(BT_HCI_OP_LE_SET_EXT_SCAN_ENABLE, sizeof(*cp)); in cmd_le_set_ext_scan_enable() 130 cp = net_buf_add(buf, sizeof(*cp)); in cmd_le_set_ext_scan_enable() 132 cp->filter_dup = filter_duplicates; in cmd_le_set_ext_scan_enable() 133 cp->enable = enable; in cmd_le_set_ext_scan_enable() 134 cp->duration = sys_cpu_to_le16(duration); in cmd_le_set_ext_scan_enable() 135 cp->period = 0; in cmd_le_set_ext_scan_enable() 150 struct bt_hci_cp_le_set_scan_enable *cp; in cmd_le_set_scan_enable_legacy() local 155 buf = bt_hci_cmd_create(BT_HCI_OP_LE_SET_SCAN_ENABLE, sizeof(*cp)); in cmd_le_set_scan_enable_legacy() 160 cp = net_buf_add(buf, sizeof(*cp)); in cmd_le_set_scan_enable_legacy() [all …]
|
D | ecc.c | 171 struct bt_hci_cp_le_generate_dhkey *cp; in hci_generate_dhkey_v1() local 174 buf = bt_hci_cmd_create(BT_HCI_OP_LE_GENERATE_DHKEY, sizeof(*cp)); in hci_generate_dhkey_v1() 179 cp = net_buf_add(buf, sizeof(*cp)); in hci_generate_dhkey_v1() 180 memcpy(cp->key, remote_pk, sizeof(cp->key)); in hci_generate_dhkey_v1() 187 struct bt_hci_cp_le_generate_dhkey_v2 *cp; in hci_generate_dhkey_v2() local 190 buf = bt_hci_cmd_create(BT_HCI_OP_LE_GENERATE_DHKEY_V2, sizeof(*cp)); in hci_generate_dhkey_v2() 195 cp = net_buf_add(buf, sizeof(*cp)); in hci_generate_dhkey_v2() 196 memcpy(cp->key, remote_pk, sizeof(cp->key)); in hci_generate_dhkey_v2() 197 cp->key_type = key_type; in hci_generate_dhkey_v2()
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_has.c | 39 const struct btp_has_set_active_index_cmd *cp = cmd; in has_set_active_index() local 40 int err = bt_has_preset_active_set(cp->index); in has_set_active_index() 51 const struct btp_has_set_preset_name_cmd *cp = cmd; in has_set_preset_name() local 52 const uint16_t fixed_size = sizeof(*cp); in has_set_preset_name() 55 if (cmd_len >= fixed_size && cmd_len >= (fixed_size + cp->length)) { in has_set_preset_name() 56 int name_len = MIN(cp->length, BT_HAS_PRESET_NAME_MAX); in has_set_preset_name() 58 memcpy(temp_name, cp->name, name_len); in has_set_preset_name() 60 err = bt_has_preset_name_change(cp->index, temp_name); in has_set_preset_name() 68 const struct btp_has_remove_preset_cmd *cp = cmd; in has_remove_preset() local 71 if (cp->index == BT_HAS_PRESET_INDEX_NONE) { in has_remove_preset() [all …]
|
D | btp_ccp.c | 310 const struct btp_ccp_discover_tbs_cmd *cp = cmd; in ccp_discover_tbs() local 314 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_discover_tbs() 326 const struct btp_ccp_accept_call_cmd *cp = cmd; in ccp_accept_call() local 330 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_accept_call() 331 err = (conn) ? bt_tbs_client_accept_call(conn, cp->inst_index, cp->call_id) : -ENOTCONN; in ccp_accept_call() 342 const struct btp_ccp_terminate_call_cmd *cp = cmd; in ccp_terminate_call() local 346 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_terminate_call() 347 err = (conn) ? bt_tbs_client_terminate_call(conn, cp->inst_index, cp->call_id) : in ccp_terminate_call() 359 const struct btp_ccp_originate_call_cmd *cp = cmd; in ccp_originate_call() local 363 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_originate_call() [all …]
|
D | btp_cap.c | 166 const struct btp_cap_discover_cmd *cp = cmd; in btp_cap_discover() local 172 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in btp_cap_discover() 233 const struct btp_cap_unicast_setup_ase_cmd *cp = cmd; in btp_cap_unicast_setup_ase() local 242 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in btp_cap_unicast_setup_ase() 251 qos.framing = cp->framing; in btp_cap_unicast_setup_ase() 252 qos.rtn = cp->retransmission_num; in btp_cap_unicast_setup_ase() 253 qos.sdu = sys_le16_to_cpu(cp->max_sdu); in btp_cap_unicast_setup_ase() 254 qos.latency = sys_le16_to_cpu(cp->max_transport_latency); in btp_cap_unicast_setup_ase() 255 qos.interval = sys_get_le24(cp->sdu_interval); in btp_cap_unicast_setup_ase() 256 qos.pd = sys_get_le24(cp->presentation_delay); in btp_cap_unicast_setup_ase() [all …]
|
D | btp_aics.c | 154 const struct btp_aics_set_gain_cmd *cp = cmd; in aics_set_gain() local 156 LOG_DBG("AICS set gain %d", cp->gain); in aics_set_gain() 158 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_set_gain() 159 if (bt_aics_gain_set(aics_client_instance.aics[0], cp->gain) != 0) { in aics_set_gain() 164 if (bt_aics_gain_set(aics_server_instance.aics[i], cp->gain) != 0) { in aics_set_gain() 175 const struct btp_aics_unmute_cmd *cp = cmd; in aics_unmute() local 179 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_unmute() 196 const struct btp_aics_mute_cmd *cp = cmd; in aics_mute() local 200 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_mute() 217 const struct btp_aics_state_cmd *cp = cmd; in aics_state_get() local [all …]
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_mesh.c | 793 const struct btp_priv_beacon_get_cmd *cp = cmd; in priv_beacon_get() local 798 err = bt_mesh_priv_beacon_cli_get(net.net_idx, cp->dst, &val); in priv_beacon_get() 811 const struct btp_priv_beacon_set_cmd *cp = cmd; in priv_beacon_set() local 815 val.enabled = cp->enabled; in priv_beacon_set() 816 val.rand_interval = cp->rand_interval; in priv_beacon_set() 818 err = bt_mesh_priv_beacon_cli_set(net.net_idx, cp->dst, &val, &val); in priv_beacon_set() 830 const struct btp_priv_gatt_proxy_get_cmd *cp = cmd; in priv_gatt_proxy_get() local 835 err = bt_mesh_priv_beacon_cli_gatt_proxy_get(net.net_idx, cp->dst, &state); in priv_gatt_proxy_get() 848 const struct btp_priv_gatt_proxy_set_cmd *cp = cmd; in priv_gatt_proxy_set() local 853 state = cp->state; in priv_gatt_proxy_set() [all …]
|
D | btp_gatt.c | 291 const struct btp_gatt_add_service_cmd *cp = cmd; in add_service() local 297 if ((cmd_len < sizeof(*cp)) || in add_service() 298 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in add_service() 302 if (btp2bt_uuid(cp->uuid, cp->uuid_length, &uuid.uuid)) { in add_service() 318 switch (cp->type) { in add_service() 496 const struct btp_gatt_add_characteristic_cmd *cp = cmd; in add_characteristic() local 501 if ((cmd_len < sizeof(*cp)) || in add_characteristic() 502 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in add_characteristic() 508 cmd_data.permissions = cp->permissions; in add_characteristic() 509 cmd_data.properties = cp->properties; in add_characteristic() [all …]
|
D | btp_gap.c | 451 const struct btp_gap_oob_sc_set_remote_data_cmd *cp = cmd; in set_oob_sc_remote_data() local 459 memcpy(&oob_sc_remote.le_sc_data.r[0], cp->rand, in set_oob_sc_remote_data() 461 memcpy(&oob_sc_remote.le_sc_data.c[0], cp->conf, in set_oob_sc_remote_data() 471 const struct btp_gap_set_powered_cmd *cp = cmd; in set_powered() local 475 if (cp->powered) { in set_powered() 502 const struct btp_gap_set_connectable_cmd *cp = cmd; in set_connectable() local 505 if (cp->connectable) { in set_connectable() 568 const struct btp_gap_set_discoverable_cmd *cp = cmd; in set_discoverable() local 571 switch (cp->discoverable) { in set_discoverable() 599 const struct btp_gap_set_bondable_cmd *cp = cmd; in set_bondable() local [all …]
|
D | btp_l2cap.c | 239 const struct btp_l2cap_connect_cmd *cp = cmd; in connect() local 244 uint16_t mtu = sys_le16_to_cpu(cp->mtu); in connect() 245 uint16_t psm = sys_le16_to_cpu(cp->psm); in connect() 247 bool ecfc = cp->options & BTP_L2CAP_CONNECT_OPT_ECFC; in connect() 250 if (cp->num == 0 || cp->num > CHANNELS || mtu > DATA_MTU_INITIAL) { in connect() 254 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in connect() 259 for (i = 0U; i < cp->num; i++) { in connect() 272 chan->hold_credit = cp->options & BTP_L2CAP_CONNECT_OPT_HOLD_CREDIT; in connect() 277 if (cp->num == 1 && !ecfc) { in connect() 297 rp->num = cp->num; in connect() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | ssp.c | 45 struct bt_hci_cp_pin_code_neg_reply *cp; in pin_code_neg_reply() local 50 buf = bt_hci_cmd_create(BT_HCI_OP_PIN_CODE_NEG_REPLY, sizeof(*cp)); in pin_code_neg_reply() 55 cp = net_buf_add(buf, sizeof(*cp)); in pin_code_neg_reply() 56 bt_addr_copy(&cp->bdaddr, bdaddr); in pin_code_neg_reply() 63 struct bt_hci_cp_pin_code_reply *cp; in pin_code_reply() local 68 buf = bt_hci_cmd_create(BT_HCI_OP_PIN_CODE_REPLY, sizeof(*cp)); in pin_code_reply() 73 cp = net_buf_add(buf, sizeof(*cp)); in pin_code_reply() 75 bt_addr_copy(&cp->bdaddr, &conn->br.dst); in pin_code_reply() 76 cp->pin_len = len; in pin_code_reply() 77 strncpy((char *)cp->pin_code, pin, sizeof(cp->pin_code)); in pin_code_reply() [all …]
|
D | sco.c | 252 struct bt_hci_cp_accept_sync_conn_req *cp; in accept_sco_conn() local 261 buf = bt_hci_cmd_create(BT_HCI_OP_ACCEPT_SYNC_CONN_REQ, sizeof(*cp)); in accept_sco_conn() 266 cp = net_buf_add(buf, sizeof(*cp)); in accept_sco_conn() 267 bt_addr_copy(&cp->bdaddr, bdaddr); in accept_sco_conn() 268 cp->pkt_type = sco_conn->sco.pkt_type; in accept_sco_conn() 269 cp->tx_bandwidth = 0x00001f40; in accept_sco_conn() 270 cp->rx_bandwidth = 0x00001f40; in accept_sco_conn() 271 cp->max_latency = 0x0007; in accept_sco_conn() 272 cp->retrans_effort = 0x01; in accept_sco_conn() 273 cp->content_format = BT_VOICE_CVSD_16BIT; in accept_sco_conn() [all …]
|
D | br.c | 32 struct bt_hci_cp_reject_conn_req *cp; in reject_conn() local 36 buf = bt_hci_cmd_create(BT_HCI_OP_REJECT_CONN_REQ, sizeof(*cp)); in reject_conn() 41 cp = net_buf_add(buf, sizeof(*cp)); in reject_conn() 42 bt_addr_copy(&cp->bdaddr, bdaddr); in reject_conn() 43 cp->reason = reason; in reject_conn() 55 struct bt_hci_cp_accept_conn_req *cp; in accept_conn() local 59 buf = bt_hci_cmd_create(BT_HCI_OP_ACCEPT_CONN_REQ, sizeof(*cp)); in accept_conn() 64 cp = net_buf_add(buf, sizeof(*cp)); in accept_conn() 65 bt_addr_copy(&cp->bdaddr, bdaddr); in accept_conn() 66 cp->role = BT_HCI_ROLE_PERIPHERAL; in accept_conn() [all …]
|
/Zephyr-latest/tests/bluetooth/df/connectionless_cte_tx/src/ |
D | common.c | 57 struct bt_hci_cp_le_set_cl_cte_tx_params *cp; in common_set_cl_cte_tx_params() local 63 sizeof(*cp) + ARRAY_SIZE(ant_ids)); in common_set_cl_cte_tx_params() 66 cp = net_buf_add(buf, sizeof(*cp)); in common_set_cl_cte_tx_params() 67 cp->handle = g_adv->handle; in common_set_cl_cte_tx_params() 68 cp->cte_len = g_cte_len; in common_set_cl_cte_tx_params() 69 cp->cte_type = BT_HCI_LE_AOD_CTE_2US; in common_set_cl_cte_tx_params() 70 cp->cte_count = 5; in common_set_cl_cte_tx_params() 75 cp->switch_pattern_len = ARRAY_SIZE(ant_ids); in common_set_cl_cte_tx_params()
|
/Zephyr-latest/tests/bluetooth/hci_codecs_info/src/ |
D | main.c | 177 struct bt_hci_cp_read_codec_capabilities *cp; in ZTEST() local 188 buf = bt_hci_cmd_create(BT_HCI_OP_READ_CODEC_CAPABILITIES, sizeof(*cp)); in ZTEST() 189 cp = net_buf_add(buf, sizeof(*cp)); in ZTEST() 191 cp->codec_id.coding_format = READ_CAPABS_CODING_FMT; in ZTEST() 192 cp->codec_id.company_id = sys_cpu_to_le16(READ_CAPABS_COMPANY_ID); in ZTEST() 193 cp->codec_id.vs_codec_id = sys_cpu_to_le16(READ_CAPABS_VS_CODEC_ID); in ZTEST() 194 cp->transport = READ_CAPABS_TRANSPORT; in ZTEST() 195 cp->direction = READ_CAPABS_DIRECTION; in ZTEST() 259 struct bt_hci_cp_read_ctlr_delay *cp; in ZTEST() local 269 buf = bt_hci_cmd_create(BT_HCI_OP_READ_CTLR_DELAY, sizeof(*cp)); in ZTEST() [all …]
|
/Zephyr-latest/samples/bluetooth/hci_pwr_ctrl/src/ |
D | main.c | 55 struct bt_hci_cp_read_rssi *cp; in read_conn_rssi() local 60 buf = bt_hci_cmd_create(BT_HCI_OP_READ_RSSI, sizeof(*cp)); in read_conn_rssi() 66 cp = net_buf_add(buf, sizeof(*cp)); in read_conn_rssi() 67 cp->handle = sys_cpu_to_le16(handle); in read_conn_rssi() 84 struct bt_hci_cp_vs_write_tx_power_level *cp; in set_tx_power() local 90 sizeof(*cp)); in set_tx_power() 96 cp = net_buf_add(buf, sizeof(*cp)); in set_tx_power() 97 cp->handle = sys_cpu_to_le16(handle); in set_tx_power() 98 cp->handle_type = handle_type; in set_tx_power() 99 cp->tx_power_level = tx_pwr_lvl; in set_tx_power() [all …]
|
/Zephyr-latest/tests/bluetooth/df/connection_cte_req/src/ |
D | test_cte_req_enable.c | 63 struct bt_hci_cp_le_conn_cte_req_enable *cp; in send_conn_cte_req_enable() local 66 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CONN_CTE_REQ_ENABLE, sizeof(*cp)); in send_conn_cte_req_enable() 71 cp = net_buf_add(buf, sizeof(*cp)); in send_conn_cte_req_enable() 72 (void)memset(cp, 0, sizeof(*cp)); in send_conn_cte_req_enable() 73 cp->handle = sys_cpu_to_le16(conn_handle); in send_conn_cte_req_enable() 74 cp->enable = enable ? 1 : 0; in send_conn_cte_req_enable() 76 cp->cte_request_interval = data->cte_request_interval; in send_conn_cte_req_enable() 77 cp->requested_cte_length = data->requested_cte_length; in send_conn_cte_req_enable() 78 cp->requested_cte_type = data->requested_cte_type; in send_conn_cte_req_enable()
|
/Zephyr-latest/tests/bluetooth/df/connection_cte_tx_params/src/ |
D | test_set_conn_cte_tx_params.c | 58 struct bt_hci_cp_le_set_conn_cte_tx_params *cp; in send_set_conn_cte_tx_params() local 63 sizeof(*cp) + params->switch_pattern_len); in send_set_conn_cte_tx_params() 68 cp = net_buf_add(buf, sizeof(*cp)); in send_set_conn_cte_tx_params() 69 (void)memset(cp, 0, sizeof(*cp)); in send_set_conn_cte_tx_params() 71 cp->handle = sys_cpu_to_le16(conn_handle); in send_set_conn_cte_tx_params() 72 cp->cte_types = params->cte_types; in send_set_conn_cte_tx_params() 79 cp->switch_pattern_len = params->switch_pattern_len; in send_set_conn_cte_tx_params()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | aics.c | 255 const struct bt_aics_gain_control *cp = buf; in write_aics_control() local 267 if (!VALID_AICS_OPCODE(cp->cp.opcode)) { in write_aics_control() 268 LOG_DBG("Invalid opcode %u", cp->cp.opcode); in write_aics_control() 273 (len == AICS_CP_SET_GAIN_LEN && cp->cp.opcode != BT_AICS_OPCODE_SET_GAIN) || in write_aics_control() 278 LOG_DBG("Opcode %u, counter %u", cp->cp.opcode, cp->cp.counter); in write_aics_control() 279 if (cp->cp.counter != inst->srv.state.change_counter) { in write_aics_control() 283 switch (cp->cp.opcode) { in write_aics_control() 285 LOG_DBG("Set gain %d", cp->gain_setting); in write_aics_control() 286 if (cp->gain_setting < inst->srv.gain_settings.minimum || in write_aics_control() 287 cp->gain_setting > inst->srv.gain_settings.maximum) { in write_aics_control() [all …]
|