ux500_pcm.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (C) ST-Ericsson SA 2012
  3. *
  4. * Author: Ola Lilja <ola.o.lilja@stericsson.com>,
  5. * Roger Nilsson <roger.xr.nilsson@stericsson.com>
  6. * for ST-Ericsson.
  7. *
  8. * License terms:
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as published
  12. * by the Free Software Foundation.
  13. */
  14. #ifndef UX500_PCM_H
  15. #define UX500_PCM_H
  16. #include <asm/page.h>
  17. #include <linux/workqueue.h>
  18. #define UX500_PLATFORM_MIN_RATE_PLAYBACK 8000
  19. #define UX500_PLATFORM_MAX_RATE_PLAYBACK 48000
  20. #define UX500_PLATFORM_MIN_RATE_CAPTURE 8000
  21. #define UX500_PLATFORM_MAX_RATE_CAPTURE 48000
  22. #define UX500_PLATFORM_MIN_CHANNELS 1
  23. #define UX500_PLATFORM_MAX_CHANNELS 8
  24. #define UX500_PLATFORM_PERIODS_BYTES_MIN 128
  25. #define UX500_PLATFORM_PERIODS_BYTES_MAX (64 * PAGE_SIZE)
  26. #define UX500_PLATFORM_PERIODS_MIN 2
  27. #define UX500_PLATFORM_PERIODS_MAX 48
  28. #define UX500_PLATFORM_BUFFER_BYTES_MAX (2048 * PAGE_SIZE)
  29. int ux500_pcm_register_platform(struct platform_device *pdev);
  30. int ux500_pcm_unregister_platform(struct platform_device *pdev);
  31. #endif