[alsa-devel] DAPM over two regmaps (and a mailbox)

Mark Brown broonie at kernel.org
Mon Sep 19 13:12:47 CEST 2016


On Mon, Sep 19, 2016 at 12:54:19PM +0200, Maxime Ripard wrote:

> That codec is mapped in memory, however, we have a bunch of DAPM
> widgets that are mapped in a separate register space, that should
> probably be exposed through a syscon (but isn't yet).

Why not just represent those as a separate device?

> To make things worse, the register in the syscon behaves as a mailbox,
> where you actually have to set in that register the address you want
> to modify and the new value, in a single write. This also seem to
> deviate from the usual DAPM access pattern.

This is totally fine, just use events for the things that aren't simple
register updates - there are a large number of examples in the tree,
simple register access is totally optional.
-------------- 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/20160919/60fb1739/attachment.sig>


More information about the Alsa-devel mailing list