Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb5c832e authored by George Gao's avatar George Gao Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarGeorge Gao <georgao@codeaurora.org>
parent d6f802b1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -5109,8 +5109,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;
}