[alsa-devel] Question about struct snd_soc_dai() :: cpu_dai->codec

Mark Brown broonie at kernel.org
Fri Jul 29 16:41:45 CEST 2016


On Fri, Jul 29, 2016 at 11:01:27AM +0200, Lars-Peter Clausen wrote:

> In my opinion the flags are just as much a hack as the pointer. In an ideal
> setup the component does not need to know what type it is. The reason why we
> need this in ASoC is because the framework has grown over time and we need
> to support legacy code.

Yes, the pointer is essentially already a flag - having a separate flag
really doesn't add a huge amount here.  What we need to do is get rid of
the need for the flag entirely.
-------------- 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/20160729/2c5dbe54/attachment.sig>


More information about the Alsa-devel mailing list