Преглед изворни кода

Revert "asoc: lahaina: use new pm_qos API to let audio ULL run on core 1&2 for concurrency usecases"

This reverts commit 3ebb25c5e2d597b1b5fdec580165300f37b02fc5.

Change-Id: I0a1f5c32c0690b61d4a6157cc817c9f2295728d3
Divya Sharma пре 4 година
родитељ
комит
3046358d8f
1 измењених фајлова са 5 додато и 3 уклоњено
  1. 5 3
      asoc/lahaina.c

+ 5 - 3
asoc/lahaina.c

@@ -5078,12 +5078,14 @@ err:
 
 static int msm_fe_qos_prepare(struct snd_pcm_substream *substream)
 {
-	if (pm_qos_request_active(&substream->latency_pm_qos_req))
-		pm_qos_remove_request(&substream->latency_pm_qos_req);
+	(void)substream;
 
 	qos_client_active_cnt++;
-	if (qos_client_active_cnt == 1)
+	if (qos_client_active_cnt == 1) {
+		if (pm_qos_request_active(&substream->latency_pm_qos_req))
+			pm_qos_remove_request(&substream->latency_pm_qos_req);
 		msm_audio_update_qos_request(MSM_LL_QOS_VALUE);
+	}
 
 	return 0;
 }