On 1/25/2011 3:51 AM, Mark Brown wrote:
On Mon, Jan 24, 2011 at 11:01:10PM -0800, Patrick Lai wrote:
- I see there is dmic codec(dmic.c) under sound/soc/codec which is
pretty much just a dummy codec driver. I supposed the configuration of DMIC is done in other driver. Would it be better if we could have
It's for direct DMIC interfaces in CPUs like OMAP4 has.
something like fixed voltage regulator? So, there is no need to duplicate the effort.
Yes, that'd be kind of nice but given how tiny these noop drivers are and the fact that they do all need to specify their capabilites it's not clear that there's much advantage from combining them into a single driver - the boiler plate is so small and simple.
Do we consider the case that codec driver is not required such as virtual sink or sink is configured outside of ALSA driver? If we create dummy codec driver for each use case, wouldn't sound/soc/codecs end up littered with bunch of noop drivers? Furthermore, couldn't capabilities being passed through platform device?
Thanks Patrick