diff options
| -rw-r--r-- | sound/soc/codecs/tas2552.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c index f0760af5a21e..a3ae39448a48 100644 --- a/sound/soc/codecs/tas2552.c +++ b/sound/soc/codecs/tas2552.c | |||
| @@ -239,12 +239,12 @@ static int tas2552_runtime_suspend(struct device *dev) | |||
| 239 | 239 | ||
| 240 | tas2552_sw_shutdown(tas2552, 0); | 240 | tas2552_sw_shutdown(tas2552, 0); |
| 241 | 241 | ||
| 242 | if (tas2552->enable_gpio) | ||
| 243 | gpiod_set_value(tas2552->enable_gpio, 0); | ||
| 244 | |||
| 245 | regcache_cache_only(tas2552->regmap, true); | 242 | regcache_cache_only(tas2552->regmap, true); |
| 246 | regcache_mark_dirty(tas2552->regmap); | 243 | regcache_mark_dirty(tas2552->regmap); |
| 247 | 244 | ||
| 245 | if (tas2552->enable_gpio) | ||
| 246 | gpiod_set_value(tas2552->enable_gpio, 0); | ||
| 247 | |||
| 248 | return 0; | 248 | return 0; |
| 249 | } | 249 | } |
| 250 | 250 | ||
| @@ -382,6 +382,8 @@ static int tas2552_codec_remove(struct snd_soc_codec *codec) | |||
| 382 | { | 382 | { |
| 383 | struct tas2552_data *tas2552 = snd_soc_codec_get_drvdata(codec); | 383 | struct tas2552_data *tas2552 = snd_soc_codec_get_drvdata(codec); |
| 384 | 384 | ||
| 385 | pm_runtime_put(codec->dev); | ||
| 386 | |||
| 385 | if (tas2552->enable_gpio) | 387 | if (tas2552->enable_gpio) |
| 386 | gpiod_set_value(tas2552->enable_gpio, 0); | 388 | gpiod_set_value(tas2552->enable_gpio, 0); |
| 387 | 389 | ||
