[alsa-devel] ASOC: codec_reg_show and variable length registers

Jon Smirl jonsmirl at gmail.com
Sat Jul 5 15:37:45 CEST 2008

codec_reg_show() can't handle my TAS5504 codec. The codec has 104
(sparse out of 256) registers with variable lengths from 1 to 32

Should the register cache really be part of the core? The core could
still make the sysfs entries and use a callback to print them.
reg_cache_size/reg_cache_step would then become private.

It's the sprintf that is the problem. I need to push that into my
driver so that I can print out variable lengths. Or we need to make
the core use an indirect table that encodes the lengths.

Jon Smirl
jonsmirl at gmail.com

More information about the Alsa-devel mailing list