Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7512029rwr; Tue, 25 Apr 2023 14:22:25 -0700 (PDT) X-Google-Smtp-Source: AKy350aX0RpGpV0H/NDIBeoAoZDJLS2J9xceiXHSKESw+FXXNEEuOdCH5We3RqgyyhsCIi4zIK2p X-Received: by 2002:a05:6a21:2d84:b0:f0:edb:f60b with SMTP id ty4-20020a056a212d8400b000f00edbf60bmr21367812pzb.20.1682457745550; Tue, 25 Apr 2023 14:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682457745; cv=none; d=google.com; s=arc-20160816; b=lviKVBQmajSvuBhajQC87hstP8hLq7WmqweRFgBEE3D6yN6XyjGoFIdn3sHxjOeVJq Sbgro6+IR1SZL9QgFdoV0CoA3vIrDc2+7vpEhfkKv+qZ/f1jsGxiY2Anebnw4T0SmUS7 u3/7NQR6ri0Ry4gqnHGJ1vsS1TIWE35JcwPXL3eu6yL6rYV0adiSPpmiWeqaOpPbHVFa OzV09n8I+cXX2rDyVdvNCrG5FBC3SqZM/8UFzHuYFoSTSIgNZR9KqXBqj6yqe0+GuuB9 l0wUsl2alXc2TF3RC/qBLZf0usj54FhQdCmdmRav/LQLKeU1DRBtVkBwavGM4DRE5hML mjjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:subject :message-id:to:from:date:dkim-signature; bh=KnRLaIza441fg+wI+82Ym0aoB8CT1XYIT+KlZ0BZT10=; b=GeZyYIyrPe785DuwEaHWe9DAbdcQqdMdq4ymdxmfr7VutCzWRFY2/B2Cn5SyeHz3C7 aPjS+lT1tlVfv/CQrR2Ogy9ZWegfS0F6DX0gLLuJ9bf0HtWePYFRCl+Gv9JJUvCWr2jQ eYNWDJgHiKPiP5WEVi2LF5I5Pn/SeSFFM0Z+5tE6Gr41nR2uH4kr8B/9Fnp4E4juEFVh B0LUQ/gc8O5da/d4QvhrJMvS8xvTw8roZByGankg37ZFNZQh1wESwu52Srpe6jLrGYn+ fNYr4q13zDPT9nLbcR9aTbEpzV27Yd4sX2ZLyVKDkm401VthGxg87lNbR/w65jwengoV UJyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@github.com header.s=pf2023 header.b=a6Ifh4gp; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=github.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 73-20020a63014c000000b0050f818e900dsi14453410pgb.761.2023.04.25.14.22.06; Tue, 25 Apr 2023 14:22:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@github.com header.s=pf2023 header.b=a6Ifh4gp; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=github.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236343AbjDYVOp (ORCPT + 99 others); Tue, 25 Apr 2023 17:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232191AbjDYVOo (ORCPT ); Tue, 25 Apr 2023 17:14:44 -0400 Received: from out-24.smtp.github.com (out-24.smtp.github.com [192.30.252.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38B84121 for ; Tue, 25 Apr 2023 14:14:41 -0700 (PDT) Received: from github.com (hubbernetes-node-6e6be63.ac4-iad.github.net [10.52.144.33]) by smtp.github.com (Postfix) with ESMTPA id 5ED9560059D for ; Tue, 25 Apr 2023 14:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2023; t=1682457281; bh=KnRLaIza441fg+wI+82Ym0aoB8CT1XYIT+KlZ0BZT10=; h=Date:From:To:Subject:From; b=a6Ifh4gpNDS/nZucmceIMXbl68P8get3V0aD+XQelKbIBoIun7E5lS/BbCUdoMg50 nBXvaQwT2mP5rByo/2sUzimzyDaLTqCufpkDop9gEFXPwlxkZiCefGKbPNU/M+vomF kQAY1ylfL/+f+LhbFt2oZ7BhbvM82GAA36xbF/8Y= Date: Tue, 25 Apr 2023 14:14:41 -0700 From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Message-ID: Subject: [bluez/bluez] 5910b7: shared/bap: add function to get location from PAC Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GitHub-Recipient-Address: linux-bluetooth@vger.kernel.org X-Auto-Response-Suppress: All X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Branch: refs/heads/master Home: https://github.com/bluez/bluez Commit: 5910b78528010b654a82367bb2e95f70dd7877ce https://github.com/bluez/bluez/commit/5910b78528010b654a82367bb2e95f70dd7877ce Author: Pauli Virtanen Date: 2023-04-25 (Tue, 25 Apr 2023) Changed paths: M src/shared/bap.c M src/shared/bap.h Log Message: ----------- shared/bap: add function to get location from PAC Add function to get the PACS Sink/Source Audio Locations field relevant for a given PAC. Commit: 2f88c59391b8717055557f6634f92d76d9fd0001 https://github.com/bluez/bluez/commit/2f88c59391b8717055557f6634f92d76d9fd0001 Author: Pauli Virtanen Date: 2023-04-25 (Tue, 25 Apr 2023) Changed paths: M profiles/audio/media.c Log Message: ----------- bap: add Location parameter to SelectProperties Add relevant PACS Location field as a parameter to SelectProperties. SelectProperties may set Audio_Channel_Allocation, which shall be chosen from the bits set in Sink/Source Audio Locations (BAP v1.0.1 Sec. 4.4.1, Sec 4.4.2). Hence, audio server needs to know the supported values, which it previously could not. Compare: https://github.com/bluez/bluez/compare/9a0acc7984ef...2f88c59391b8