Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4475275ybb; Tue, 14 Apr 2020 08:03:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKMIf+C56EoRFTqMe0JjyxC3fj8FLwdKnSarEazFgJ2d35wr2TAarXDAqC7Z16WehF6kg4S X-Received: by 2002:a17:906:a2d3:: with SMTP id by19mr543979ejb.370.1586876584952; Tue, 14 Apr 2020 08:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586876584; cv=none; d=google.com; s=arc-20160816; b=vcmIjx+esid90C922iXyPFkBPyq5hWz+E867NXf8XmfpwZrgmKK0fM2trxYB3QFpm8 bomBasvKCrYOkuLI/ivceAAvC5/b0AGF2iwyc5a5buP223kHqHPffyV/iiVz1MXc1DNl VxQicBU75W8OvnV6Rm2CJKe416pDc2VjO3rY5d1dV2P/qSUo0PsIdoSX8whFuwVIJSm/ AuoFqM8Oe1F5kG5ZxXjsMIYTFza0qnVTppsfxBYMpBv+NEKlJ/i8jCOCHBjNPUydcN1t fSp2b/tkESjIRnOQQhET54VypOoW4nBN8ZhkXts868mVxkVOWWMFztjD7Dn3h87rsUOa ikZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=17BYbPxG/Ru+XTeZ5kTvgLZzSAYhC0gt0yZ0EHcchng=; b=fjvoLj6EmwdQAlCF+ubeah8mKpAEXyd5vS3obV4tGv6gA5cgl6SYl5f7S1JR4xrjlz Q69SZaIVUVll4cMV5eXgtPJS3+YytmKzPWQ0rOIidf1TqXvew3+5mbvQxZwkmkGIe5Zd ueh1r3Dj8mZqjcbSpDwLTc44D7qTyYvuGNO6ms9LL8SrjBQvtmSZMowF0IYMbSdkFp0N LwZKjWpLIv+u8HUvULVHO7lyPyLc8P8NChYcFWULZ0C/12LSZaNUCHzf7RHTqbuAI9Fb GYMtF4hbz3aG5lFzXcXpcSIQE+JPZl1bnxGi2CcqEo8/eE84cxxPFjfIs5/eBnJeZadn 0lrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jtYQWEaA; spf=pass (google.com: best guess record for 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f23si482730ejf.414.2020.04.14.08.02.30; Tue, 14 Apr 2020 08:03:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=@kernel.org header.s=default header.b=jtYQWEaA; spf=pass (google.com: best guess record for 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407017AbgDNIKD (ORCPT + 99 others); Tue, 14 Apr 2020 04:10:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:52540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407009AbgDNIJr (ORCPT ); Tue, 14 Apr 2020 04:09:47 -0400 Received: from pali.im (pali.im [31.31.79.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B447B2074D; Tue, 14 Apr 2020 08:09:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586851786; bh=dt68ti/mVDbz1tH/iR0hYlp4aKyOUWSD802xP0RbfFY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jtYQWEaA6b4lj4isotkCIFkoBId/1XaOXryqhhvRfRCmpQUl+Ff87Gm3Y5AHX24x1 dWHkcFA3VybMZ0hLMzAYUCiu0O+4ZJ6dSZF/eLmSc8V8cJUK9NvOlvz1g/4plSZCHN UBG+IyJ/mf7JpJsQrQvTTZmeK1KP4Q/+1dNv3uVk= Received: by pali.im (Postfix) id 521A1770; Tue, 14 Apr 2020 10:09:44 +0200 (CEST) Date: Tue, 14 Apr 2020 10:09:44 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Luiz Augusto von Dentz Cc: "linux-bluetooth@vger.kernel.org" , David Heidelberg Subject: Re: [PATCH 0/3] bluez: Export SDP "Remote audio volume control" item for HSP profile Message-ID: <20200414080944.gkh4vfgfh3ruts4q@pali> References: <20200321195404.fvyku5hmcuqxt7sg@pali> <20200413162513.2221-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Monday 13 April 2020 17:09:42 Luiz Augusto von Dentz wrote: > Hi Pali, > > On Mon, Apr 13, 2020 at 9:25 AM Pali Rohár wrote: > > > > This patch series fixes handling of zero value in feature list and > > provides Remote audio volume control support for HSP profile in both HS > > and AG roles. > > > > Luiz, you wrote that you do not have time to work on this, so I > > implemented it myself in this patch series. Could you please find time > > at least for reviewing and merging these patches? Thanks. > > > > Pali Rohár (3): > > src/profile: Distinguish between zero-set HFP AG features and unset > > HFP AG features > > src/profile: Export Remote Audio Volume Control SDP value for HSP HS > > role via first bit in features value > > src/profile: Add default SDP record for Headset role of HSP 1.2 > > profile with Erratum 3507 > > > > src/profile.c | 112 ++++++++++++++++++++++++++++++++++++++++++++++---- > > 1 file changed, 104 insertions(+), 8 deletions(-) > > > > -- > > 2.20.1 > > Ive make some changes to remove the need to a flag to detect when the > features should be added or not, it is now applied, thanks. Ok, thank you! In commit you did one mistake: https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=040bd56a948f4d1ecd6987cdf0ba51779dc0c02a + /* HSP AG role does not provide any features */ + return 0; It should return -ENODATA as AG role does not provide any features, so has_features needs to be set to false.