[alsa-devel] [PATCH] ASoC: soc-compress: Add support for not memory mapped DSPs

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Jan 28 07:44:42 CET 2013


On Sun, Jan 27, 2013 at 10:09:14PM -0800, Vinod Koul wrote:
> On Mon, Jan 28, 2013 at 12:56:13PM +0800, Mark Brown wrote:

> > > How about:
> > > 	compr->ops = &soc_compr_ops;
> > > 	if (platform->driver->compr_ops && !platform->driver->compr_ops->copy)
> > > 		compr->ops->copy = NULL;

> > > That way you set it to null for those who doent implement this and would called
> > > for drivers who implement this.

> > We'd need to take a copy of it in case we have a system with a mix of
> > both styles.

> For the same device?

No, not for the same device - just in the system.  compr->ops has been
set to point to soc_compr_ops which is a static shared by all drivers in
the system (unless I've misread what you wrote above).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130128/0966ad26/attachment.sig>


More information about the Alsa-devel mailing list