From: Vaibhav Agarwal Date: Mon, 25 Apr 2016 11:48:17 +0000 (+0530) Subject: greybus: audio: acquire wakelock during active playback X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d7ed7cbfe695d0a77613b305bed0483a1c9569ca;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: audio: acquire wakelock during active playback This change was missed while merging original patch commit-id: 53c765c33f4a69c31027ec012e717d303bd4feca Thus submitting it again. Signed-off-by: Vaibhav Agarwal Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c index 9ed35c4da280..20feea1c64d3 100644 --- a/drivers/staging/greybus/audio_codec.c +++ b/drivers/staging/greybus/audio_codec.c @@ -410,6 +410,7 @@ static void gbcodec_shutdown(struct snd_pcm_substream *substream, if (list_empty(&codec->module_list)) { dev_err(codec->dev, "No codec module available\n"); mutex_unlock(&codec->lock); + pm_relax(dai->dev); return; }