mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-11 18:40:22 +00:00
Merge pull request #258 from andryblack/a2dp_other_codec
a2dp: other codec support
This commit is contained in:
commit
ecad2f272b
@ -207,6 +207,7 @@ static inline void avdtp_signaling_emit_media_codec_other(btstack_packet_handler
|
|||||||
if (event_size < 113) return;
|
if (event_size < 113) return;
|
||||||
event[0] = HCI_EVENT_A2DP_META;
|
event[0] = HCI_EVENT_A2DP_META;
|
||||||
event[2] = A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION;
|
event[2] = A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION;
|
||||||
|
(*callback)(HCI_EVENT_PACKET, 0, event, event_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void a2dp_emit_stream_event(btstack_packet_handler_t callback, uint16_t a2dp_cid, uint8_t eventID, uint8_t local_seid){
|
static inline void a2dp_emit_stream_event(btstack_packet_handler_t callback, uint16_t a2dp_cid, uint8_t eventID, uint8_t local_seid){
|
||||||
@ -284,7 +285,6 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION:
|
case AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION:
|
||||||
log_info("received non SBC codec. not implemented");
|
|
||||||
avdtp_signaling_emit_media_codec_other(a2dp_sink_context.a2dp_callback, packet, size);
|
avdtp_signaling_emit_media_codec_other(a2dp_sink_context.a2dp_callback, packet, size);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user