LE Audio: add conn parameter for bt_vcp_vol_rend_cb
Add conn parameter to status/flags callbacks of bt_vcp_vol_rend_cb to differentiate between remote and local changes. Signed-off-by: Chang An <chang.an_1@nxp.com>
This commit is contained in:
parent
44c070fdcd
commit
e8db417a00
9 changed files with 28 additions and 20 deletions
|
@ -144,12 +144,12 @@ static uint8_t unmute(const void *cmd, uint16_t cmd_len,
|
|||
return BTP_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static void vcs_state_cb(int err, uint8_t volume, uint8_t mute)
|
||||
static void vcs_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute)
|
||||
{
|
||||
LOG_DBG("VCP state cb err (%d)", err);
|
||||
}
|
||||
|
||||
static void vcs_flags_cb(int err, uint8_t flags)
|
||||
static void vcs_flags_cb(struct bt_conn *conn, int err, uint8_t flags)
|
||||
{
|
||||
LOG_DBG("VCP flags cb err (%d)", err);
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ static volatile bool g_aics_active = 1;
|
|||
static char g_aics_desc[AICS_DESC_SIZE];
|
||||
static volatile bool g_cb;
|
||||
|
||||
static void vcs_state_cb(int err, uint8_t volume, uint8_t mute)
|
||||
static void vcs_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute)
|
||||
{
|
||||
if (err != 0) {
|
||||
FAIL("VCP state cb err (%d)", err);
|
||||
|
@ -66,7 +66,7 @@ static void vcs_state_cb(int err, uint8_t volume, uint8_t mute)
|
|||
g_cb = true;
|
||||
}
|
||||
|
||||
static void vcs_flags_cb(int err, uint8_t flags)
|
||||
static void vcs_flags_cb(struct bt_conn *conn, int err, uint8_t flags)
|
||||
{
|
||||
if (err != 0) {
|
||||
FAIL("VCP flags cb err (%d)", err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue