diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2014-05-26 15:16:32 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-06-01 10:17:16 +0300 |
commit | 3e23bec36539f9c42a575577d9e973ec01a7461e (patch) | |
tree | 7ccfe833a6bdc4e8145a0bc2bf5f05ab34c63ed5 /android/hal-audio.c | |
parent | 60bcd3bcd92828ba3b4c1cb5269ef4e6dc694bb0 (diff) | |
download | bluez-3e23bec36539f9c42a575577d9e973ec01a7461e.tar.gz |
android/hal-audio: Make update_qos optional
Diffstat (limited to 'android/hal-audio.c')
-rw-r--r-- | android/hal-audio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/android/hal-audio.c b/android/hal-audio.c index 946a835e3..534620a91 100644 --- a/android/hal-audio.c +++ b/android/hal-audio.c @@ -524,7 +524,8 @@ static bool resume_endpoint(struct audio_endpoint *ep) ep->samples = 0; ep->resync = false; - ep->codec->update_qos(ep->codec_data, QOS_POLICY_DEFAULT); + if (ep->codec->update_qos) + ep->codec->update_qos(ep->codec_data, QOS_POLICY_DEFAULT); return true; } @@ -683,7 +684,8 @@ static bool write_data(struct a2dp_stream_out *out, const void *buffer, if (diff > MAX_DELAY) { warn("lag is %jums, resyncing", diff / 1000); - ep->codec->update_qos(ep->codec_data, + if (ep->codec->update_qos) + ep->codec->update_qos(ep->codec_data, QOS_POLICY_DECREASE); ep->resync = true; } |