Hi Sagar, On Wed, Jan 21, 2015 at 12:54 PM, Sagar Nageshmurthy <s.nageshmurt@xxxxxxxxxxx> wrote: > --- > profiles/audio/avrcp.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c > index 11de6ee..d258c28 100644 > --- a/profiles/audio/avrcp.c > +++ b/profiles/audio/avrcp.c > @@ -3662,6 +3662,7 @@ struct avrcp_player *avrcp_register_player(struct btd_adapter *adapter, > struct avrcp_server *server; > struct avrcp_player *player; > GSList *l; > + static uint16_t id = 0; > > server = find_server(servers, adapter); > if (!server) > @@ -3672,6 +3673,7 @@ struct avrcp_player *avrcp_register_player(struct btd_adapter *adapter, > player->cb = cb; > player->user_data = user_data; > player->destroy = destroy; > + player->id = ++id; > > server->players = g_slist_append(server->players, player); > > -- > 1.7.9.5 Id reuse the id if possible, but we are not really using the id for anything in the TG so I wonder what is you plan regarding it? -- Luiz Augusto von Dentz -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html