Hi Pepe!
Thanks for your answer! OK I've added your pll config suggestion. Now the code is a little cleaner
Now I've published it on github:
https://github.com/franzflasch/ar9331-i2s-alsaIt is a self contained openwrt package. If you want to use it you have to insert the modules in the following order:
insmod dev-audio.ko
insmod ath79-i2s.ko
insmod ath79-pcm-mbox.ko
insmod wm8727.ko
insmod ath-carambola2.ko
I've included all audio related #defines and iomem variables into these kernel driver files so no openwrt patches are needed. Tested with a more or less up-to-date openwrt trunk version. (Kernel ver 3.14)
There is still some work left - the gpio initialization is very ugly and should be refactored, but all in all I think it is quite useful.
Regards,
Franz