Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp64439ybm; Thu, 28 May 2020 16:11:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4quGXTAQsr1fo5Wm/+4zzOZMPZc7+Z5zvZDUp0A2BamOYBoHoVNjzghlhZJzyFKLLQpvB X-Received: by 2002:a50:ec0d:: with SMTP id g13mr5540825edr.296.1590707491022; Thu, 28 May 2020 16:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590707491; cv=none; d=google.com; s=arc-20160816; b=Odf3suWsOv6d2tx1KbUwZQ1p/GjNdCjIzzzjif9+j200J6fJ4NMNfzi6oNSmGozWR1 YSNR+y0hTWMHlyks1E2NZtXM41z6Jvxu2HpM6LGZU1JnZ1cM+BPx8G67IvGTBbmRVqw3 tjybBpUFRAjjC2TDsLxT8hHLe7acH0TgsSSfG8svxqIyRYdecv2DmDb13p9B/VpfGWLt Z8aTX0kGwDFRMWB7VoV4CmiL4mWa/PuOH+ujMX6RDjsDRKciLItPv5l4qFlna9qyHubf gkcWQJY4NqO0jL0Ord18T/Da66gHWyQxSRUa5tjE2kwphkU/e1EH2fJTr0m7O4lu5myH J2SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=1hI74fsImfPuzOYhKCiqTGXVkbsrfNvc/o9rskSKsiU=; b=d27g84BctQQ04Mt4XNWq+1fQztFRYpgxrvR9g9qI9i4JGbzYE4oGY+iy7IwVzRczHq 62rahBw/p6l+Niz6NeceTeY0liivD+ATS4KDyaKLpb7HjYUUOzTkJQxQfgly6gl48kz0 fJbs6KHNq/jx6ShuSlYxJKGwtWukYNvEtB9MQ6QvVN2Vy3jKaPvewA/+rUSK3dI8EGZn A6zDqxfezF5YaBTj0ytvS5BgUDefspy5AbDeqEXXcKTglx2PIs/65qcBy/Z78yC4Exqk 3lZSdt2H1ihx168Lu1kbfFIQfoEyhUmFK567n4ZOQPqoPuj5XFnMAIyMKANL4ax/ivz/ WgRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="cyb/W9Ns"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si4645407edl.560.2020.05.28.16.11.01; Thu, 28 May 2020 16:11:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="cyb/W9Ns"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391459AbgE1XKz (ORCPT + 99 others); Thu, 28 May 2020 19:10:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389436AbgE1XKx (ORCPT ); Thu, 28 May 2020 19:10:53 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16D03C08C5C6 for ; Thu, 28 May 2020 16:10:53 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id z6so204793ljm.13 for ; Thu, 28 May 2020 16:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=1hI74fsImfPuzOYhKCiqTGXVkbsrfNvc/o9rskSKsiU=; b=cyb/W9NsfnyYf1ctJsYnps51ZWA7joFM9zLsxbxFfS2gpDhE4a6t5rdNzbGzK0Opzg 6/fUu2g4l5jW54Tex606hhn6G0SY/ZcO7vW8DBg9cM5U7/g5CZPnSyHX0sKQpBTIitEN dKUA/JMrn2QVrnScv6Nng9xPj61Gf6yxfzUE5uZlkXmYtB/QtgR0KV4va2V6xVJSeYKd Sc+bxxZl6+Q8FDWZDVYnXm9SqQL6SkOvFRDVSY7w0jS3meMuQM4fFrX8a9lWGQHR8kFT MnZ8VuJftd+MM7oQu6ObG67iP7FyDVxMcWtIGwEzkAUiSMrykLlhcj7WCDoWrMAGugHj xi5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1hI74fsImfPuzOYhKCiqTGXVkbsrfNvc/o9rskSKsiU=; b=axc6WnDcxlUlEQWX4kI1e+bGi9xXDIgDJUoQ6247lUKVNnC2ruY2t3gwIne8S87+Wr TrIqavatlASbfq1skNA7F7rzt2LEn4m+0xWyxh9vRFc6djeouIy0IzDKx3AcZwtiP2sJ zy9iHjiTIKLlOFfvjdsL/vJF33s7LlaG0+yAfUV6Bb0iDe3YDVpAXiEI/zUa+Prlc+th IEzGHx5laTY4OWp05VR0s0g/lroV20WHHAPMai3Dw3Vvgv0ClmdRkMODHiyj9hmYXDmu Kjdrc+C2dYX0wjQInxQTYQcZWRTGIb1rjuwODI0mRg0rUiX21QpZgF/RvWN/M8csG82H VnYw== X-Gm-Message-State: AOAM531RiwVYZfen1m3lXD51DQW5uvIZf2MxirhFlovD/FBZ9sCSX7hX o4nGdDNWs0OLYZRUIWKp0OfRkqCYM3Y= X-Received: by 2002:a2e:7808:: with SMTP id t8mr2785070ljc.353.1590707450590; Thu, 28 May 2020 16:10:50 -0700 (PDT) Received: from [192.168.1.2] (broadband-188-255-20-215.ip.moscow.rt.ru. [188.255.20.215]) by smtp.gmail.com with ESMTPSA id s28sm1890161lfs.3.2020.05.28.16.10.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 May 2020 16:10:49 -0700 (PDT) Subject: Re: [PATCH v3 2/2] avrcp: Don't attempt to load settings if on volume changed is supported To: linux-bluetooth@vger.kernel.org References: <20200528215300.225894-1-luiz.dentz@gmail.com> <20200528215300.225894-2-luiz.dentz@gmail.com> From: Andrey Semashev Message-ID: <37d5cdb5-4d05-ce02-ce5a-f53bff81bd31@gmail.com> Date: Fri, 29 May 2020 02:10:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <20200528215300.225894-2-luiz.dentz@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 2020-05-29 00:53, Luiz Augusto von Dentz wrote: > From: Luiz Augusto von Dentz > > 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..8b3debe46 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 == (1 << 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); > This patchset works, MTW2 is able to connect and play audio. Many thanks!