Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1931ybm; Wed, 27 May 2020 17:24:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxG/6oJr7KGkGj/Fqrcncnp0saEmaoQfroYAYyCqoi94tJquWX41CCPEpj6mkynOlPinQ0 X-Received: by 2002:a17:906:d148:: with SMTP id br8mr752664ejb.356.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=DCVcEh1Yrg/iTddHWrnY8TnscdMqV0BdF4dAf9ZHpmHLNXpaT2sPhqSA6LTOgHrDi1 NHiw9uFumz9QQJxGqKMSQGJiWWEmq7gaSXK0CPp5MxwhMrlDV1x+26oJABJNHitpYM1n WKAz8r4eanvxQ03tg8N2r41kFUhjWNENDbLvBHXKFy6fd+so/0/PVDal7GYJzPnCI4EI sqQpyYUlSc1CIdFklQU5jclmeKj4sbebQf0Duji+P5PrvhIquD4s7Fbz5av2F07KO+Mx fcgeRwXrffU/Gd/bnXe2tBb6olB3uG9x/Bi+VZgORToSNUUJIa8LzYD/w8rcbDCyouTs y5lg== 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=b7EHUgn0SU445vGm/wEu7GanId6j1tcW922MC9zJgGNnRaAezKMk5vnpHTQTuMdrnW trKZqrdajZopoSBYCeHvwWeJLceeW3UiVSRky8ZuGOz6JIsiYsBEZARBenI4p3OBwXCK Hp48H9yIrdP9n1lzE/Eufe/d0buo+gYS88WLkL3moDDryR9oWzYTrfNSXz0gtYaYfLXY qE7ZQzexMTi/coIawViH1P12OaLdE27k/whk0f/lvlN72PS9+lz+p4SHDh2fNrlGCU5s hBKfU++jpOivIASH7C4VZdW5bViGen+XHkvgZb4qF/Hq8GP3JNoPjFyIVk0qhVcXAPy/ 90zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ri34lTeL; 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 p24si2580103edi.428.2020.05.27.17.23.46; 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=ri34lTeL; 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 S1725768AbgE1AXk (ORCPT + 99 others); Wed, 27 May 2020 20:23:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725681AbgE1AXk (ORCPT ); Wed, 27 May 2020 20:23:40 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 216EEC05BD1E for ; Wed, 27 May 2020 17:23:40 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id z18so31158007lji.12 for ; Wed, 27 May 2020 17:23:40 -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=ri34lTeLkxvXLsnbPFPNULWhPsQyUDbmrqtaFmqKgpLFnYriwkSk/rlUaPeLtcn7Ll epnmG9Vw+dnon8K9D9q5aAABaeNm+6w+YJS1CpwzdS16YBQnuaxt3N1dFTWjQDADeT4O ds1LvDsxoARxCVIB5Wm8GCiWde3LHPBINkFoip98xHLqpchrvJphrcvQDmUp/R3BxWZ+ y6dp4Wi2v1ljCajWUt9t5olnB8BE7BTRdUQi/V6kcpOIh8gKu7eBzebGR6HovFyoLr+h Df4YWH1nxaesuBgaIfWAeGOePKkdJYIhXHdtWdLhWQntSx9MeBursrj6EV6S+UzuxO2C iIMw== 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=ivmSGHkJqGI+99nrOsk+NuPOaoIInxuRmLcr3fJ+x/F5TSC84u3iw/l5sbauyHZDJN eun/FVnKLP44oIg1xAJfGnvy5Omju2xp1Gl010zshjPVwTTz/hHgGGuTiIlC9POcBg5M Oan8FkSwkKRda62ADlTQ6BsSZHQsGWUJqUUUpopam0A/FjNlshWEp9u3Z9fthshK+KxN OniUszmPJ1zOwwE81lyG/SLCQqO1zttk3kEgPyNBDb0Iyu/9ga7IvlRSywt+lahfF2yF keFHF4+1h5HSyO0s4JxNrc1nKb8aaJQWfHVdfA0Ki9rm9N/ffma5Ao9SOzIGXHe7zaTT TeEg== X-Gm-Message-State: AOAM530FBDmH1ZpT3EWtUMtHgTTYhj5G2BQNEOIf/Yz6aVGGgiu4HLge NkylhROlpEXOCDrNFwN3jtOvTOOiNnQ= X-Received: by 2002:a2e:9395:: with SMTP id g21mr127413ljh.417.1590625417954; Wed, 27 May 2020 17:23:37 -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 o14sm1155281ljj.135.2020.05.27.17.23.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 May 2020 17:23:36 -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: <7a7b8f77-4367-9b3d-823d-25716d06633a@gmail.com> Date: Thu, 28 May 2020 03:23:36 +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.