Skip to contentSkip to conversation

ASoC: wm8753: Remove superfluous 'codec->cache_sync = 1'

PATCH Applied Lars-Peter Clausen 3 participants 3 messages Mar 1, 2014 – Mar 4, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: wm8753: Remove superfluous 'codec->cache_sync = 1'

The wm8763 driver uses regmap for IO which means that codec->cache_sync is not used. The line was added in commit d3398ff ('ASoC: Convert WM8753 to direct regmap API usage'). Presumably this was meant to be regcache_mark_dirty(), but since we already call regcache_mark_dirty() in the core when suspending the CODEC it is safe to just remove the line.

---
 sound/soc/codecs/wm8753.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/codecs/wm8753.c +0 -1
index be85da9..a02e76c 100644
@@ -1440,7 +1440,6 @@ static void wm8753_work(struct work_struct *work)
 static int wm8753_suspend(struct snd_soc_codec *codec)
 {
 	wm8753_set_bias_level(codec, SND_SOC_BIAS_OFF);
-	codec->cache_sync = 1;
 	return 0;
 }
 
Signature · 1 line
1.8.0
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Lars-Peter Clausen

The wm8763 driver uses regmap for IO which means that codec->cache_sync is not used. The line was added in commit d3398ff ('ASoC: Convert WM8753 to direct regmap API usage'). Presumably this was meant to be regcache_mark_dirty(), but since we already call regcache_mark_dirty() in the core when suspending the CODEC it is safe to just remove the line.

---

Thanks,
Charles

maintainer Applied
#2 lore raw
In reply to Lars-Peter Clausen
Quoted 5 lines · Lars-Peter Clausen

The wm8763 driver uses regmap for IO which means that codec->cache_sync is not used. The line was added in commit d3398ff ('ASoC: Convert WM8753 to direct regmap API usage'). Presumably this was meant to be regcache_mark_dirty(), but since we already call regcache_mark_dirty() in the core when suspending the CODEC it is safe to just remove the line.

Applied, thanks.