[alsa-devel] Routing irq throw a gpio using the wm9713

Michael Trimarchi trimarchi at gandalf.sssup.it
Tue May 25 18:01:19 CEST 2010


Hi all,

I'm trying to rise an irq using irq2 of the wm9713 so I have configured
the codec like this:

#define GPIO2 (1 << 2)
#define GPIO6 (1 << 6)

/* Enable Interrupt Output enable on GPIO02 */
reg = codec->read(codec, AC97_MISC_AFE);
codec->write(codec, AC97_MISC_AFE, reg & ~GPIO02);

reg = codec->read(codec, AC97_GPIO_CFG);
codec->write(codec, AC97_GPIO_CFG, reg & ~GPIO02);

reg = codec->read(codec, AC97_GPIO_STICKY);
codec->write(codec, AC97_GPIO_STICKY, reg | GPIO06);

reg = codec->read(codec, AC97_GPIO_WAKEUP);
codec->write(codec, AC97_GPIO_WAKEUP, reg | GPIO06);


Then create a soc-jack on a gpio that is wired with the gpio6
of the codec.

I don't received any interrupt

Michael Trimarchi


More information about the Alsa-devel mailing list