diff options
author | Derek Fang <derek.fang@realtek.com> | 2022-03-28 13:33:38 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-05 10:23:21 +0100 |
commit | bc0505bdfb85fc2eb8767c7eb5aec556e176cb41 (patch) | |
tree | e93ec00102fb25fc0bdc76e76f578e5ada8a2d3f /sound/soc/codecs/rt5682s.h | |
parent | a403993ce98fb401f696da7c4f374739a7609cff (diff) | |
download | lwn-bc0505bdfb85fc2eb8767c7eb5aec556e176cb41.tar.gz lwn-bc0505bdfb85fc2eb8767c7eb5aec556e176cb41.zip |
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.h | 6 |
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; |