Back again to give you some further information on this project. It took a while to test a few proof of concepts. First I adapted the i2c input and output routines to get it stroked with the specification of the PCA9698. I tried both ways ; doing a simple write() and doing ioctl() using the i2c message structure. Both api calls seems to work properly. I wrote a small test program which includes the input as well as the output functionality. This program ran for 24h without any odd behaviour. So now I'm pretty sure that the IO board works as it was meant to be by design. Yesterday I worked a hole day to get the AC97 codec from Cirrus up and running. A few technical conversations can be seen at following link:
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=62973
I'd play quit a lot with kernel builds and tests via the procfs systeem. Finally at 21h I managed to play my first sound with aplay as the driving program. It was also indispensable to have the UI alsamixer installed on the NGW. This facilitates the setup of all the codec channels. It's possible todo it via the procfs but quit complex because you must make the link to registers in the specification all the time and of course easy to make a small mistake in setting the bitmasks accordingly. For the moment I only tested the wav format. I will do some quick tests in MP3 using madplay too.
What else do I have the test to be able to say "now I start programming on my new domotic system" ? ( this will be a title some day of one of my blogs here ;-)
- Writing a test for the DAC (also i2c driven)
- Add interrupt masking to the pca input
- Writing a test to catch the interrupt in user space
- Evaluate the level based interrupt and filter (re entrance)
- Writing a "covered all" test and let it run +24h
- Extend this program including a exec call the sound program
- Making a documentation
- Compiling / installing / testing with lighthttpd
If these above steps are all behind me than I can proceed with the domotic logic for the final program. I'm still not sure if I will integrate this into web based design. This will depend on the results of step 8.
The horizon is something you can never reach nevertheless continue to try !





