diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2014-05-26 15:16:31 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-06-01 10:17:16 +0300 |
commit | 60bcd3bcd92828ba3b4c1cb5269ef4e6dc694bb0 (patch) | |
tree | fbf172e0238c06d9ecca024b6e672b5a2ca456f8 /android/hal-audio-sbc.c | |
parent | 8f14d896d1b1b252b601313bffdb55408736df2b (diff) | |
download | bluez-60bcd3bcd92828ba3b4c1cb5269ef4e6dc694bb0.tar.gz |
android/hal-audio: Make RTP header optional
Not every codec on A2DP will use RTP so it's now optional - codec can
be defined to use it and core will take care of filling the data.
Diffstat (limited to 'android/hal-audio-sbc.c')
-rw-r--r-- | android/hal-audio-sbc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/hal-audio-sbc.c b/android/hal-audio-sbc.c index 8366978bf..ad20f51b8 100644 --- a/android/hal-audio-sbc.c +++ b/android/hal-audio-sbc.c @@ -56,7 +56,7 @@ struct rtp_payload { #endif struct media_packet_sbc { - struct media_packet hdr; + struct media_packet_rtp hdr; struct rtp_payload payload; uint8_t data[0]; }; @@ -405,6 +405,7 @@ static bool sbc_update_qos(void *codec_data, uint8_t op) static const struct audio_codec codec = { .type = A2DP_CODEC_SBC, + .use_rtp = true, .get_presets = sbc_get_presets, |