Routing irq throw a gpio using the wm9713

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux