ASoC: twl6040: Convert PLUGINT to no-suspend irq
authorMisael Lopez Cruz <misael.lopez@ti.com>
Fri, 11 Jan 2013 16:00:59 +0000 (17:00 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 11 Jan 2013 23:54:47 +0000 (23:54 +0000)
Convert headset PLUGINT interrupt to NO_SUSPEND type in order to
allow handling of insertion/removal events while device is suspended.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl6040.c

index 3fc3fc64dd8b47a85ca142d3ef95dfe637908754..ef31ace41d536c1319021663b109ed307fa0d31b 100644 (file)
@@ -1174,7 +1174,7 @@ static int twl6040_probe(struct snd_soc_codec *codec)
        mutex_init(&priv->mutex);
 
        ret = request_threaded_irq(priv->plug_irq, NULL, twl6040_audio_handler,
-                                  0, "twl6040_irq_plug", codec);
+                                  IRQF_NO_SUSPEND, "twl6040_irq_plug", codec);
        if (ret) {
                dev_err(codec->dev, "PLUG IRQ request failed: %d\n", ret);
                goto plugirq_err;