Dne 13.3.2012 22:33, Mark Brown napsal(a):
On Tue, Mar 13, 2012 at 10:25:54PM +0100, Pavel Hofman wrote:
I always found that a simple proc interface listing all register values of the chips onboard greatly helped with troubleshooting. E.g. http://git.alsa-project.org/?p=alsa-kmirror.git;a=blob;f=i2c/other/ak4xxx-ad...
http://git.alsa-project.org/?p=alsa-kmirror.git;a=blob;f=i2c/other/ak4114.c;...
If you use regmap for your register I/O you get this for free (plus some other infrastructure stuff).
Mark, thanks for the information. I searched sound-2.6 tree and found the only reference to linux/regmap.h in soc-io.c. Please could you point me to a place where it is used in alsa source code so that I could take it as an example? I have no problem with using the latest kernel infrastructure helpers but there are just too many of them.
Thanks a lot,
Pavel.