diff options
author | Alexander Stein <alexander.stein@ew.tq-group.com> | 2025-07-16 08:57:07 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-07-16 11:15:20 +0100 |
commit | 8778837f0a5b7c1bc5dbf0cccd7619fec6981588 (patch) | |
tree | 71f38a6a04b40a6685303beda993d65c6c03273e | |
parent | aa84580e058c4d7567b2a5e5a9d12f94af75d297 (diff) |
ASoC: codec: tlv320aic32x4: Fix reset GPIO check
rstn_gpio being a GPIO descriptor the check is wrong (inverted) for
releasing the reset of the codec.
Fixes: 790d5f8ee6f2 ("ASoC: codec: tlv320aic32x4: Convert to GPIO descriptors")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://patch.msgid.link/20250716065708.4041153-1-alexander.stein@ew.tq-group.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/tlv320aic32x4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c index 3b89980e9bcf..7399080f8580 100644 --- a/sound/soc/codecs/tlv320aic32x4.c +++ b/sound/soc/codecs/tlv320aic32x4.c @@ -1388,7 +1388,7 @@ int aic32x4_probe(struct device *dev, struct regmap *regmap, return ret; } - if (!aic32x4->rstn_gpio) { + if (aic32x4->rstn_gpio) { ndelay(10); /* deassert reset */ gpiod_set_value_cansleep(aic32x4->rstn_gpio, 0); |