Diff between 364354381e7bb6311b2d2e6e17998d2f5f059221 and c63a16d1567e4342ed4d660467dfd74a6e4aeb02

Changed Files

File Additions Deletions Status
android/hal-audio.c +5 -0 modified

Full Patch

diff --git a/android/hal-audio.c b/android/hal-audio.c
index 8bfde7c..c4bd4fe 100644
--- a/android/hal-audio.c
+++ b/android/hal-audio.c
@@ -971,6 +971,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);
+
 	return true;
 }
 
@@ -1117,6 +1119,9 @@ 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,
+							QOS_POLICY_DECREASE);
 				ep->resync = true;
 			}
 		}