[alsa-devel] ASoC: codec registers with more than 16 bits.
Hello alsa experts,
I am working on a ASoC codec driver for the Motorola PCAP2 ASIC for the OpenEZX project, and i am having some trouble...
PCAP2 has 25 bits registers, I access these registers via 32 bits SPI writes/reads, but soc-core/soc-dapm expects codec registers values to fit on 'unsigned short' vars.
Is there any reason to this limit? I am currently faking the registers to always fit 16 bits, but this looks ugly.
Would a patch to soc-core/dapm to extend this limit to 32 bits registers be accepted?
Thanks!
On Wed, Jul 16, 2008 at 10:05:21PM -0300, Daniel Ribeiro wrote:
Is there any reason to this limit? I am currently faking the registers to always fit 16 bits, but this looks ugly.
No reason other than nobody needed it before.
Would a patch to soc-core/dapm to extend this limit to 32 bits registers be accepted?
Of course - that'd be great, but note that all the codec drivers will need updating to match the API change.
participants (2)
-
Daniel Ribeiro
-
Mark Brown