simple_card.h 831 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 {
  15. const char *name;
  16. unsigned int fmt;
  17. unsigned int sysclk;
  18. };
  19. struct asoc_simple_card_info {
  20. const char *name;
  21. const char *card;
  22. const char *codec;
  23. const char *platform;
  24. unsigned int daifmt;
  25. struct asoc_simple_dai cpu_dai;
  26. struct asoc_simple_dai codec_dai;
  27. /* used in simple-card.c */
  28. struct snd_soc_dai_link snd_link;
  29. struct snd_soc_card snd_card;
  30. };
  31. #endif /* __SIMPLE_CARD_H */