Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH] Correct a typo which inverted the reset GPIO pin sequence.
@ 2025-12-11  5:16 Brad Kelley
  2025-12-11  9:39 ` Charles Keepax
  0 siblings, 1 reply; 6+ messages in thread
From: Brad Kelley @ 2025-12-11  5:16 UTC (permalink / raw)
  To: david.rhodes, rf, lgirdwood, broonie, perex, tiwai, linux-sound,
	patches, linux-kernel
  Cc: Brad Kelley

commit that had typo: 42d1178d223ba9498c1ed40a5fc243a43d35ec97 ASoC: cs4271: Convert to GPIO descriptors

The original commit changed a 1 to a 0 and a 0 to a 1. This inverted the reset sequence
resulting in the IC powering down and not initializing.  Correcting that allows the board to initialized.

Signed-off-by: Brad Kelley <spambake@bradkelley.org>
---
 sound/soc/codecs/cs4271.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c
index 77dfc83a3c01..348f15c36d10 100644
--- a/sound/soc/codecs/cs4271.c
+++ b/sound/soc/codecs/cs4271.c
@@ -486,9 +486,9 @@ static int cs4271_reset(struct snd_soc_component *component)
 {
 	struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component);
 
-	gpiod_direction_output(cs4271->reset, 1);
+	gpiod_direction_output(cs4271->reset, 0);
 	mdelay(1);
-	gpiod_set_value(cs4271->reset, 0);
+	gpiod_set_value(cs4271->reset, 1);
 	mdelay(1);
 
 	return 0;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-12-12 16:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-11  5:16 [PATCH] Correct a typo which inverted the reset GPIO pin sequence Brad Kelley
2025-12-11  9:39 ` Charles Keepax
2025-12-11 10:02   ` Charles Keepax
2025-12-11 10:19   ` Richard Fitzgerald
2025-12-12 15:44     ` Brad Kelley
2025-12-12 16:03       ` Charles Keepax

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox