[alsa-devel] [PATCH 1/4] ASoC: rt286: rt286_mic_detect() uses component

Mark Brown broonie at kernel.org
Wed Oct 26 14:12:08 CEST 2016


On Wed, Oct 26, 2016 at 09:20:45AM +0530, Vinod Koul wrote:

> into rtd internals. So would make sense to combine two suggestion and add an
> API:

> struct snd_soc_codec *snd_soc_get_codec(struct snd_soc_pcm_runtime *rtd)
> {
> 	return rtd->codec;
> }

> then we can use this is drivers.

That interface does bake in the CPU/CODEC distinction which is something
we want to get away from with componentization since it makes things
more complicated with situations like CODEC<->CODEC links.  OTOH we're
looking up a CODEC rather than a component here so it's going to need to
change again anyway so it probably doesn't matter.
-------------- 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/20161026/d1e1b20d/attachment.sig>


More information about the Alsa-devel mailing list