Re: Accessing snd_soc_read/snd_soc_write directly for diagnostics

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

 



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.
_______________________________________________
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