[alsa-devel] [PATCH V6] ASoC: pcm179x: Add support for pcm1795 and pcm1796

Mark Brown broonie at kernel.org
Mon Mar 14 17:24:09 CET 2016


On Sun, Mar 13, 2016 at 09:53:50AM +0100, Michael Trimarchi wrote:
> On Sat, Mar 12, 2016 at 12:53:17PM +0700, Mark Brown wrote:
> > On Sat, Mar 12, 2016 at 12:29:00AM +0100, Michael Trimarchi wrote:

> > I don't actually know if MODULE_DEVICE_TABLE can reference an object in
> > a different file off the top of my head, though a brief test suggests it
> > has issues.

> Does this approch can work?

I'd suggest testing...

> > It would be more data driven to just register a different DAI structure
> > for the 1795.  Both approaches work, it's just a little nicer to avoid
> > code where possible.

> Yes I know but my idea was exactly to not create special DAI because
> technically they are the same code with diffferent constraints. This even
> give an other example of the usage of the API.

They would still share all the same code, it's just moving the decision
to probe time given that this is a trivial constraint change and the
constraints are listed in the data structure.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20160314/060f7171/attachment.sig>


More information about the Alsa-devel mailing list