Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp853309ybm; Fri, 29 May 2020 13:57:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmw0mbk9YrOm12x1ADJAKTVwwkF3IyDN457ywjzQ33hCNg/VGsn8KilJ+dcnWz/D7ot4hr X-Received: by 2002:a17:906:4c42:: with SMTP id d2mr9665033ejw.474.1590785842637; Fri, 29 May 2020 13:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590785842; cv=none; d=google.com; s=arc-20160816; b=vw/vpcD2B1oJkZj8DBxfpSFEioWI5nk7le1aSnSIyNmAdRmQ5Bgw7p3futfGTF0Om+ 6y74GkchdWAfzhNYsntvL+KAy1ZsvHaeKBsFKSrYlvEH5eNNeHzNPJu7f/PJcXVVLViq jxl0VWcLacOKbZ7YompH020TfqrzROSEHQnEHbXEOgWtjr2nhKzL85mMth89VNgTig7n tCE8Rqir1mUD8jG8kcBSbi2Qn1+utykd4Su+wghzd84DiSblGT3OYnorR03v2Um5Pb9E PKksoaNJlhHO7it/qOeT9/2wSPFN+XIBRajDa1d9dK6W9Iz/A4xrxU68uAXRSa9tQil8 rRHg== 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=2RP91tNPJ9sbLZPT2r9Qi87Xb7qQvAPK+PWgsOwOKiM=; b=UlcWdWJ/k3tiuBFs8fMkaUYDWs7YjAyGdLHS0HggGMtLn4dkiPG5yts7UAYTOoo1jZ 63Qf72eMcIMJV/ysxmMqB/bzJOq9/IYPA7/NLQCFPdYc/MfrYrW7STEpGumdjTBzkB1f iiipyQwFncZAtRjM6o1R8LdSLEtap53mxPcqEF7T90L4BT3XbXZR64ucy71xKK7TO2M5 cvDshRfgPbVdxpKR0AxhkRiZKcHbAQmYyszx4de67bJy4ANQCGYSWEn5lhpWUoqE0O+p M+nuBaN8FM8+eu3w+fn3rrRwY0DXoF2m1EEQuVD22prMPGjPiE1HQmPQ1Pp2urMfGevP SOhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NgU6Gh+r; 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 dt2si1393145ejc.596.2020.05.29.13.56.50; Fri, 29 May 2020 13:57:22 -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=NgU6Gh+r; 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 S1727851AbgE2U4o (ORCPT + 99 others); Fri, 29 May 2020 16:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbgE2U4o (ORCPT ); Fri, 29 May 2020 16:56:44 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB077C03E969 for ; Fri, 29 May 2020 13:56:43 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id l10so5402947wrr.10 for ; Fri, 29 May 2020 13:56:43 -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=2RP91tNPJ9sbLZPT2r9Qi87Xb7qQvAPK+PWgsOwOKiM=; b=NgU6Gh+rvPxPyboeL+y04ZREmeTJGd+midwZ/PTtV9ULcBVcIGbpTuJthxXhHJdHqs lpNf33cNmVj0D+wbuENAR4d6nQX6Jdl/v+xA5cK5i4gl61DS5ZAC5ySbns9hYLYeK9Wf 5lntJP4V8PnV9DB6rOyZJxSyVNUwOACM+8hCB0yxHQ0b3HxXg5ReltAbl8KQ+RLwRmOp 8DIqP4N3FofFdkj21Gr/lXCjP1PP1AEo3COF29/pBHu3z93Lg5hXvQB7NLjWgEuhiBhP iwsskgOe4g1yU9pbRm+tjckeuqeGh2/3c6Z+Kn+IoG7zc3Z3iO6vGSGH16n+shF9KcBt 9U/w== 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=2RP91tNPJ9sbLZPT2r9Qi87Xb7qQvAPK+PWgsOwOKiM=; b=H1OGMbakM1bqr1j2UMbaOhZazC0YKdftuCc/s+Ddzf/eCXQ1uDZEqmeiHfxIf0msOS ILZF+wXtCMoWOuHJ+llb4z07sqeLTIMAzWpfIBmdGm3xQp3KTG1HCuTE+Azm88xTe9Hj mQQRTaCh/siRfNxcrRpfcyTbS1Q9dYKZunw8e7b+4rrgIlTzUndIszEeGrCClbjY4F6p 7pgUCGZ410QhktH8BwaHe7+Ucm5pmtKuXDDafaGNhPgoqEAT2mtj+VuuVtQseSeRRzJp wf4g7A3eWOQFIL9emjfdFRFiFfYC2LifkI6FIjLuZZR8p3RGTCgs1U2Tc2ou/ml7Fe09 1H7A== X-Gm-Message-State: AOAM533baslkhbhd35dzDnYa96M2o9WSklxjvPtZMKdRfG4HREhFB29Q EGZ0ahczLTviEcOewUyYezcCu6/IgMY= X-Received: by 2002:adf:a387:: with SMTP id l7mr46310wrb.300.1590785801953; Fri, 29 May 2020 13:56:41 -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 z7sm11300754wrt.6.2020.05.29.13.56.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 May 2020 13:56:40 -0700 (PDT) Subject: Re: [PATCH v3 1/2] avrcp: Fix always requesting player settings for category 1 To: "linux-bluetooth@vger.kernel.org" References: <20200528215300.225894-1-luiz.dentz@gmail.com> From: Andrey Semashev Message-ID: Date: Fri, 29 May 2020 23:56:38 +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-29 23:29, Luiz Augusto von Dentz wrote: > Hi, > > On Thu, May 28, 2020 at 2:53 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 >> > > Applied. > Thanks. You may want to close https://bugzilla.kernel.org/show_bug.cgi?id=207625.