Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2680075ybv; Sun, 9 Feb 2020 05:03:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwu475oUm92Z5VAHmsZJJOKUyOOnAmtghTwAv3N1wxWjbHoNnBJJudtsjHzENRkCru5uQts X-Received: by 2002:a05:6808:249:: with SMTP id m9mr8029798oie.5.1581253381057; Sun, 09 Feb 2020 05:03:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581253381; cv=none; d=google.com; s=arc-20160816; b=OzLjH3T+m+wIFPdyhyHCTds92pABdSymAFtN2Ob21sBg7ZviRQGH609PieuICsmTOZ 8UHpbBM40A3/39i5p5NcmwRlqptbNW33bT0pzz4/JE1UrSjVajnKMnpTn7ow3tcWF7HS qfsxZN508V+yLbnC7zJPV5IsjybHDCxnS/en0mhNBuRAqe2N/JxrftT30jCLe1iUcRPI DCb51dg6f1rKbMXPWYRUVji/Q4Zx8gPpIihpZ7VcDm2f52ZhLMLPx8LXQNV3Eq/NHaN8 AkHSEsKDCmC2py4Arq0sRq2ul2gj8i9tVsieDxqr/bjURqab8J+DfIYcF9GKOiUqF4VN NRJg== 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=LD/dxDdggu0yAA8+pu6gGNggDoxRLXdofBaSyEMSVBY=; b=jtCiWQqJ/imCb6j7Eu+soQYSbOlYe+/fEhOHeNL+MsUSUnWYCZZ8N6QnR3cqxAWfGd pBWbDuIi7wNImH5YSJHlquPJ6ThBWlmxVgumdAjdn8Bf6zBt9cl7jgmrCdiPBeAjllpr GBHDnTT/Fvgq/Z60P92s2az3SHyLzLm5qoVnTDLTI8SPN8+K6RzVH4/pf1fT++xuXfUI 2vr4qHleCEViY/2qgNTxuom6ETs1mGhUzMCJetqLH4YPPcrJvBiiptDusBNS8g4higQd Hmd+ZZx98pgCF8/5WXYuN7Bl0dyXaEg+F0kb1TdGnI6fVc88YMlOMpp/5qyBSh0ThLSR LvyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IbTw6Gug; 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 i6si3517237otj.24.2020.02.09.05.02.49; Sun, 09 Feb 2020 05:03:01 -0800 (PST) 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=IbTw6Gug; 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 S1727723AbgBINCq (ORCPT + 99 others); Sun, 9 Feb 2020 08:02:46 -0500 Received: from mail-wm1-f46.google.com ([209.85.128.46]:53553 "EHLO mail-wm1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727473AbgBINCq (ORCPT ); Sun, 9 Feb 2020 08:02:46 -0500 Received: by mail-wm1-f46.google.com with SMTP id s10so6971954wmh.3 for ; Sun, 09 Feb 2020 05:02:45 -0800 (PST) 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=LD/dxDdggu0yAA8+pu6gGNggDoxRLXdofBaSyEMSVBY=; b=IbTw6Gugfg+gh1G734YNXsw1ta78d4aWXJ2C79lCfAUh3jMwEeWGbFGPoNzcNjsFjH mZ5pycMlj4NKKAlfmW9M57Fq9Fd2nVDsVRtysA+6Zd6BbtvdR8KWUy89RkymefGuFsBU z2M2e6uOkWEUi+Abti40/npYxRkJbj6LsZ3j8X/EKpqaJF6JEcDfnlostCq/5bTYueXy KnTpKaiNia3r485VWVAfw8icv0b83cAgCPC0hgVbD74zrjkGk/mbnRS/VcrorvpPg8hg 4fkC8LsTqvLyY8vSkeUOfJ8CjoJhy3zvkYtk5ZDNCHBSIOSjrFDH0QZMMCGC+p1/UNwy oy5A== 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=LD/dxDdggu0yAA8+pu6gGNggDoxRLXdofBaSyEMSVBY=; b=mVLeZB4roRgbYvyFKeRDGxBHRlWcc+LgFeX3RroyqRQ/aBhm7TuW6Ey3oH7Y71g7NO Sov5Y5ijq2IAtRPGkrCvPeJeka4wgmL3TZU69oh/VPOhV1HoAOzbTDWYuetooRja8oA2 hQ9jpDZxSsUBJClJZ3knKwJ6E7e5jXbvmoG+I5wBfEPdK+twtKnsuhfvhZ8O91TvoqQF YXifOYOLZdNZ4NbW0Hpx+8nfbfTWB+qr1/geCWY+IopVf1Nha8VAuzsRGrFvYE3lQ4Dg LBTgarN6UzpmyQ/75BPJ+cq4CwZKh5VC90g81AjdyAtrbbnHXSON9AUUikJNyWLd+Qf3 qHyA== X-Gm-Message-State: APjAAAUpRpKDDRS7YKp+R0Sqz0NBaJXf4Awfl0GEOWnIh9FcZtCXlySq XYiXl/R+YDeydNlYJMAQQTM= X-Received: by 2002:a7b:c778:: with SMTP id x24mr9228862wmk.59.1581253364554; Sun, 09 Feb 2020 05:02:44 -0800 (PST) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id t5sm11680968wrr.35.2020.02.09.05.02.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Feb 2020 05:02:43 -0800 (PST) Date: Sun, 9 Feb 2020 14:02:43 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Luiz Augusto von Dentz Cc: "linux-bluetooth@vger.kernel.org" Subject: Re: bluez: Export SDP "Remote audio volume control" item for HSP profile Message-ID: <20200209130243.u4kpbj3cwhbdqa56@pali> References: <20191212172944.hgt6se2qz2hpsbo2@pali> <20191212230314.g5gt6rxkphzpwucd@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191212230314.g5gt6rxkphzpwucd@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 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? -- Pali Rohár pali.rohar@gmail.com