edma-pcm.h 943 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * edma-pcm.h - eDMA PCM driver using dmaengine for AM3xxx, AM4xxx
  3. *
  4. * Copyright (C) 2014 Texas Instruments, Inc.
  5. *
  6. * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
  7. *
  8. * Based on: sound/soc/tegra/tegra_pcm.h
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License
  12. * version 2 as published by the Free Software Foundation.
  13. *
  14. * This program is distributed in the hope that it will be useful, but
  15. * WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * General Public License for more details.
  18. */
  19. #ifndef __EDMA_PCM_H__
  20. #define __EDMA_PCM_H__
  21. #if IS_ENABLED(CONFIG_SND_EDMA_SOC)
  22. int edma_pcm_platform_register(struct device *dev);
  23. #else
  24. static inline int edma_pcm_platform_register(struct device *dev)
  25. {
  26. return 0;
  27. }
  28. #endif /* CONFIG_SND_EDMA_SOC */
  29. #endif /* __EDMA_PCM_H__ */