Use address from btd_dev reference in audio_device to get source
address.
{
struct avrcp_server *server;
struct avrcp *session;
+ const bdaddr_t *src;
- server = find_server(servers, &dev->src);
+ src = adapter_get_address(device_get_adapter(dev->btd_dev));
+
+ server = find_server(servers, src);
if (!server)
return;
struct avrcp *session;
uint8_t buf[AVRCP_HEADER_LENGTH + 1];
struct avrcp_header *pdu = (void *) buf;
+ const bdaddr_t *src;
- server = find_server(servers, &dev->src);
+ src = adapter_get_address(device_get_adapter(dev->btd_dev));
+
+ server = find_server(servers, src);
if (server == NULL)
return -EINVAL;