simple_card.h 819 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 sysclk;
  17. int slots;
  18. int slot_width;
  19. unsigned int tx_slot_mask;
  20. unsigned int rx_slot_mask;
  21. struct clk *clk;
  22. };
  23. struct asoc_simple_card_info {
  24. const char *name;
  25. const char *card;
  26. const char *codec;
  27. const char *platform;
  28. unsigned int daifmt;
  29. struct asoc_simple_dai cpu_dai;
  30. struct asoc_simple_dai codec_dai;
  31. };
  32. #endif /* __SIMPLE_CARD_H */