Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3823347rdb; Mon, 11 Dec 2023 00:23:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEL4aEcgjMA8FrbjSd23PcvFdo0jLU52pnZrU6C4K6uA44+oDONEAFZjGl6hYbYLXjEdGQH X-Received: by 2002:a05:620a:2724:b0:77e:fba4:3a36 with SMTP id b36-20020a05620a272400b0077efba43a36mr6171763qkp.140.1702282984364; Mon, 11 Dec 2023 00:23:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702282984; cv=none; d=google.com; s=arc-20160816; b=S6S8S6nFk2AA8yFlSnfFVurYWf/geLmm0IgnEXDHqyLLYjEu7UFtgctyJodVJeI9U7 B2QJld56meMZLR8h4e6ppwVzhHlrPXFwr7sAprajcFnGkNmz//TkO1Ly+GfechoxvkqK xQhv6ccv1ABM0HEv1Obx27t/lVAZytNAO5q+AUzaal3IXHjDNmfMOWipu7u6MiyF+OkI EMbWSACzMqMHO05nt+UWtND7A2fhN+Ys/efvSO0TwxHoNCLpGbx7vxluF386Q+vfkFas T9Ejk0RwuB6fsVxkFj82fLBga0ClLjDFrptfD8saQunkvpC0K8gVCqQELHo3h+EJca7w +9UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=lgAJc3Bsf+On91ycai1RS+R9wSHKD/qazVRLKLxvlio=; fh=U3ev7U7uX1ilviB+nfdu7oOFhneDnAUw+Nb8W7HsKBg=; b=AMBr5N15sXR6h13zeP21+XdqLAMmq6gbnO09xUCgYPNWMD5UQtrsYGDBQQl7HxKeue poY6l2Dph1W0RV1kMd/xUj9Vdv2Ez58sGIhnDBxC7Rz79/ycWM8uMjKkYz5I6rV0ydeX CBdZZEiNSoWP7mNFmUIr1hIIAWk9jr1roDPPfgnpyc7OFxKhKW0uDBHhI854yMdwMAxb lNFywsR3GADLN5202vaO1qvDqiXGAzrwpieva6CWodwdalfSTjEW3TC1MFs8m1nAbi99 xT+jEW858C4kg1HTHG4FtgQNX0S7h12aEX1lYyNE/EByASURNYa99dG9AZwvsuVcRvAM f00g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="F/shY9Mg"; spf=pass (google.com: domain of linux-bluetooth+bounces-508-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-508-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ea18-20020a05620a489200b0077d87e2d618si7908989qkb.472.2023.12.11.00.23.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 00:23:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-508-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="F/shY9Mg"; spf=pass (google.com: domain of linux-bluetooth+bounces-508-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-508-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2401E1C208CD for ; Mon, 11 Dec 2023 08:23:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2735C20B3D; Mon, 11 Dec 2023 08:22:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="F/shY9Mg" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BCEBB6 for ; Mon, 11 Dec 2023 00:22:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702282976; x=1733818976; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=i86niv1nqiMIApRSykL6cnQkSDRcfNNPYZ2lRUuTGfU=; b=F/shY9Mgn0Ei1IbhaQCr4QuGkjSUWE/gLRjbaicxTXsKm3fTrsvz4J7l thw4CLpXfYuVIJN791t9Xs+eCe8F/Pairlx8rFRF6F+GrBHWZQZZPUmIY SQTdtWcHI3UGUQjUlMzO2mJ4vb2BLJpI4voOWtwr8KikhoEvP9X9zntFE hLvXVWYig2rjVy447VQcMTsRXawEGvyzbprrSN/mP38aSPvbym96aECnX 3HLPid/Co5571UfFveB6QnKffrCo/XMxJXHwdk7HbgJ/Wah7WiavYfmLj lebcNIQdMJ8LQKY6UnXP8OZzHiHPBVtpmbNR8Y+41/hW/MqLaZauPNC8J w==; X-IronPort-AV: E=McAfee;i="6600,9927,10920"; a="1422652" X-IronPort-AV: E=Sophos;i="6.04,267,1695711600"; d="scan'208";a="1422652" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2023 00:22:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10920"; a="776582596" X-IronPort-AV: E=Sophos;i="6.04,267,1695711600"; d="scan'208";a="776582596" Received: from intel-lenovo-legion-y540-15irh-pg0.iind.intel.com ([10.224.186.95]) by fmsmga007.fm.intel.com with ESMTP; 11 Dec 2023 00:22:54 -0800 From: Kiran K To: linux-bluetooth@vger.kernel.org Cc: ravishankar.srivatsa@intel.com, Kiran K Subject: [PATCH] shared/bap: Update Available context for source Date: Mon, 11 Dec 2023 14:05:07 +0530 Message-Id: <20231211083507.3363494-1-kiran.k@intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Available Context of sink was getting updated instead of source. --- src/shared/bap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/bap.c b/src/shared/bap.c index a1495ca84bcc..e9d7072ef3be 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -2599,13 +2599,13 @@ static void pacs_add_source_supported_context(struct bt_pacs *pacs, static void pacs_add_source_context(struct bt_pacs *pacs, uint16_t context) { - context |= pacs->supported_sink_context_value; + context |= pacs->supported_source_context_value; /* Check if context value needs updating */ - if (context == pacs->sink_context_value) + if (context == pacs->source_context_value) return; - pacs->sink_context_value = context; + pacs->source_context_value = context; pacs_context_changed(pacs); } -- 2.34.1