media: clear the right transport when clearing BAP endpoint
authorPauli Virtanen <pav@iki.fi>
Sat, 11 Feb 2023 19:55:53 +0000 (19:55 +0000)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:21:48 +0000 (15:51 +0530)
commit8e5312ab7c7f7f9853b83c97b261bd68f1495801
tree3184b3f40256ebb643ee7c13ddcf41e19859e16c
parent93bc31c075c0664c1ce0adaac3d7225e00ce9894
media: clear the right transport when clearing BAP endpoint

Each configured BAP stream is associated with a transport, and only that
transport should be cleared when the stream's configuration is cleared.

This is required for multiple BAP clients to use the same Media1
endpoint, which is what we should aim for to follow the spirit in which
the endpoints work in ASCS.  Sound servers generally can handle this,
since the *Configuration calls provide the transport paths, and for
different clients they are associated with different devices.
profiles/audio/media.c