From 0be90488456026a77d4d5cf7ca1bc850165ffea3 Mon Sep 17 00:00:00 2001 From: George Gao Date: Thu, 6 Aug 2020 19:19:24 -0700 Subject: [PATCH] asoc: lahaina: use new pm_qos API to let audio ULL run on core 1&2 for concurrency usecases This change ensure all concurrent low latency/ultra low latency use cases run on core 1 and 2. Change-Id: I83456a992d1de748854308f3efc7555b3ca9aaad Signed-off-by: George Gao --- asoc/lahaina.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/asoc/lahaina.c b/asoc/lahaina.c index 4a8a808871..b5b2b85dff 100644 --- a/asoc/lahaina.c +++ b/asoc/lahaina.c @@ -5107,14 +5107,12 @@ err: static int msm_fe_qos_prepare(struct snd_pcm_substream *substream) { - (void)substream; + if (pm_qos_request_active(&substream->latency_pm_qos_req)) + pm_qos_remove_request(&substream->latency_pm_qos_req); qos_client_active_cnt++; - 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); + if (qos_client_active_cnt == 1) msm_audio_update_qos_request(MSM_LL_QOS_VALUE); - } return 0; }