OSDN Git Service

ASoC: max98927: Handle reset gpio when probing i2c
authorAlejandro Tafalla <atafalla@dnyon.com>
Thu, 7 Oct 2021 02:38:56 +0000 (04:38 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 7 Oct 2021 14:45:18 +0000 (15:45 +0100)
commit4d67dc1998f1890a9d22d03208037075ea9f2562
tree03e92c0be550ca71ca9073e972d7eeea012531b3
parentdc1fad25bbd0698e8e61a0468e3920c5c29a803f
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>
sound/soc/codecs/max98927.c
sound/soc/codecs/max98927.h