summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5682s.h
diff options
context:
space:
mode:
authorDerek Fang <derek.fang@realtek.com>2022-03-28 08:33:38 +0300
committerMark Brown <broonie@kernel.org>2022-04-05 12:23:21 +0300
commitbc0505bdfb85fc2eb8767c7eb5aec556e176cb41 (patch)
treee93ec00102fb25fc0bdc76e76f578e5ada8a2d3f /sound/soc/codecs/rt5682s.h
parenta403993ce98fb401f696da7c4f374739a7609cff (diff)
downloadlinux-bc0505bdfb85fc2eb8767c7eb5aec556e176cb41.tar.xz
ASoC: rt5682s: Separate the regulator consumer controls
Control the regulators separately instead of using regulator_bulk to accord to the timing request in the datasheet. Signed-off-by: Derek Fang <derek.fang@realtek.com> Link: https://lore.kernel.org/r/20220328053338.21441-1-derek.fang@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5682s.h')
-rw-r--r--sound/soc/codecs/rt5682s.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5682s.h b/sound/soc/codecs/rt5682s.h
index 397a2531b6f6..7353831c73dd 100644
--- a/sound/soc/codecs/rt5682s.h
+++ b/sound/soc/codecs/rt5682s.h
@@ -1434,7 +1434,11 @@ struct pll_calc_map {
bool sel_ps;
};
-#define RT5682S_NUM_SUPPLIES 2
+enum {
+ RT5682S_SUPPLY_AVDD,
+ RT5682S_SUPPLY_MICVDD,
+ RT5682S_NUM_SUPPLIES,
+};
struct rt5682s_priv {
struct snd_soc_component *component;