mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 00:06:36 +00:00
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. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
e4aa937ec7
commit
e684533b10
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue