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. Signed-off-by:Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by:
Mark Brown <broonie@kernel.org>
Showing
- include/sound/simple_card_utils.h 9 additions, 1 deletioninclude/sound/simple_card_utils.h
- sound/soc/generic/audio-graph-card.c 4 additions, 41 deletionssound/soc/generic/audio-graph-card.c
- sound/soc/generic/simple-card-utils.c 49 additions, 0 deletionssound/soc/generic/simple-card-utils.c
- sound/soc/generic/simple-card.c 11 additions, 45 deletionssound/soc/generic/simple-card.c
Please register or sign in to comment