Skip to content

Commit

Permalink
Bluetooth: VCP/MICP: Fix VOCS and AICS instance counts
Browse files Browse the repository at this point in the history
The VCP and MICP instances should use their respective
AICS and VOCS Kconfig options, rather than the overall
Kconfig options.

Signed-off-by: Emil Gydesen <[email protected]>
  • Loading branch information
Thalley authored and henrikbrixandersen committed Feb 5, 2024
1 parent 08070fb commit ab1b43e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion subsys/bluetooth/audio/micp_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct bt_micp_mic_ctlr {
struct bt_conn *conn;

uint8_t aics_inst_cnt;
struct bt_aics *aics[CONFIG_BT_AICS_CLIENT_MAX_INSTANCE_COUNT];
struct bt_aics *aics[CONFIG_BT_MICP_MIC_CTLR_MAX_AICS_INST];
};

#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_MICP_INTERNAL_ */
4 changes: 2 additions & 2 deletions subsys/bluetooth/audio/vcp_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ struct bt_vcp_vol_ctlr {
struct bt_conn *conn;

uint8_t vocs_inst_cnt;
struct bt_vocs *vocs[CONFIG_BT_VOCS_CLIENT_MAX_INSTANCE_COUNT];
struct bt_vocs *vocs[CONFIG_BT_VCP_VOL_CTLR_MAX_VOCS_INST];
uint8_t aics_inst_cnt;
struct bt_aics *aics[CONFIG_BT_AICS_CLIENT_MAX_INSTANCE_COUNT];
struct bt_aics *aics[CONFIG_BT_VCP_VOL_CTLR_MAX_AICS_INST];
};

#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_VCP_INTERNAL_*/

0 comments on commit ab1b43e

Please sign in to comment.