23 Mar
2015
23 Mar
'15
8:01 p.m.
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.