Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1052007rdb; Fri, 20 Oct 2023 07:14:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGiBRGdJqNpv9mWc9ZfB9wr5hwViqRIWuTTX8GVcUqvfayubY75jBhLY28DFDjWAVpGelTC X-Received: by 2002:a05:6a21:4843:b0:15d:d73e:e398 with SMTP id au3-20020a056a21484300b0015dd73ee398mr1617884pzc.16.1697811241049; Fri, 20 Oct 2023 07:14:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697811241; cv=none; d=google.com; s=arc-20160816; b=lH7JzELojbKC10D09rlbB99D6CK0SKsMVaWm+X+HAj5hvUr2loW+4Xsn5XKn9MKeaq BCOdxC67US8+awyJE1GhRUP+blPa2wuV19mCa4yZ6g+huqOq/wksUsNpuiL2WKWu94La 7ch2l3uUghsD111jqU3aGQqdh9oIfGSatPB2+VVKkhmHoU4tQ7y1PYaeAb4S3qVeyEk9 ++4rCc3Rdyx2bznca14yY065VIGIHY9nSd1hvl5hrhaMc6YKTbjMPhkWWEQtB/mFphVl 0spyA3COvmvmfPV5FIugCP9ft8Z/yN1+TdONaV+Y379gPBy3HXZEaaqY85KFUANNzUSi oNog== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8BWjXf9PGsqeJHnovtgMS4jANWx/ikErUmkF6UsStUY=; fh=U3ev7U7uX1ilviB+nfdu7oOFhneDnAUw+Nb8W7HsKBg=; b=0F+zKZEIFpwq0Pls5I9MMIXBdRr+DZWSfwPY6SLEuMTVjk1VR8zJ7x8DyPWP6Ykzsz KdDQRj1x45PzewMET4lNm43pcaMRL5DVWDCxjNYYRpoeTx4QjJecbkyPg1QLmzFjHhtZ yLPD7hANT91guNJG6D8/iS1+22Or/GZyTZucPhy7X1LyBKT8s8cDCHLovQ+gzEVKV3Qf kmSva8UB5gKRCuuLsFwFvLZ5xPbOwvZ4TIhrARO8NfQqVx4NDzXHmv5A3/CSOPoVCQ09 qbchPhdN05Ivka2qET7is8jMJjZ2ZAH+UFqDXNgZhQ+Iz+0sOI+oTuHFuYsfYMQl5iq2 nQ6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PcPVjeh3; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id x185-20020a6386c2000000b005644a9be955si2061830pgd.179.2023.10.20.07.14.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 07:14:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PcPVjeh3; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id ABEB6842C6A4; Fri, 20 Oct 2023 07:13:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377538AbjJTONs (ORCPT + 99 others); Fri, 20 Oct 2023 10:13:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377530AbjJTONr (ORCPT ); Fri, 20 Oct 2023 10:13:47 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D16E2D41 for ; Fri, 20 Oct 2023 07:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697811225; x=1729347225; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KBhe0yXqXt7ZHhsZymsr3fzLps0zsk6XXIct1khCwyI=; b=PcPVjeh3sOyl68+GNREewaw8HVcIOe7JsAVAnUgm8c7wCwYVEi6o1Xi8 bVJHdHJ1gmgZ3z6Ux79kFPpElVzlWAKbiU3BWJ6J23NXY/0yeEiHs2EQk yTSoF+1Z9HuSfL/GW49Kx1bbcP/9/lSvFdYWZP8bYTkoM/ZIptQZ2bCek K5DmnL9DyWdcRV6evGHUJzKYR5wfmzd+5JP3AcJpx2O8eR5s65yDre3Ie haxtuMZ98q/PYo2+4wDPQlRhzKXsJ3jHqa+4O0GGp+SsAquKMvFXY8qbO /gkWNnFugY8S0nVyLgHhndyeYGrWNfNNU8tKMjI/CcR7sHbd4A9y0MqP6 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10869"; a="365840890" X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="365840890" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2023 07:13:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10869"; a="1088756511" X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="1088756511" Received: from intel-lenovo-legion-y540-15irh-pg0.iind.intel.com ([10.224.186.95]) by fmsmga005.fm.intel.com with ESMTP; 20 Oct 2023 07:13:44 -0700 From: Kiran K To: linux-bluetooth@vger.kernel.org Cc: ravishankar.srivatsa@intel.com, Kiran K Subject: [PATCH v1 4/5] bap: Fix reading source codec capabilities Date: Fri, 20 Oct 2023 19:55:53 +0530 Message-Id: <20231020142554.486629-4-kiran.k@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020142554.486629-1-kiran.k@intel.com> References: <20231020142554.486629-1-kiran.k@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 20 Oct 2023 07:13:58 -0700 (PDT) Sink ASE capabilities were read instead of source. --- src/shared/bap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/bap.c b/src/shared/bap.c index 5cb8b5aba659..bd00fa210abe 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -2634,7 +2634,7 @@ static void bap_add_source(struct bt_bap_pac *pac) iov.iov_base = value; iov.iov_len = 0; - queue_foreach(pac->bdb->sinks, pac_foreach, &iov); + queue_foreach(pac->bdb->sources, pac_foreach, &iov); pacs_add_source_location(pac->bdb->pacs, pac->qos.location); pacs_add_source_supported_context(pac->bdb->pacs, -- 2.34.1