I am working with a BeagleBoard running Linux 3.0.63, and I am trying to get the I2C and I2S interfaces to work, with the end goal of playing a .wav file on the beagleboard and having the I2C and I2S set up correctly.
I am currently stuck on setting the BeagleBoard to be the master clock for the I2S line. Or the slave clock could also work. In any case, I have no idea where the I2S stuff is set in the kernel code. I assumed in arch/arm/mach-omap3/board-omap3beagle.c
, but I cannot find it.
Btw, is there hidden documentation on how to do this that I do not know about?
Have a look at files sound/soc/omap/omap3beagle.c and include/sound/soc-dai.h:
First one has a function:
And the second one has macro-definitions:
So using them you can adjust I2S clocking for "Stereo I2S mode" as you need. There are a lot of other options but I guess these ones are the exactly what you need.
Some documentation can be found at Documentation/sound/alsa/soc.