greybus: audio: acquire wakelock during active playback
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Fri, 22 Apr 2016 18:13:19 +0000 (11:13 -0700)
committerAkash Choudhari <akashtc@google.com>
Fri, 22 Apr 2016 18:29:21 +0000 (11:29 -0700)
commitf2bf63a365425fa7df56c4e1dbe5a6bb29680324
treeef992dc18a46dada558225954841e211c78825de
parentf35fdb2fbdc9435b723775b6aa561590413131c6
greybus: audio: acquire wakelock during active playback

use pm_stay_awake & pm_relax to avoid suspend sequence during
active playback

testing Done:
Music Playback ongoing
$ cat /sys/devices/soc.0/qcom,ara-codec.82/power/wakeup_active
1
Music Playback stopped
$ cat /sys/devices/soc.0/qcom,ara-codec.82/power/wakeup_active
0

Tested-by: David Lin <dtwlin@google.com>
Reviewed-by: David Lin <dtwlin@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Akash Choudhari <akashtc@google.com>
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
drivers/staging/greybus/audio_codec.c