Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp953520ybb; Fri, 20 Mar 2020 10:48:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs54RisnvhMqqIMspc5R+/FPNGXDrGFdIcgh00R5q6F/IVi5cp6HoruzrmLlyCAcOHesK3/ X-Received: by 2002:a05:6830:4025:: with SMTP id i5mr8179471ots.203.1584726529296; Fri, 20 Mar 2020 10:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584726529; cv=none; d=google.com; s=arc-20160816; b=k7T6nQEXGGDiGxAHPDiiah5SNZFpsQ2WNUNV7qtCoAF+/qn6tvwP247vkCykVrTg0Q xJZpd+PNBSek0wobpGljDlMel3JR5s8dHIOqBTU0MkH6aVc5HydJmtxVNFg0TNZWMv/N qFQtVRVGRPbLvuJVJ8uvm+KFsVItxFDETVZyK+ZY0HsIxs+LeSRQdnUQI695XBftCMsk E3MDQtorSJTRQPtE1JXDyw1JmhU+kMYV5kRluJKys9zubAtmJLMzHjiNmyxhZHYy402s 0jBD+M8FNo7xuzMVbrNRigrmqdSHnKqSNzrVcWXygaQdhf1fHayTzxj0x2+mNhf/4wvY iXnw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=oD1s/62V3eNmA4YhFFeTWGQmosH0t8Mycttzq4HVKb4=; b=ReLggQq7dpyg7yw3uPyp0GqJMgnmwLahDbiGUT8IliGuHM9vPrb0q7tWHP7KuLIQhP CJgaT1w222CAzSoBpIjk3sA4roBerlDkP254o2p8uFyGrKAHZq3LrNqan4FtL0Ds/C0q YaZWQYSIh44GZYyO1Gr43aP2qBxr2mpmRCBqI8Kbot4QrD5+Poe+QNPPaChjCnbF+3mZ wVNSao65gIQ9X9WRplE4STMV59DT9hjUtKyGoK/LAQt7TgzgLFQs6aU6XcHCM8kCQ9dY D8j1tKJXG4Gbs3Nds++aCxskguC5/NlkpGHWfbFkqdiFWU19YGFEGSdZakM8Y1xfaZvS Tyrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dryWtxQL; 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 g26si3887643otj.116.2020.03.20.10.48.36; Fri, 20 Mar 2020 10:48:49 -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=dryWtxQL; 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 S1725446AbgCTRsR (ORCPT + 99 others); Fri, 20 Mar 2020 13:48:17 -0400 Received: from mail-ot1-f48.google.com ([209.85.210.48]:46840 "EHLO mail-ot1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726801AbgCTRsR (ORCPT ); Fri, 20 Mar 2020 13:48:17 -0400 Received: by mail-ot1-f48.google.com with SMTP id 111so6760201oth.13 for ; Fri, 20 Mar 2020 10:48:14 -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 :cc:content-transfer-encoding; bh=oD1s/62V3eNmA4YhFFeTWGQmosH0t8Mycttzq4HVKb4=; b=dryWtxQLIxdZynC134t4AwwtaSuQxomxyK5UtRa/sdGhsfHxMNDy4Yn4TbmXJUfR4d DjJ5FQAVkQN0zYLXHgynMdpv5ZeuJJiUcWaZ9VzfvSgFXMxJSWTRTQmviL0ihxnwpEuo TMVMzXD5UlNIMvZlKfkWalRZ3xSPt5/URDgPmHbKhx+u/SBILvUYrIIShciRqjJpdRmc gRDdxVSCFw/g7HHqYa+uSXMWMnSj296aSoDX8S+Mqike8tiAKLpWIh/KbYds+tJfyDL2 /c9VlVdKOgZzuGoXGfKTKWYyI3SAjeaRUDnkWb7yTdd+kbdqms4ta7pqmEtuqiV+vjov ABFg== 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:cc:content-transfer-encoding; bh=oD1s/62V3eNmA4YhFFeTWGQmosH0t8Mycttzq4HVKb4=; b=PAIOGFFWPUy2fQC6E2KQ1fEcGBXCNy+BRCpnqEwpwp2v+hNU4jqWuu/+uV28zkpVDR CGrUfGy030xFbzLbBuJnTYlCgkDEMvBR0Psi2YHAOD0NPOUDJ4rAKvGt7Ptf/6+1mEvG 7v0tPmX8fToNxxUecWXRGMPW/oZLSSKyLv3DWPI9Y38hdvEnH5C5sVdb91fo2jKeB23H ibPoqT1LJuiCoYl7XqjM2hPqUfGLlPrveRnFrQrQLQfGCE8ypAv1xus3DVodzzgTJ5hu sl92kAYCZooQG8dfqT/doqVz7LIyJr67a8xSKwfDE/pLAIrvVxmjyEYF2lzGfzXdm/bC lavg== X-Gm-Message-State: ANhLgQ06BHuOcUIEIZPtAHLJdiuSprQkLvQVlLT6FJ7T9J61Fqipp3AA hLfBc0dFSRjtQhaVhrrkT3YtTAp7cGxZEA3Y1dRVLg== X-Received: by 2002:a9d:720a:: with SMTP id u10mr7335009otj.177.1584726494371; Fri, 20 Mar 2020 10:48:14 -0700 (PDT) MIME-Version: 1.0 References: <20191212172944.hgt6se2qz2hpsbo2@pali> <20191212230314.g5gt6rxkphzpwucd@pali> <20200209130243.u4kpbj3cwhbdqa56@pali> <20200320130159.cm2shncjg5qo6xgh@pali> In-Reply-To: <20200320130159.cm2shncjg5qo6xgh@pali> From: Luiz Augusto von Dentz Date: Fri, 20 Mar 2020 10:48:02 -0700 Message-ID: Subject: Re: bluez: Export SDP "Remote audio volume control" item for HSP profile To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: "linux-bluetooth@vger.kernel.org" , David Heidelberg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Pali, On Fri, Mar 20, 2020 at 6:02 AM Pali Roh=C3=A1r wrot= e: > > On Sunday 09 February 2020 14:02:43 Pali Roh=C3=A1r wrote: > > On Friday 13 December 2019 00:03:14 Pali Roh=C3=A1r 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=C3=A1r wrote: > > > > > > > > > > Hello! > > > > > > > > > > According to HSP 1.2 specification, section 4.7 Remote Audio Volu= me > > > > > 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 Interoperabil= ity > > > > > 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 option= al > > > > > features from SDP are passed to NewConnection() DBus method via > > > > > fd_properties dictionary under Features key. Could you export tha= t > > > > > "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 rem= ote > > > 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. Not sure when I will have time to work on this one, btw can't you actually detect this via some AT command, or the headset simple don't respond to the AT command for volume control? --=20 Luiz Augusto von Dentz