Skip to contentSkip to conversation

ASoC: wm0010: Set IRQ as a wake source

PATCH Applied Charles Keepax 2 participants 2 messages May 30, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: wm0010: Set IRQ as a wake source

The DSPs IRQ should be a wake source as several of the possible algorithms may run whilst the AP is asleepi and require to wake the AP to push or pull more data, such as compressed playback.

---
 sound/soc/codecs/wm0010.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
sound/soc/codecs/wm0010.c +7 -0
index 370af0c..b6df319 100644
@@ -972,6 +972,13 @@ static int wm0010_spi_probe(struct spi_device *spi)
 	}
 	wm0010->irq = irq;
 
+	ret = irq_set_irq_wake(irq, 1);
+	if (ret) {
+		dev_err(wm0010->dev, "Failed to set IRQ %d as wake source: %d\n",
+			irq, ret);
+		return ret;
+	}
+
 	if (spi->max_speed_hz)
 		wm0010->board_max_spi_speed = spi->max_speed_hz;
 	else
Signature · 1 line
1.7.2.5
maintainer Applied
#1 lore raw
Quoted 3 lines · Charles Keepax

The DSPs IRQ should be a wake source as several of the possible algorithms may run whilst the AP is asleepi and require to wake the AP to push or pull more data, such as compressed playback.

Applied, thanks.