v5.2: comments
The init code was extracted into asoc_simple_card_init_priv(), with additional comments. commit 65a5056b21202eff7f54243e587183f4bb6ed352 Author: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Date: Wed Mar 20 13:56:26 2019 +0900 ASoC: simple-card-utils: share asoc_simple_card_init_priv() The difference between simple-card / audio-graph are just using OF graph style, or not. In other words, other things should be same. This means, simple-card/audio-graph common functions should be implemented at simple-card-utils, and its own functions should be implemented at each files. Current simple-card / audio-graph are initializing each priv, but it is same operation. This patch adds new asoc_simple_card_init_priv() and initialize priv by same operation.
This commit is contained in:
parent
63fa92db39
commit
c2f81c1f23
1 changed files with 4 additions and 0 deletions
|
@ -587,6 +587,10 @@ static int seeed_voice_card_probe(struct platform_device *pdev)
|
||||||
* It is codec only. but cpu/platform will be supported in the future.
|
* It is codec only. but cpu/platform will be supported in the future.
|
||||||
* see
|
* see
|
||||||
* soc-core.c :: snd_soc_init_multicodec()
|
* soc-core.c :: snd_soc_init_multicodec()
|
||||||
|
*
|
||||||
|
* "platform" might be removed
|
||||||
|
* see
|
||||||
|
* simple-card-utils.c :: asoc_simple_canonicalize_platform()
|
||||||
*/
|
*/
|
||||||
for (i = 0; i < num; i++) {
|
for (i = 0; i < num; i++) {
|
||||||
dai_link[i].cpus = &dai_props[i].cpus;
|
dai_link[i].cpus = &dai_props[i].cpus;
|
||||||
|
|
Loading…
Reference in a new issue