simple_card.h 896 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * ASoC simple sound card support
  3. *
  4. * Copyright (C) 2012 Renesas Solutions Corp.
  5. * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __SIMPLE_CARD_H
  12. #define __SIMPLE_CARD_H
  13. #include <sound/soc.h>
  14. struct asoc_simple_dai_init_info {
  15. unsigned int fmt;
  16. unsigned int cpu_daifmt;
  17. unsigned int codec_daifmt;
  18. unsigned int sysclk;
  19. };
  20. struct asoc_simple_card_info {
  21. const char *name;
  22. const char *card;
  23. const char *cpu_dai;
  24. const char *codec;
  25. const char *platform;
  26. const char *codec_dai;
  27. struct asoc_simple_dai_init_info *init; /* for snd_link.init */
  28. /* used in simple-card.c */
  29. struct snd_soc_dai_link snd_link;
  30. struct snd_soc_card snd_card;
  31. };
  32. #endif /* __SIMPLE_CARD_H */