projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c1cb75
)
ASoC: rt5682: remove duplicate rt5682_reset() calls
author
Tzung-Bi Shih
<tzungbi@google.com>
Thu, 30 Apr 2020 08:22:30 +0000
(16:22 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 30 Apr 2020 13:06:52 +0000
(14:06 +0100)
Removes duplicate rt5682_reset() calls. rt5682_calibrate() calls
rt5682_reset() anyway.
Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link:
https://lore.kernel.org/r/20200430082231.151127-6-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rt5682.c
b/sound/soc/codecs/rt5682.c
index bfe542dcc7baf71eb82aafff7a2f7d15d71ec67c..19fb9f1d8f496b0a0e193e0bdf2bda353fea6d6f 100644
(file)
--- a/
sound/soc/codecs/rt5682.c
+++ b/
sound/soc/codecs/rt5682.c
@@
-3416,8
+3416,6
@@
int rt5682_io_init(struct device *dev, struct sdw_slave *slave)
pm_runtime_get_noresume(&slave->dev);
- rt5682_reset(rt5682);
-
if (rt5682->first_hw_init) {
regcache_cache_only(rt5682->regmap, false);
regcache_cache_bypass(rt5682->regmap, true);
@@
-3569,8
+3567,6
@@
static int rt5682_i2c_probe(struct i2c_client *i2c,
return -ENODEV;
}
- rt5682_reset(rt5682);
-
mutex_init(&rt5682->calibrate_mutex);
rt5682_calibrate(rt5682);