All of lore.kernel.org
 help / color / mirror / Atom feed
* ASoC: codec registers with more than 16 bits.
@ 2008-07-17  1:05 Daniel Ribeiro
  2008-07-17  9:33 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Ribeiro @ 2008-07-17  1:05 UTC (permalink / raw)
  To: alsa-devel; +Cc: openezx-devel

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!

-- 
Daniel Ribeiro

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ASoC: codec registers with more than 16 bits.
  2008-07-17  1:05 ASoC: codec registers with more than 16 bits Daniel Ribeiro
@ 2008-07-17  9:33 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2008-07-17  9:33 UTC (permalink / raw)
  To: Daniel Ribeiro; +Cc: alsa-devel, openezx-devel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-17  9:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-17  1:05 ASoC: codec registers with more than 16 bits Daniel Ribeiro
2008-07-17  9:33 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.