From 026f8ff39c8ff5f5f4839f100e775dbfd65134ed Mon Sep 17 00:00:00 2001 From: George Gao Date: Mon, 27 Jul 2020 17:54:29 -0700 Subject: [PATCH] asoc: lahaina: use new pm_qos API to let audio ULL run on core 1 and 2 The sound core driver used old pm_qos APIs which does not have CPU afinity mask. As a result, ULL playback runs on all cpu cores. This change uses new API call with affinity to core-1/2. Change-Id: If59b6f32a421038c0f89611d160e4031e03a10ce Signed-off-by: George Gao --- asoc/lahaina.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/asoc/lahaina.c b/asoc/lahaina.c index 12292bbdea..3632b21870 100644 --- a/asoc/lahaina.c +++ b/asoc/lahaina.c @@ -5081,8 +5081,11 @@ static int msm_fe_qos_prepare(struct snd_pcm_substream *substream) (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; }