diff mbox series

shared/bap: Update Available context for source

Message ID 20231211083507.3363494-1-kiran.k@intel.com
State New
Headers show
Series shared/bap: Update Available context for source | expand

Commit Message

K, Kiran Dec. 11, 2023, 8:35 a.m. UTC
Available Context of sink was getting updated instead of source.
---
 src/shared/bap.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

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);
 }