Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp843910ybm; Fri, 29 May 2020 13:40:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrDzLFFNemlGSkAyGzsuo3SAa8M02hFzsSexRuqqyQ6LNinKKTQNbu17n6fbtgYgILgHg+ X-Received: by 2002:a50:9547:: with SMTP id v7mr10777693eda.78.1590784818825; Fri, 29 May 2020 13:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590784818; cv=none; d=google.com; s=arc-20160816; b=DNSUh/9Vv4R/KUR+j4Y9kmxoD/vw5LSUZDR5LYFPHNGXVt/OHlaB9dOBpGYkXh1cLC PKC23eKrw3q/EBwuG9MMg60yC/UGBH1l71gpejvmEKzGejnORNb9XP9hn3XqKAK8BdoA CcheiIRnuPt52kxABz7UjOTG45PNjFWnTfstouRZjHoqnsibxAUQQ/O83YimB4Py/gvj lr4me4spdy539aDFG+molDdVhGT/LuNArNN2ni2Sk+9LJQGlPjdeppEjB8kTeU+fbfKv Ts91PTiwZoMzWX3QQ7THXeHQcXxdqC9ijLpZgK9komXdIgC+V3GILdGL6eHZq51pSbu+ jrKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aqx0dQTYeoyJsNH7bitA3y/LToW3AUaUjDLuDHey93w=; b=XTQmwi0/fwXNUlih3rVsTaMgoVKUoE4Ycl3y99PWhBu1tkpnA1IIb8pufVNQeo5qKk 8H1yhpOn7aKn7xYMHI2XgYiCNQti4a+J0QMa6A+Mi9Ihv1zPLsIg/WzZsnxmxfJpbFhq nEIQRRqITbR9HD6hJvq6sIQXMjz7OZUfn0qwnbGNG4ObNwyvdJBNAESNFqUrMxToC9/D W8dpNu11p7Mrqs+QgRtgM8nv0iDVm5kBghsm2sKqI+9Va8xpVKn5ft8g6RicDQnJUirU A4S2pDuxaEcgUnsg7n+aMuHRMKYDlOwq088/b4DU1s/yqM110k9aisfKnAq/0rByMMSq K3fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DDvUAJ9s; 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 dn10si8545266ejc.89.2020.05.29.13.39.53; Fri, 29 May 2020 13:40:18 -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=DDvUAJ9s; 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 S1728223AbgE2Uhl (ORCPT + 99 others); Fri, 29 May 2020 16:37:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728071AbgE2Uhk (ORCPT ); Fri, 29 May 2020 16:37:40 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73E8AC08C5C9 for ; Fri, 29 May 2020 13:30:08 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id g5so2456646otg.6 for ; Fri, 29 May 2020 13:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=aqx0dQTYeoyJsNH7bitA3y/LToW3AUaUjDLuDHey93w=; b=DDvUAJ9snxdauPTDc8un/CwkOEw3AIv6zrfwveCTfOa0cz15D1Qow9/SyJyazc6mfK IyclCbOZhQSO6FHiZdLuAcM+zpPUlZz6CTn73vFKMWyjVxJNax/893mSGi+OBi/At4PK k7PJiabcxPL0ZLD4wdhfdRWoP1GoKywSOCH1p3V+jZLy+I4sls4oHZ7gcPgSNySt+MrN PtTgvdJC1hpx5hsJ0BsHYWuPAJGNpjHjgmQs0lU1uLfG3ZkNAjK34EfhgrJpDpxdUlg8 S2yzAu3ZeBwOn1kFmqpAT5DK1DSiERKQcc4JMG2CRS6BlBBv8q3w7GSBsJCaZxegd5Tb S/Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=aqx0dQTYeoyJsNH7bitA3y/LToW3AUaUjDLuDHey93w=; b=IPIH1UbEKwPN+hbHxbwygsVjc7kAzPLrR8GLGz/hxJpKu50v/yekaJPOrmTBXfHusv OcYT5gV3BXdSwuYVon2hQBB5tDQP7CX90d2xV5LDhb+mDVBc4Z1UHuOPdi3wkyJgrD/1 C+RgL7Uf+zzXPKxo88Dvpxg8lcuHmZ+3ip5viM0Mq74yVBNsIokmfF1jTVcGkptAck77 J9D8x5p1qP8uSZBhMAW8USMhrSeaAzIrCBjuVzlufnwFB0mi4WOH65vjgJu2dQhA2EAP zRnR1DdWErWPYSTxGXUJ4w5+tkHeTXhHizId22RR56uRFIJZtMo3c4DwFcofEmx9vzj+ vLuA== X-Gm-Message-State: AOAM530v4T9qV7r0Wufbq20SzRVmMtwZgR7EqRElr7d/lIlqO9mK187q 5V7Gghu7safhW7nRHhjL9n7JAYbctOLgIYjkpRQHVA== X-Received: by 2002:a9d:2049:: with SMTP id n67mr6891621ota.177.1590784207361; Fri, 29 May 2020 13:30:07 -0700 (PDT) MIME-Version: 1.0 References: <20200528215300.225894-1-luiz.dentz@gmail.com> In-Reply-To: <20200528215300.225894-1-luiz.dentz@gmail.com> From: Luiz Augusto von Dentz Date: Fri, 29 May 2020 13:29:56 -0700 Message-ID: Subject: Re: [PATCH v3 1/2] avrcp: Fix always requesting player settings for category 1 To: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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. -- Luiz Augusto von Dentz