From: Andrey Semashev <andrey.semashev@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v2 2/2] avrcp: Don't attempt to load settings if on volume changed is supported
Date: Thu, 28 May 2020 21:53:01 +0300 [thread overview]
Message-ID: <0eb5cec7-a79a-a513-8303-a23b1bd7a0ce@gmail.com> (raw)
In-Reply-To: <20200528172525.216354-2-luiz.dentz@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]
On 2020-05-28 20:25, Luiz Augusto von Dentz wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> If only volume changed is supported that means the player cannot really
> indicate track/metadata changes so don't attempt to read them.
> ---
> profiles/audio/avrcp.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
> index 75811bf98..d46ac0ab7 100644
> --- a/profiles/audio/avrcp.c
> +++ b/profiles/audio/avrcp.c
> @@ -3814,6 +3814,10 @@ static gboolean avrcp_get_capabilities_resp(struct avctp *conn, uint8_t code,
> if (!session->controller || !session->controller->player)
> return FALSE;
>
> + /* Skip if player status/metadata if only volume changes is supported */
> + if (events == AVRCP_EVENT_VOLUME_CHANGED)
> + return FALSE;
> +
> if ((session->controller->features & AVRCP_FEATURE_PLAYER_SETTINGS) &&
> !(events & (1 << AVRCP_EVENT_SETTINGS_CHANGED)))
> avrcp_list_player_attributes(session);
>
The result is still the same with this patch - MTW2 reboots after
GetPlayStatus.
[-- Attachment #2: mtw2.btsnoop --]
[-- Type: application/octet-stream, Size: 12198 bytes --]
[-- Attachment #3: mtw2.pcapng --]
[-- Type: application/x-pcapng, Size: 15360 bytes --]
next prev parent reply other threads:[~2020-05-28 18:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 17:25 [PATCH v2 1/2] avrcp: Fix always requesting player settings for category 1 Luiz Augusto von Dentz
2020-05-28 17:25 ` [PATCH v2 2/2] avrcp: Don't attempt to load settings if on volume changed is supported Luiz Augusto von Dentz
2020-05-28 18:53 ` Andrey Semashev [this message]
2020-05-28 22:31 ` Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0eb5cec7-a79a-a513-8303-a23b1bd7a0ce@gmail.com \
--to=andrey.semashev@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox