All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/2] avrcp: Fix always requesting player settings for category 1
@ 2020-05-28 21:52 Luiz Augusto von Dentz
  2020-05-28 21:53 ` [PATCH v3 2/2] avrcp: Don't attempt to load settings if on volume changed is supported Luiz Augusto von Dentz
  2020-05-29 20:29 ` [PATCH v3 1/2] avrcp: Fix always requesting player settings for category 1 Luiz Augusto von Dentz
  0 siblings, 2 replies; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2020-05-28 21:52 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

Player Application settings is not mandatory for category 1 so instead
of always listing the settings the code now checks if
AVRCP_FEATURE_PLAYER_SETTINGS is enabled.
---
 profiles/audio/avrcp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 773ccdb60..75811bf98 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -3814,7 +3814,8 @@ static gboolean avrcp_get_capabilities_resp(struct avctp *conn, uint8_t code,
 	if (!session->controller || !session->controller->player)
 		return FALSE;
 
-	if (!(events & (1 << AVRCP_EVENT_SETTINGS_CHANGED)))
+	if ((session->controller->features & AVRCP_FEATURE_PLAYER_SETTINGS) &&
+			!(events & (1 << AVRCP_EVENT_SETTINGS_CHANGED)))
 		avrcp_list_player_attributes(session);
 
 	if (!(events & (1 << AVRCP_EVENT_STATUS_CHANGED)))
-- 
2.25.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-29 20:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 21:52 [PATCH v3 1/2] avrcp: Fix always requesting player settings for category 1 Luiz Augusto von Dentz
2020-05-28 21:53 ` [PATCH v3 2/2] avrcp: Don't attempt to load settings if on volume changed is supported Luiz Augusto von Dentz
2020-05-28 23:10   ` Andrey Semashev
2020-05-29 20:29 ` [PATCH v3 1/2] avrcp: Fix always requesting player settings for category 1 Luiz Augusto von Dentz
2020-05-29 20:56   ` Andrey Semashev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.