]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
ASoC: davinci-mcasp: Use pm_runtime_active() instead pm_runtime_enabled()
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 30 Apr 2015 08:16:00 +0000 (11:16 +0300)
committerJyri Sarha <jsarha@ti.com>
Thu, 30 Apr 2015 10:31:14 +0000 (13:31 +0300)
pm_runtime_enabled() returns 1 even if the pm state is not active for the
device. pm_runtime_active() gives correct information on the pm state for
the device.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
sound/soc/davinci/davinci-mcasp.c

index e9e0eb7f8c1a5c578ffeb01fe8a271f8a123c3ae..bf7ccaebedc0694ed2da7f145ab88a169e93bdb2 100644 (file)
@@ -1171,7 +1171,7 @@ static int davinci_mcasp_suspend(struct snd_soc_dai *dai)
        int i;
        u32 reg;
 
-       context->pm_state = pm_runtime_enabled(mcasp->dev);
+       context->pm_state = pm_runtime_active(mcasp->dev);
        if (!context->pm_state)
                pm_runtime_get_sync(mcasp->dev);