diff options
| author | Banajit Goswami <bgoswami@codeaurora.org> | 2017-05-23 01:02:50 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2019-12-23 23:43:36 +0200 |
| commit | 4ece79716068fb950623bcf20ffa77cc7b501eb6 (patch) | |
| tree | 9ea1236fc3cf27291d6ed110c1ca9ea3390c8d4a | |
| parent | e2518dc0a5abd63185e686f2afced5c67fcc30c4 (diff) | |
ASoC: msm: q6dspv2: vote for Glink Rx thread priority upgrade
For Low-latency audio playback usecase, vote for a priority
upgrade for Glink Rx thread, to avoid any performance issue.
Bug: 38234822
Change-Id: I8332c80eedd7325700e695f341fc4b92f65fd77c
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
| -rw-r--r-- | sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c index b2154620c8ae..23b33dee38cd 100644 --- a/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c +++ b/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c @@ -768,6 +768,11 @@ static int msm_pcm_open(struct snd_pcm_substream *substream) (pdata->perf_mode == LOW_LATENCY_PCM_MODE)) apr_start_rx_rt(prtd->audio_client->apr); + /* Vote to update the Rx thread priority to RT Thread for playback */ + if ((substream->stream == SNDRV_PCM_STREAM_PLAYBACK) && + (pdata->perf_mode == LOW_LATENCY_PCM_MODE)) + apr_start_rx_rt(prtd->audio_client->apr); + return 0; } |
