OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60bcd3b
)
android/hal-audio: Make update_qos optional
author
Andrzej Kaczmarek
<andrzej.kaczmarek@tieto.com>
Mon, 26 May 2014 13:16:32 +0000
(15:16 +0200)
committer
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Sun, 1 Jun 2014 07:17:16 +0000
(10:17 +0300)
android/hal-audio.c
patch
|
blob
|
history
diff --git
a/android/hal-audio.c
b/android/hal-audio.c
index
946a835
..
534620a
100644
(file)
--- 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;
}