]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
ASoC: wm0010: Set IRQ as a wake source
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 30 May 2013 09:06:01 +0000 (10:06 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 30 May 2013 10:48:04 +0000 (11:48 +0100)
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>
sound/soc/codecs/wm0010.c

index 370af0cbcc9a97393c695a55936fb22b6ec6e103..b6df319869ac55e70a587cbf548eda3d1851cd08 100644 (file)
@@ -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