Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp659973ybb; Fri, 20 Mar 2020 06:03:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvBjokGx/QgANTxZJzoEtbQsbx6OmpdpCYwjDMJ11VBsTOKeBun2bkjbkpUmS8mD32xMhfM X-Received: by 2002:a9d:2c64:: with SMTP id f91mr6808487otb.17.1584709391182; Fri, 20 Mar 2020 06:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584709391; cv=none; d=google.com; s=arc-20160816; b=OMVmOYC2aUXU9vpSAT+30A8VLHm6wU/Ql2MUDXdUb/6NS1wNem541KZV9GwC0f+yJG ZJvle6pIRdv88Cd4ylF8siMeckUpp4agjwASVPrU9Q1F8tUk9GGB7peh7pHGjN8nsPgj tqgAfQV+CL1f3ez0s1tnfggGQZbbA/HaMdZIXgtxeNRmFeIsfF7KC6LVscHW/n5gfXBK QFJwFd1JRFUK4qV73BV3U6z8Cy/ugVVmn66ScrP+NxQ1BSEJ4aIAcDQfQRFak94k+aQc YJYl5levmVo410rsjtFh+wTNjx4M6UwzoUSSduXMz+8YXrQ/kLz7iAEecpjMunG0jmBI h7ig== 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=Q0ftB85Jx6aGt+1mPXwJgjIaSB2cWkfI0dQ+W6Udl4U=; b=qccEECA69/hXJNkOdwDzXWEsC6q37eIjLRy8ngU0zK7HsC648TCnEZHuYlJ7sgfK/E VSRQLVBxVLFX3r6QM+mmfWbonIgASKiE8vzE7+TWWP8WCYHZsH7Sd1S/z4h63E0c8MDO tXGRiEWyle6YSbVxYFcbgQQoczAKI3AKDNT5LzltjVxA/nw4I0eRFhfhn1HZXHSFFGiK tmqVnewaM7tgQ7FEpaX9zSZuE93Bx7t2PWPMmLyQQR4ZJgNDHv0tSBgbfF62g5cGRYPS KAzPsB512vyJJG0aqD75Y0zz9rv28Xbc2QuzE6sJvUWrNNoc/o7clnksxkVS0/SPoziq fkFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=itCQwaGI; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i21si3061209otk.100.2020.03.20.06.02.05; Fri, 20 Mar 2020 06:03:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=itCQwaGI; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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 S1726954AbgCTNCE (ORCPT + 99 others); Fri, 20 Mar 2020 09:02:04 -0400 Received: from mail-wm1-f44.google.com ([209.85.128.44]:36192 "EHLO mail-wm1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726814AbgCTNCE (ORCPT ); Fri, 20 Mar 2020 09:02:04 -0400 Received: by mail-wm1-f44.google.com with SMTP id g62so6231065wme.1 for ; Fri, 20 Mar 2020 06:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Q0ftB85Jx6aGt+1mPXwJgjIaSB2cWkfI0dQ+W6Udl4U=; b=itCQwaGI2b+KWkmaJQBEgn25VzjZyzKe2y0v7YXEo4h5qnD9eWr0bgg4ein0ITVAgx /UFnlPoiBMORzFtY7P+MmDJ4//hLE3CmTRFTwV17td8S5nlC/iqyMccE5A2tqoV9blyF 2AzXJroAOQfCtKSMJYKVYuEQYqG1DTOG1es0OjoBO0yqNOmD0zbtwWJDUj4GVDVV0lyr kUYqe2M/xo1ZD3nxRpZteaNWqcHLNV6PNttinAtJRxpAbnDT1s2/D6xS/83r/6IQyGu0 Let/Sh8J8QdbMVyQvIZkvabgqCVB5lMuCem3aggVuLzW7yPRaTJZF98Ogtaw4Me/3g5e H78A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Q0ftB85Jx6aGt+1mPXwJgjIaSB2cWkfI0dQ+W6Udl4U=; b=SsfyKa/1VD0O8RqJEl5JwIBnGL+0VK7f0DkCEu9Jnr1/ZsTgNvbFG8n5KddhN0asgM TaEFzspNCZyvqdUtCocIdiDf4qd77XtLqqcV7wsM8T7Q814nKKaI/XD5uKKq4BNJB3ug S4grhI1h1UbPh5h0lKyJqnKgWJyLh5BSx9rxdxPvHjlnt5w6dnm6ERPxRzSf5MsCBnoM vsR1f3JZWr3Vxsjrqw/aqb7s0kbDUHoh6RYoBiG9UXkoVxaaVBZucnz9nX9HGnEr8TGy j+iivDJHKafO8EiYEDa9THhaZol0Gmb+nN1rT4Rw4Chb21FGwtmSeFgig8XD0zGHzS9D dT2w== X-Gm-Message-State: ANhLgQ1SzbzfBgb8heTp0KkvTwUp06FD/f969ANmf5/F1WcA7f3qWPwN NEu4sW4CcEcJhIF2ymY5ORI= X-Received: by 2002:a1c:1d15:: with SMTP id d21mr10034013wmd.101.1584709321395; Fri, 20 Mar 2020 06:02:01 -0700 (PDT) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id z12sm8737064wrt.27.2020.03.20.06.01.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Mar 2020 06:02:00 -0700 (PDT) Date: Fri, 20 Mar 2020 14:01:59 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Luiz Augusto von Dentz Cc: "linux-bluetooth@vger.kernel.org" , David Heidelberg Subject: Re: bluez: Export SDP "Remote audio volume control" item for HSP profile Message-ID: <20200320130159.cm2shncjg5qo6xgh@pali> References: <20191212172944.hgt6se2qz2hpsbo2@pali> <20191212230314.g5gt6rxkphzpwucd@pali> <20200209130243.u4kpbj3cwhbdqa56@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200209130243.u4kpbj3cwhbdqa56@pali> User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Sunday 09 February 2020 14:02:43 Pali Rohár wrote: > On Friday 13 December 2019 00:03:14 Pali Rohár wrote: > > On Thursday 12 December 2019 21:42:27 Luiz Augusto von Dentz wrote: > > > Hi Pali, > > > > > > On Thu, Dec 12, 2019 at 7:31 PM Pali Rohár wrote: > > > > > > > > Hello! > > > > > > > > According to HSP 1.2 specification, section 4.7 Remote Audio Volume > > > > Control, Support for remote audio volume control is optional, so an > > > > implementation may support none, either, or both of the controls for > > > > microphone volume and speaker volume. > > > > > > > > According to HSP 1.2 specification, section 5.3 SDP Interoperability > > > > Requirements, bluetooth device with HSP profile announce via SDP "Remote > > > > audio volume control" field information if device itself supports volume > > > > control. > > > > > > > > But currently I did not found any way how to access "Remote audio volume > > > > control" SDP field in (pulseaudio) application as bluez does not export > > > > it. > > > > > > > > Can you please export this field? E.g. for HFP profile all optional > > > > features from SDP are passed to NewConnection() DBus method via > > > > fd_properties dictionary under Features key. Could you export that > > > > "Remote audio volume control" bit for HSP profile in Features key? > > > > > > > > And in same way, this needs to be handled also in RegisterProfile() DBus > > > > method. > > > > > > Do you have a use case in mind? > > > > Yes, checking in pulseaudio if remote side announce that supports remote > > volume control or not. And based on this switch to software volume > > level. > > Hello Luiz! Is it is possible to export this field? Hello, I have not got any answer to my question. So may I ask again how to retrieve SDP attribute 0x0302 "Remote audio volume control" for a remote bluetooth headset with HSP profile? It is really important as this attribute says if remote bluetooth headset supports volume control or not. In case it does not support, we need to switch to software volume control on host side. There is open pulseaudio bug that on some headsets it is not possible to control volume level and therefore pulseaudio needs to switch to software volume control. But without checking this SDP attribute 0x0302 this is not possible. -- Pali Rohár pali.rohar@gmail.com