]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: add new simple-card-utils.c
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 31 May 2016 09:00:14 +0000 (09:00 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jun 2016 18:12:30 +0000 (19:12 +0100)
commit0e20d2651a7b10fb0db509d2070f85c5ea85b49e
tree7b72620e5dccd1215deaaaed4461922ad29712a6
parentfb9b7ad3a45c60ae54b59569134021926bccc102
ASoC: add new simple-card-utils.c

Current ALSA SoC has simple-card driver which is supporting both
platform and DT probe.
Now, some sound cards driver are created based on simple-card.
They have similar feature or function, but implemented separately
on each drivers. This is a waste of code.
OTOH, merging these driver into same driver is highly risk,
because it will be very difficult to keep compatibility.
More over, ALSA SoC want to have graph base of DT feature in the
future. Maybe it want to use simple-card like feature / function.
Because of these background, this patch creates simple-card
helper utils, and provides common function to each drivers.
1st is asoc_simple_card_parse_daifmt()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h [new file with mode: 0644]
sound/soc/generic/Kconfig
sound/soc/generic/Makefile
sound/soc/generic/simple-card-utils.c [new file with mode: 0644]