bap: Remove duplicated code
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 28 Aug 2023 19:28:32 +0000 (12:28 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:03 +0000 (19:04 +0530)
bap_create_io already handle streams of differents types.

profiles/audio/bap.c

index 4441ebc76e4e369787b7d81ce58067f459ff432e..cc25eff5b7c1d5b2ade9ca4d0fb84ee6311c7a14 100644 (file)
@@ -1716,11 +1716,6 @@ static void bap_state(struct bt_bap_stream *stream, uint8_t old_state,
                break;
        case BT_BAP_STREAM_STATE_CONFIG:
                if (ep && !ep->id) {
-                       if
-                       (bt_bap_pac_get_type(ep->lpac) == BT_BAP_BCAST_SINK) {
-                               bap_create_bcast_io(data, ep, stream, true);
-                               return;
-                       }
                        bap_create_io(data, ep, stream, true);
                        if (!ep->io) {
                                error("Unable to create io");