diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2014-06-02 18:37:47 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-06-06 11:27:45 +0300 |
commit | c44c923bc9789348e5f7d10dbb734b4da32234f7 (patch) | |
tree | 7e8a2fdcc2d36d0d2c4267e77a48bab008bb868a /android/hal-audio.c | |
parent | 53e754a98fd2fbede4c6da49aaa9a5126cadc582 (diff) | |
download | bluez-c44c923bc9789348e5f7d10dbb734b4da32234f7.tar.gz |
android/hal-audio: Always call qos_update
As it turned out, it's better to always call update_qos and just
provide dummy callback from codecs which do not support it.
Diffstat (limited to 'android/hal-audio.c')
-rw-r--r-- | android/hal-audio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/android/hal-audio.c b/android/hal-audio.c index 8b8249883..f15e76702 100644 --- a/android/hal-audio.c +++ b/android/hal-audio.c @@ -544,8 +544,7 @@ static bool resume_endpoint(struct audio_endpoint *ep) ep->samples = 0; ep->resync = false; - if (ep->codec->update_qos) - ep->codec->update_qos(ep->codec_data, QOS_POLICY_DEFAULT); + ep->codec->update_qos(ep->codec_data, QOS_POLICY_DEFAULT); return true; } @@ -704,8 +703,7 @@ static bool write_data(struct a2dp_stream_out *out, const void *buffer, if (diff > MAX_DELAY) { warn("lag is %jums, resyncing", diff / 1000); - if (ep->codec->update_qos) - ep->codec->update_qos(ep->codec_data, + ep->codec->update_qos(ep->codec_data, QOS_POLICY_DECREASE); ep->resync = true; } |