greybus: audio: acquire wakelock during active playback
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Mon, 25 Apr 2016 11:48:17 +0000 (17:18 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 25 Apr 2016 17:09:45 +0000 (10:09 -0700)
This change was missed while merging original patch
commit-id: 53c765c33f4a69c31027ec012e717d303bd4feca
Thus submitting it again.

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio_codec.c

index 9ed35c4da2803aaca5d172b72e53f52030b3b525..20feea1c64d3376876d513470764243d80ebea8c 100644 (file)
@@ -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;
        }