graph_card.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * ASoC audio graph card support
  4. *
  5. */
  6. #ifndef __GRAPH_CARD_H
  7. #define __GRAPH_CARD_H
  8. #include <sound/simple_card_utils.h>
  9. typedef int (*GRAPH2_CUSTOM)(struct asoc_simple_priv *priv,
  10. struct device_node *lnk,
  11. struct link_info *li);
  12. struct graph2_custom_hooks {
  13. int (*hook_pre)(struct asoc_simple_priv *priv);
  14. int (*hook_post)(struct asoc_simple_priv *priv);
  15. GRAPH2_CUSTOM custom_normal;
  16. GRAPH2_CUSTOM custom_dpcm;
  17. GRAPH2_CUSTOM custom_c2c;
  18. };
  19. int audio_graph_parse_of(struct asoc_simple_priv *priv, struct device *dev);
  20. int audio_graph2_parse_of(struct asoc_simple_priv *priv, struct device *dev,
  21. struct graph2_custom_hooks *hooks);
  22. int audio_graph2_link_normal(struct asoc_simple_priv *priv,
  23. struct device_node *lnk, struct link_info *li);
  24. int audio_graph2_link_dpcm(struct asoc_simple_priv *priv,
  25. struct device_node *lnk, struct link_info *li);
  26. int audio_graph2_link_c2c(struct asoc_simple_priv *priv,
  27. struct device_node *lnk, struct link_info *li);
  28. #endif /* __GRAPH_CARD_H */