aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2013-05-30 05:06:01 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-30 06:48:04 -0400
commite684533b1044498606a37e2b5ba8bb0bef56067f (patch)
tree316c8887b3884498ed95e6ea3406f03ec71ddd84 /sound/soc/codecs
parente4aa937ec75df0eea0bee03bffa3303ad36c986b (diff)
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>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/wm0010.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c
index 370af0cbcc9a..b6df319869ac 100644
--- a/sound/soc/codecs/wm0010.c
+++ b/sound/soc/codecs/wm0010.c
@@ -972,6 +972,13 @@ static int wm0010_spi_probe(struct spi_device *spi)
972 } 972 }
973 wm0010->irq = irq; 973 wm0010->irq = irq;
974 974
975 ret = irq_set_irq_wake(irq, 1);
976 if (ret) {
977 dev_err(wm0010->dev, "Failed to set IRQ %d as wake source: %d\n",
978 irq, ret);
979 return ret;
980 }
981
975 if (spi->max_speed_hz) 982 if (spi->max_speed_hz)
976 wm0010->board_max_spi_speed = spi->max_speed_hz; 983 wm0010->board_max_spi_speed = spi->max_speed_hz;
977 else 984 else