omap-pcm.h 864 B

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