1 /* SPDX-License-Identifier: GPL-2.0 1 /* SPDX-License-Identifier: GPL-2.0 2 * 2 * 3 * ASoC audio graph card support 3 * ASoC audio graph card support 4 * 4 * 5 */ 5 */ 6 6 7 #ifndef __GRAPH_CARD_H 7 #ifndef __GRAPH_CARD_H 8 #define __GRAPH_CARD_H 8 #define __GRAPH_CARD_H 9 9 10 #include <sound/simple_card_utils.h> 10 #include <sound/simple_card_utils.h> 11 11 12 typedef int (*GRAPH2_CUSTOM)(struct simple_uti 12 typedef int (*GRAPH2_CUSTOM)(struct simple_util_priv *priv, 13 struct device_nod 13 struct device_node *lnk, 14 struct link_info 14 struct link_info *li); 15 15 16 struct graph2_custom_hooks { 16 struct graph2_custom_hooks { 17 int (*hook_pre)(struct simple_util_pri 17 int (*hook_pre)(struct simple_util_priv *priv); 18 int (*hook_post)(struct simple_util_pr 18 int (*hook_post)(struct simple_util_priv *priv); 19 GRAPH2_CUSTOM custom_normal; 19 GRAPH2_CUSTOM custom_normal; 20 GRAPH2_CUSTOM custom_dpcm; 20 GRAPH2_CUSTOM custom_dpcm; 21 GRAPH2_CUSTOM custom_c2c; 21 GRAPH2_CUSTOM custom_c2c; 22 }; 22 }; 23 23 24 int audio_graph_parse_of(struct simple_util_pr 24 int audio_graph_parse_of(struct simple_util_priv *priv, struct device *dev); 25 int audio_graph2_parse_of(struct simple_util_p 25 int audio_graph2_parse_of(struct simple_util_priv *priv, struct device *dev, 26 struct graph2_custom 26 struct graph2_custom_hooks *hooks); 27 27 28 int audio_graph2_link_normal(struct simple_uti 28 int audio_graph2_link_normal(struct simple_util_priv *priv, 29 struct device_nod 29 struct device_node *lnk, struct link_info *li); 30 int audio_graph2_link_dpcm(struct simple_util_ 30 int audio_graph2_link_dpcm(struct simple_util_priv *priv, 31 struct device_node 31 struct device_node *lnk, struct link_info *li); 32 int audio_graph2_link_c2c(struct simple_util_p 32 int audio_graph2_link_c2c(struct simple_util_priv *priv, 33 struct device_node * 33 struct device_node *lnk, struct link_info *li); 34 34 35 #endif /* __GRAPH_CARD_H */ 35 #endif /* __GRAPH_CARD_H */ 36 36
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.