a2dp_sink.c (5d2ab2545f20b147efa9b60a228772af930a21c6) | a2dp_sink.c (d3f12e45554c72052e9608afce24dc5314ceb0fb) |
---|---|
1/* 2 * Copyright (C) 2016 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 109 unchanged lines hidden (view full) --- 118 119 return local_stream_endpoint; 120} 121 122void a2dp_sink_finalize_stream_endpoint(avdtp_stream_endpoint_t * stream_endpoint){ 123 avdtp_sink_finalize_stream_endpoint(stream_endpoint); 124} 125 | 1/* 2 * Copyright (C) 2016 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 109 unchanged lines hidden (view full) --- 118 119 return local_stream_endpoint; 120} 121 122void a2dp_sink_finalize_stream_endpoint(avdtp_stream_endpoint_t * stream_endpoint){ 123 avdtp_sink_finalize_stream_endpoint(stream_endpoint); 124} 125 |
126uint8_t a2dp_sink_establish_stream(bd_addr_t bd_addr, uint8_t local_seid, uint16_t * avdtp_cid){ 127 avdtp_stream_endpoint_t * stream_endpoint = avdtp_get_stream_endpoint_for_seid(local_seid); 128 if (stream_endpoint == NULL){ 129 log_info("No local_stream_endpoint for seid %d", local_seid); 130 return ERROR_CODE_COMMAND_DISALLOWED; 131 } | 126uint8_t a2dp_sink_establish_stream(bd_addr_t bd_addr, uint16_t * avdtp_cid){ |
132 uint16_t outgoing_cid; | 127 uint16_t outgoing_cid; |
133 | |
134 uint8_t status = avdtp_sink_connect(bd_addr, &outgoing_cid); 135 if (status != ERROR_CODE_SUCCESS){ 136 return status; 137 } 138 139 avdtp_connection_t * connection = avdtp_get_connection_for_avdtp_cid(outgoing_cid); 140 btstack_assert(connection != NULL); 141 --- 71 unchanged lines hidden --- | 128 uint8_t status = avdtp_sink_connect(bd_addr, &outgoing_cid); 129 if (status != ERROR_CODE_SUCCESS){ 130 return status; 131 } 132 133 avdtp_connection_t * connection = avdtp_get_connection_for_avdtp_cid(outgoing_cid); 134 btstack_assert(connection != NULL); 135 --- 71 unchanged lines hidden --- |