Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1929ybm; Wed, 27 May 2020 17:24:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD8DM3uFSzccUgevrgY7LsT68mXtouNpn+vAqCF7vFoWotcvmEGE8Q0edHYtp2bOuI4l7d X-Received: by 2002:a05:6402:4c6:: with SMTP id n6mr602783edw.264.1590625460759; Wed, 27 May 2020 17:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590625460; cv=none; d=google.com; s=arc-20160816; b=Tp4NjUfuJ3Z+Fq2vvMtXXIVkCA1SYrYqrqbarmImh0l5vwHLhGWWg7ZUInS2x0lEr3 q7MYBNmmqSkylgBH6Dgz97s8vT5Z6ybSbPXM/1maNQEW/5PV20VwigdhoUrKDsl+fAeB 40/j5IC/d5FCJ1LoL8fWfANX89gOqmc/Xh/jch4cUgb8sNLOHEh/lu0UWCJ8PXjNb7Pi sIaNDeB2D08LT10Y8FNZwi9e7ejqSFcLm9oOJ3aMfBTsbS4THvfmm/WWwMpkQcBlVOal NxCXu8JAodFmWN1PYRwQIKb4jK3iAZrQbgxDjcSgJ4nhuIg5HAfquxE/CLI+Zfhz4AgP 3SQg== 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=gkDCYxkIaYpF+mMdysuvMKfvwvqYZtICLIzLu2hIjfM=; b=Z+QxYWRz93ZxRXas1LYrMJOV1FhNVnMioTmKo3I8q8h61MFph/SkOZ1VWrs6Z7vyvc yAjNlOO6M3l4qvDE9ch+lp6uCOaSslGqlVRtvJ3c79/wMdkLT2GqVmA7Us+TiLeLxAaZ Fh9pQsbb1uz7iCSfiyNeF60S3xuZC2a9vUx9hH60Fk09dZdSieUWcBDoitMClLvgin14 /RglywyHtokwG1jAFemrfIeaJR3QAOnm+As4mdrjbl0GliwzGrmUcAhS30SrKO6fwpJy VFYXTP6btyM6oWuN8Lf8hr+YfD0iXJjyYvXkus9vewMosMUJhH2hIjZXZHksSJWm4LqB AvgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XCB6lorU; 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 ha12si1379110ejb.228.2020.05.27.17.23.40; Wed, 27 May 2020 17:24:20 -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=XCB6lorU; 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 S1725294AbgE1AXd (ORCPT + 99 others); Wed, 27 May 2020 20:23:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbgE1AXd (ORCPT ); Wed, 27 May 2020 20:23:33 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06290C05BD1E for ; Wed, 27 May 2020 17:23:32 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id z206so11899694lfc.6 for ; Wed, 27 May 2020 17:23:32 -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=gkDCYxkIaYpF+mMdysuvMKfvwvqYZtICLIzLu2hIjfM=; b=XCB6lorUS+EXcz30TDNMnZKGsCZd6EMOPycWmbCyUcMiqjZiIuMJ707NfDZwnsLHNf pD/iwFUnx3C5TV490JMvbtpmXekKjZCnm7xK9gj3N5dp1J1b4JnBXhDAmQPTiG0LUAfX lWT3UN08Jf4TyOsRrzTrfAcS5o4/a8N/fhJdPX9J+SEMYDo2qvWr+y+KRp89KS/MfstN RuZ0/uuuXFXACHnd8mIQPwW3JvBOukK1C9UvqOArXFzwSzs14VKCZKH9GCzFgJh3aqvg m2bm85RRT1Tmuuno0AnKJw2a+uQezqPMUG7patRXghVYC44Oladqs6I3+gAVk2Uc9T7E lsqQ== 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=gkDCYxkIaYpF+mMdysuvMKfvwvqYZtICLIzLu2hIjfM=; b=eyYsbOtz4/NdCv1XUrDS9UQCj2kFKckPIXiymXn9DEcf3GF4+Dkecki03Xc428z7O0 n5CgBqXDk3otdGLnKIt0sG+C0f9b3zUZrFY93cVCHafdl3UVkip8er9n9bZ8YGk2dA7B KypUhkOZSLnPYQVZhgYuDcmOv23g1xDnp7JBl7GL8aONTAmlGM/cYys8MQsz6KBS4HaB NB0E4D4m+G0fB/rHqTmXBAzrddx58gANC0hqt85o51SGNQ6pu4c24ecKSA5tTL4fS4TU 2/k2mqAHL6/j7rscdU0/NvoDzQBBlcVJsYWXc0Ksg45+sEoIP0h0ftWyUbio4m2y5CWx jmlA== X-Gm-Message-State: AOAM530/qmvY6wGzn8d6QXb1Qi/WLCl7xx8SYKxhv36IVyLOz89kBotz UUw1Tp01lybFZXRjIwgGPlEAwECEGTU= X-Received: by 2002:a19:c751:: with SMTP id x78mr279881lff.82.1590625410790; Wed, 27 May 2020 17:23:30 -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 l15sm1032750ljc.73.2020.05.27.17.23.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 May 2020 17:23:29 -0700 (PDT) Subject: Re: [PATCH BlueZ] avrcp: Fix always requesting player settings for category 1 To: "linux-bluetooth@vger.kernel.org" References: <20200527224343.182610-1-luiz.dentz@gmail.com> From: Andrey Semashev Message-ID: <1d23ca79-1940-dca0-6048-8374594ce6c7@gmail.com> Date: Thu, 28 May 2020 03:23:28 +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: 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-28 01:46, Luiz Augusto von Dentz wrote: > On Wed, May 27, 2020 at 3:43 PM Luiz Augusto von Dentz > wrote: >> >> From: Luiz Augusto von Dentz >> >> 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 > > Please let me know if you are able to test the above patch, it should > fix the problem with Senheisers headsets if the are not setting the > Player Settings bits this would prevent the command to be send so it > doesn't crash. > I'll try it with Momentum True Wireless 2 tomorrow.