OSDN Git Service

ASoC: msm: q6dspv2: vote for Glink Rx thread priority upgrade
authorBanajit Goswami <bgoswami@codeaurora.org>
Tue, 23 May 2017 08:02:50 +0000 (01:02 -0700)
committerArian <arian.kulmer@web.de>
Tue, 19 Nov 2019 14:47:01 +0000 (15:47 +0100)
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>
sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c

index a7aab83..d35b8e1 100644 (file)
@@ -767,6 +767,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;
 }