Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1729714ybg; Sat, 19 Oct 2019 01:14:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzq6bLkAEb+PTTCNVhYard4B9RF6oHJaNNFyFFfANF8Th+I2rBKGwbU3/Tx5k+l1vhffgEA X-Received: by 2002:aa7:d756:: with SMTP id a22mr14085464eds.198.1571472888328; Sat, 19 Oct 2019 01:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571472888; cv=none; d=google.com; s=arc-20160816; b=mcrhxMgYRgdp7sCV1G0GMCoKpIMtELerRIGw7uHj5I6iX9BifJcOBt16wYdmfyNvMu jj5NMPnwoDMqQT72C/E5QSaiTaRkUobmF5cGP/yP93Y0Og0fM1z26j6DHPKf4b2zaPvx WOXb+wMeGD9F2g54bXzY+lrwAsY5wBLTBEbpa5jYNWy7cuw/z9KldVZhzB6HpQDVf+gQ X0ABxjLyn0gbPomIBL2NhNE48wH5ZnT5V6uCcY8LEFdfnd7YSSSIYRqqfj5bA0EC/Evf sW4jEdgx+Zo2z3EKI0At2oR/SRvtcblo2OInNO5E/6Cas/eH4MbYu9Ppd1jMECLzoAgX SIpQ== 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=MopQ8usmB8KPj/8eXO3bonUHS5De8IGMTZRJVmlrCfk=; b=oLz1un/NDQWCr5iu+4a6bQAA3k664uviRo2LtmdsCVtPtptT7kvH6UHHB9ebvjNWgC CkNcMFyBh4qrlcT22Lhn97mV2GAS/KI1hnT2bn5xdZAkYAgiJIurHw65V8xc6Kl9lnSM FkbAbF1qZ0NQUPZ9cbqdBSOOYczFQCXajJBUcoNFpECJEIyfRVRrzYm2QMbf8volr1Xs mVO1OXpY79m4ZskXDxTp9RJlsgQTV9CYv0YuMOshCqmL7eC6SFLjGlFbQuaSSjJITEQI S1xluhuOhn/mawTZO9ierSKdQKL+RujVa/qn5pExCvqrBTp5hGtRHNuzBfGzi56gSRtK zIAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UJjeYIKY; 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 gz26si4687804ejb.65.2019.10.19.01.14.22; Sat, 19 Oct 2019 01:14:48 -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=UJjeYIKY; 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 S2407186AbfJRKz1 (ORCPT + 99 others); Fri, 18 Oct 2019 06:55:27 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:46861 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405188AbfJRKz0 (ORCPT ); Fri, 18 Oct 2019 06:55:26 -0400 Received: by mail-oi1-f195.google.com with SMTP id k25so4800545oiw.13 for ; Fri, 18 Oct 2019 03:55:24 -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=MopQ8usmB8KPj/8eXO3bonUHS5De8IGMTZRJVmlrCfk=; b=UJjeYIKYBYGfxnxWdKm/t4icpZjAXmarVWqjbIRGAL8U89fX3Gw0tMcVy0UTlYdZq+ 86kf52aG5w1faXFxFE2MQPBzjkmD6zbyzA0rfPW4qjnuWyzUlS28GXUkVEuIz6WFZjii jdPHyaF4h3rVs7NQkTvGzMV8gPAHMcEW+CCIffZPwOo8tfipUX/YGDLKfixL6RdVZ6WC acq+mxk2eOLEx0SziwPthSmO3LSCWj2rLrEaGIDTWPJxfpIIPQ60x9WenaTmoqO189T5 Jl6tUuKl6lFyb7np/U4ABMQ0lhAfsW20FVxXFRZxZNCx/+FWcebJ1vtVhuuDJgQCaZcJ yz4Q== 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=MopQ8usmB8KPj/8eXO3bonUHS5De8IGMTZRJVmlrCfk=; b=LbrJVdv+Y330p7mIjRQPBsBEEyGJWmeKse8z8qhBHvM21zpv9OQMQkLLnfmyM41uDJ yuTfOZxZQQKeTUkpPDUXauIJQS5DI3CW10lW/CSw4O7XqHWm5GZ+qS6jzmwGAYSH29qC /onhWrt6sIxV16BTSzhe3tlVlYdls/+yOMoMevzt76MiltHm+fffUolwlZYc275y8b56 ThDfZw03VNKU8fMvf1LgLnSXMCfKh9RrlWGsW39uvImKCYSyBUBA95T56qk6Oloy2Utg liBX36vW9cQcFj+7cyXrCqkoK0c1P9UPSl9MxhM7AOthfjvUJNrFIy7QE4wm21xxLptF VR7A== X-Gm-Message-State: APjAAAWCQS3R06Lg+rOi75zl857R04tiGErhTgpgj8TeNMHhTEaIAgxq lQbYyQvDPaVOyWTpPoFvmwMwHUki9jnHKjGeq40= X-Received: by 2002:aca:4584:: with SMTP id s126mr7513598oia.21.1571396123935; Fri, 18 Oct 2019 03:55:23 -0700 (PDT) MIME-Version: 1.0 References: <20191003181855.GF28704@reaktio.net> <20191006100503.fsbttcschr6wgsdq@pali> <20191006120245.tkrooh45q7irtm6l@pali> <20191007143307.ez6g466afu3trlxn@pali> <20191008103333.rqn2btlkwtcrpouo@pali> <20191009131921.ysl3ianpv5e4m677@pali> <20191017095957.cce7jzejvn76kwkc@pali> <20191018083731.GJ28704@reaktio.net> In-Reply-To: <20191018083731.GJ28704@reaktio.net> From: Luiz Augusto von Dentz Date: Fri, 18 Oct 2019 13:55:10 +0300 Message-ID: Subject: Re: [PATCH BlueZ 1/4] doc/media-api: Add RegisterApplication method To: =?UTF-8?B?UGFzaSBLw6Rya2vDpGluZW4=?= Cc: =?UTF-8?Q?Pali_Roh=C3=A1r?= , "linux-bluetooth@vger.kernel.org" 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, On Fri, Oct 18, 2019 at 1:32 PM Pasi K=C3=A4rkk=C3=A4inen wr= ote: > > On Thu, Oct 17, 2019 at 11:59:57AM +0200, Pali Roh=C3=A1r wrote: > > > > > > > > > > So... what should applications expects and how they should implem= ent > > > > > above decision? > > > > > > > > Actually the decision should be based on the presence of > > > > RegisterApplication method, if that exists then endpoint switching > > > > should be supported as well, so has nothing to do the > > > > GetManagedObjects API of the bluetoothd. That said RegisterApplicat= ion > > > > was not made experimental which kind makes 5.51 broken because it > > > > would appear that it endpoint objects would be exposed but when in > > > > fact there are not, anyway lets finally have the code to use this > > > > interface and then we can remove the experimental flag from > > > > MediaEndpoint. > > > > > > Ok, so can pulseaudio do following? > > > > > > Call RegisterApplication. If success then expects that codec switchin= g > > > is possible and via GetManagedObjects exports all available codecs. > > > If RegisterApplication fails then fallback to RegisterEndpoint, expec= ts > > > that codec switching is not possible and so register only one SBC cod= ec. > > > > Also can we solve this problem in bluez ASAP? Last released bluez > > version is due to that non-experimental API broken and once application= s > > (e.g. pulseaudio) starts using this new API then A2DP without bluetooth= d > > -E would be broken. > > > > I would propose to remove experimental mark for codec switching API and > > release a new bugfix version of bluez, so people would not use released > > 5.51 broken version... which could prevent breakage of A2DP in future. > > > > +1 > > It would be nice to get bluez 5.52 released before 5.51 gets released by = distros.. Just sent a patch marking these APIs as stable, when are we expecting a new PA release btw? --=20 Luiz Augusto von Dentz