ANDROID: f_audio_source.c: Call cpu_latency_qos_*() instead of pm_qos_*()

Upstream changed the apis, but the driver in this tree was not
converted, so do so.

Much like commit 77b3524569 ("drivers: usb: Call cpu_latency_qos_*()
instead of pm_qos_*()") upstream

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Id420f27774599433a68ec54729104cd1d3b0c4e6
This commit is contained in:
Greg Kroah-Hartman
2020-03-31 14:57:05 +02:00
parent 5826bb3260
commit f8359e705c

View File

@@ -745,7 +745,7 @@ static int audio_pcm_open(struct snd_pcm_substream *substream)
audio->substream = substream;
/* Add the QoS request and set the latency to 0 */
pm_qos_add_request(&audio->pm_qos, PM_QOS_CPU_DMA_LATENCY, 0);
cpu_latency_qos_add_request(&audio->pm_qos, 0);
return 0;
}
@@ -758,7 +758,7 @@ static int audio_pcm_close(struct snd_pcm_substream *substream)
spin_lock_irqsave(&audio->lock, flags);
/* Remove the QoS request */
pm_qos_remove_request(&audio->pm_qos);
cpu_latency_qos_remove_request(&audio->pm_qos);
audio->substream = NULL;
spin_unlock_irqrestore(&audio->lock, flags);