All of lore.kernel.org
 help / color / mirror / Atom feed
* Generic clock divider indices
@ 2013-06-06 13:44 Daniel Mack
  2013-06-06 13:56 ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Mack @ 2013-06-06 13:44 UTC (permalink / raw)
  To: ALSA development, Mark Brown, Liam Girdwood

Hi Mark, Liam,

we're using generic ASoC platform code for some audio devices, which is
agnostic of the actual Codecs that it deals with, as the information is
provided by DT nodes only.

That works very well so far, but I'm now facing a case where I need to
pass a special clock divider information down to the codec driver. The
fact that the IDs of the dividers can be arbitrarily defined by the
drivers leads to the unfortunate situation that I now have to make the
platform code aware of the codec drivers again.

Would it be an idea to define some commonly used dividers in the core?
If they start at 0x80000000, they won't collide with existing ones, and
we could simply add them as alternative case statements to existing drivers.

Some commonly used ones I can think of are

	MCLK / BCLK
	MCLK / LRCLK
	BCLK / LRCLK

That way, platform code could just pass the values dows to the codec
drivers, whether or not they know what to do with it.

What do you think?


Daniel

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

end of thread, other threads:[~2013-06-06 14:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-06 13:44 Generic clock divider indices Daniel Mack
2013-06-06 13:56 ` Mark Brown
2013-06-06 14:09   ` Daniel Mack
2013-06-06 14:24     ` Mark Brown
2013-06-06 14:31       ` Daniel Mack
2013-06-06 14:53         ` 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.