2018-11-28 02:21:30 +08:00
|
|
|
From 59f1e8518a810e7913f5afa41a71639542f0fdd3 Mon Sep 17 00:00:00 2001
|
2018-10-16 02:05:43 +08:00
|
|
|
From: Sanyog Kale <sanyog.r.kale@intel.com>
|
|
|
|
Date: Fri, 24 Mar 2017 03:40:36 +0530
|
2018-11-28 02:21:30 +08:00
|
|
|
Subject: [PATCH 332/743] ASoc: rt700: Remove runtime get and put from set bias
|
2018-10-16 02:05:43 +08:00
|
|
|
|
|
|
|
Earlier runtime get and put was added while setting bias level to make
|
|
|
|
sure the clock to the codec is ON. Since clock will be ON while setting
|
|
|
|
bias level, get and put can be removed from set bias level API.
|
|
|
|
|
|
|
|
Change-Id: Ic8fe49a5dfda5a2f1d5bf49db8a669e0297d10b1
|
|
|
|
Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com>
|
|
|
|
Reviewed-on:
|
|
|
|
Reviewed-by: R, Dharageswari <dharageswari.r@intel.com>
|
|
|
|
Reviewed-by: Singh, Guneshwor O <guneshwor.o.singh@intel.com>
|
|
|
|
Reviewed-by: Prusty, Subhransu S <subhransu.s.prusty@intel.com>
|
|
|
|
Reviewed-by: Kp, Jeeja <jeeja.kp@intel.com>
|
|
|
|
Tested-by: Avati, Santosh Kumar <santosh.kumar.avati@intel.com>
|
|
|
|
---
|
|
|
|
sound/soc/codecs/rt700.c | 2 --
|
|
|
|
1 file changed, 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/sound/soc/codecs/rt700.c b/sound/soc/codecs/rt700.c
|
|
|
|
index 8fc9c00e15b8..c88aa16a4280 100644
|
|
|
|
--- a/sound/soc/codecs/rt700.c
|
|
|
|
+++ b/sound/soc/codecs/rt700.c
|
|
|
|
@@ -1115,7 +1115,6 @@ static int rt700_set_bias_level(struct snd_soc_component *component,
|
|
|
|
switch (level) {
|
|
|
|
case SND_SOC_BIAS_PREPARE:
|
|
|
|
if (SND_SOC_BIAS_STANDBY == dapm->bias_level) {
|
|
|
|
- pm_runtime_get_sync(&rt700->sdw->mstr->dev);
|
|
|
|
snd_soc_component_write(component,
|
|
|
|
RT700_SET_AUDIO_POWER_STATE, AC_PWRST_D0);
|
|
|
|
}
|
|
|
|
@@ -1124,7 +1123,6 @@ static int rt700_set_bias_level(struct snd_soc_component *component,
|
|
|
|
case SND_SOC_BIAS_STANDBY:
|
|
|
|
snd_soc_component_write(component,
|
|
|
|
RT700_SET_AUDIO_POWER_STATE, AC_PWRST_D3);
|
|
|
|
- pm_runtime_put_sync_autosuspend(&rt700->sdw->mstr->dev);
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
--
|
2018-11-24 06:33:07 +08:00
|
|
|
2.19.2
|
2018-10-16 02:05:43 +08:00
|
|
|
|