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

Michael Trimarchi trimarchi at gandalf.sssup.it
Wed Aug 18 12:35:09 CEST 2010


Hi Mark

Sorry for the silly question but I have tried to route the gpio to the 
irq line
on wm9713 without success. Can you comment the below code?

Michael Trimarchi wrote:
> 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
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
>   
Regards Michael


More information about the Alsa-devel mailing list