diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c
index 9e97ac5..fc7d0fe 100644
--- a/unit/test-avrcp.c
+++ b/unit/test-avrcp.c
return -EAGAIN;
}
+static int set_volume(struct avrcp *session, uint8_t transaction,
+ uint8_t volume, void *user_data)
+{
+ DBG("");
+
+ avrcp_set_volume_rsp(session, transaction, volume);
+
+ return -EAGAIN;
+}
+
static int set_addressed(struct avrcp *session, uint8_t transaction,
uint16_t id, void *user_data)
{
.get_play_status = get_play_status,
.get_element_attributes = get_element_attributes,
.register_notification = register_notification,
+ .set_volume = set_volume,
.set_addressed = set_addressed,
.get_folder_items = get_folder_items,
.change_path = change_path,
0x00, 0x19, 0x58, AVRCP_SET_ABSOLUTE_VOLUME,
0x00, 0x00, 0x01, 0x00));
+ /* Set absolute volume – TG */
+ define_test("/TP/VLH/BV-02-C", test_server,
+ raw_pdu(0x00, 0x11, 0x0e, 0x00, 0x48, 0x00,
+ 0x00, 0x19, 0x58, AVRCP_SET_ABSOLUTE_VOLUME,
+ 0x00, 0x00, 0x01, 0x00),
+ raw_pdu(0x02, 0x11, 0x0e, 0x0c, 0x48, 0x00,
+ 0x00, 0x19, 0x58, AVRCP_SET_ABSOLUTE_VOLUME,
+ 0x00, 0x00, 0x01, 0x00));
+
return g_test_run();
}