On Fri, Jul 16, 2010 at 09:33:25AM +0800, Mike Crowe wrote:
I know this is a strange request, however, for diagnostic purposes in our embedded system, we would like to talk directly to the codec registers of our sound chip, bypassing alsa. I have the driver compiled into the kernel (not loaded as a module).
Is it possible to create a program which can talk to the snd_soc_read and snd_soc_write functions directly? I'm not sure if this is an option, but if it is, I'd appreciate a pointer to something similar to use as a guide.
This is provided by the codec_reg file in debugfs - mount debugfs and look in the 'asoc' directory. Note that there is also a codec_reg file in sysfs but this is read only.
When mailing Linux mailing lists please always CC the maintainers for subsystems, this ensures messages don't get lost in the noise on mailing lists.