ASoC: audio-graph: Expose helpers from audio graph
authorSameer Pujar <spujar@nvidia.com>
Mon, 2 Nov 2020 15:10:14 +0000 (20:40 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 10 Nov 2020 17:28:23 +0000 (17:28 +0000)
commite32b100bc6ecbc390aae728fc7d2a3e247faa8a7
tree6b7872225d1aa5a1a430e3f78e532bcafca121dd
parentd09c774f2f9ff25817866b70f1fb9603e5196971
ASoC: audio-graph: Expose helpers from audio graph

This commit exposes following functions which can be used by a sound
card driver based on generic audio graph driver. Idea is vendors can
have a thin driver and re-use common stuff from audio graph driver.

 - graph_card_probe()
 - graph_parse_of()

In doing so a new header file is added for above. The graph_probe()
function is simplified by moving more common stuff to graph_parse_of().

Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/1604329814-24779-8-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/graph_card.h [new file with mode: 0644]
sound/soc/generic/audio-graph-card.c