Diff between eddda4ea960b48688bce550fa490c708e15d54d5 and 81337f95bbbaaed60e626cec2b3f663faa62a1a2
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/avrcp.c | +3 | -0 | modified |
Full Patch
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 19b6721..2809b7f 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -2579,6 +2579,9 @@ int avrcp_set_volume(struct audio_device *dev, uint8_t volume)
if (session == NULL)
return -ENOTCONN;
+ if (session->version < 0x0104)
+ return -ENOTSUP;
+
memset(buf, 0, sizeof(buf));
set_company_id(pdu->company_id, IEEEID_BTSIG);