diff mbox series

[v1,4/5] bap: Fix reading source codec capabilities

Message ID 20231020142554.486629-4-kiran.k@intel.com (mailing list archive)
State Accepted
Commit a564d6a0d533217480296558fa7d7b0f933dd1bc
Headers show
Series [v1,1/5] media: Populate location to qos structure | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/IncrementalBuild success Incremental Build PASS

Commit Message

K, Kiran Oct. 20, 2023, 2:25 p.m. UTC
Sink ASE capabilities were read instead of source.
---
 src/shared/bap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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,