forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: audio-graph: Expose helpers from audio graph
This commit exposes following functions which can be used by a sound card driver based on audio graph driver. Idea is vendors can have a thin driver and re-use common stuff from audio graph driver. - graph_card_probe() - graph_get_dais_count() - graph_parse_of() In doing so a new header file is added for audio graph which can be included by vendor drivers. Signed-off-by: Sameer Pujar <spujar@nvidia.com> Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
- Loading branch information
1 parent
23a9d7c
commit b7b9780
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 | ||
* | ||
* ASoC audio graph card support | ||
* | ||
*/ | ||
|
||
#ifndef __GRAPH_CARD_H | ||
#define __GRAPH_CARD_H | ||
|
||
#include <sound/simple_card_utils.h> | ||
|
||
int graph_card_probe(struct snd_soc_card *card); | ||
|
||
void graph_get_dais_count(struct asoc_simple_priv *priv, | ||
struct link_info *li); | ||
|
||
int graph_parse_of(struct asoc_simple_priv *priv); | ||
|
||
#endif /* __GRAPH_CARD_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters