]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: codec: tlv320aic32x4: Fix reset GPIO check
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Wed, 16 Jul 2025 06:57:07 +0000 (08:57 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 16 Jul 2025 10:15:20 +0000 (11:15 +0100)
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>
sound/soc/codecs/tlv320aic32x4.c

index 3b89980e9bcf2fe93826b5af385d0dca517091a1..7399080f8580c9d0b3865df797a813e8a5fb31af 100644 (file)
@@ -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);