summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/max98927.h
diff options
context:
space:
mode:
authorAlejandro Tafalla <atafalla@dnyon.com>2021-10-07 05:38:56 +0300
committerMark Brown <broonie@kernel.org>2021-10-07 17:45:18 +0300
commit4d67dc1998f1890a9d22d03208037075ea9f2562 (patch)
tree03e92c0be550ca71ca9073e972d7eeea012531b3 /sound/soc/codecs/max98927.h
parentdc1fad25bbd0698e8e61a0468e3920c5c29a803f (diff)
downloadlinux-4d67dc1998f1890a9d22d03208037075ea9f2562.tar.xz
ASoC: max98927: Handle reset gpio when probing i2c
The max98927 codec on some devices requires pulling a reset gpio before responding to any i2c command. This commit adds support for it through an optional reset-gpios property. Signed-off-by: Alejandro Tafalla <atafalla@dnyon.com> Link: https://lore.kernel.org/r/d74b12a79ae9ca728d5d9e64c55b3e59e8c0e509.1633572679.git.atafalla@dnyon.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max98927.h')
-rw-r--r--sound/soc/codecs/max98927.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98927.h b/sound/soc/codecs/max98927.h
index 05f495db914d..13f5066d7419 100644
--- a/sound/soc/codecs/max98927.h
+++ b/sound/soc/codecs/max98927.h
@@ -255,6 +255,7 @@ struct max98927_priv {
struct regmap *regmap;
struct snd_soc_component *component;
struct max98927_pdata *pdata;
+ struct gpio_desc *reset_gpio;
unsigned int spk_gain;
unsigned int sysclk;
unsigned int v_l_slot;