q6audio-v2.h 979 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef _Q6_AUDIO_H_
  13. #define _Q6_AUDIO_H_
  14. #include <mach/qdsp6v2/apr.h>
  15. enum {
  16. LEGACY_PCM_MODE = 0,
  17. LOW_LATENCY_PCM_MODE,
  18. ULTRA_LOW_LATENCY_PCM_MODE,
  19. };
  20. int q6audio_get_port_index(u16 port_id);
  21. int q6audio_convert_virtual_to_portid(u16 port_id);
  22. int q6audio_validate_port(u16 port_id);
  23. int q6audio_is_digital_pcm_interface(u16 port_id);
  24. int q6audio_get_port_id(u16 port_id);
  25. int q6audio_get_port_id_from_index(u16 port_idx);
  26. #endif