All of lore.kernel.org
 help / color / mirror / Atom feed
* ASoC: Device tree binding to dummy codec
@ 2014-07-26 15:18 jonsmirl
  2014-07-28  6:24 ` Lars-Peter Clausen
  0 siblings, 1 reply; 14+ messages in thread
From: jonsmirl @ 2014-07-26 15:18 UTC (permalink / raw)
  To: alsa-devel mailing list

Allwinner CPUs have an on-chip codec that supports line out. This is a
monolithic block that does not implement anything like standard I2S.
We have implemented this by internally making a soc_card and then
binding the DAI to a dummy NOP codec to make ASoC happy.

But now someone wants to add a MAX9768 amplifier which needs a codec
driver to implement volume control.

So how should this be implemented? You want to use simple-audio-card
when the MAX9768 is present.

But what about the dummy-codec case? Using simple-audio-card to bind
to a dummy-codec clutters things up a lot. Plus the dummy-codec is not
currently exposed to device trees.

And then there is the ordering problem, how do I know for sure MAX9768
is not going to be bound so that it is safe to bind to dummy-codec.
Or should binding to MAX9768 simply override a binding to the
dummy-codec?

If my dummy-codec is exposed into the device trees then this generates
a bunch of NOP clutter in the tree using simple-audio-card to bind it.

Another idea, maybe one of those NOP SDPIF codecs could get an alias
name like NOP or Dummy.

-- 
Jon Smirl
jonsmirl@gmail.com

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

end of thread, other threads:[~2014-07-28 18:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-26 15:18 ASoC: Device tree binding to dummy codec jonsmirl
2014-07-28  6:24 ` Lars-Peter Clausen
2014-07-28 11:20   ` Mark Brown
2014-07-28 12:54     ` jonsmirl
2014-07-28 13:49       ` jonsmirl
2014-07-28 16:27         ` Mark Brown
2014-07-28 16:33           ` jonsmirl
2014-07-28 16:36             ` Mark Brown
2014-07-28 16:47               ` jonsmirl
2014-07-28 16:49                 ` Lars-Peter Clausen
2014-07-28 16:56                   ` Mark Brown
2014-07-28 16:56                   ` jonsmirl
2014-07-28 18:28                     ` Mark Brown
2014-07-28 16:18       ` 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.