[alsa-devel] [PATCH 01/10 v3] ASoC: core: add snd_soc_get_dai_drv() to get DAI driver

Mark Brown broonie at kernel.org
Mon Mar 23 20:01:51 CET 2015


On Mon, Mar 23, 2015 at 07:14:51AM +0000, Kuninori Morimoto wrote:
> > > Sometimes sound card driver want to get cpu/codec driver.
> > > This patch adds snd_soc_get_dai_drv() and enable it.

> > Why would a sound card driver need to get the DAI driver?  The changelog
> > should explain this.

> Because, sound card needs to set dai_link->dpcm_playback / dai_link->dpcm_capture
> on soc_new_pcm() if it was DPCM. but, it is depends on CPU/Codec driver.
> So, sound card driver need to get DAI driver, and consider it.
> I will add this explain in v4

Hrm, I see.  This doesn't feel quite elegant - can we do something like
factor this check out into the core here?  It feels like something the
card driver ought not to need to worry about.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150323/a8cd881d/attachment.sig>


More information about the Alsa-devel mailing list