q6adm-v2.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* Copyright (c) 2012-2013, 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_ADM_V2_H__
  13. #define __Q6_ADM_V2_H__
  14. #define ADM_PATH_PLAYBACK 0x1
  15. #define ADM_PATH_LIVE_REC 0x2
  16. #define ADM_PATH_NONLIVE_REC 0x3
  17. #include <mach/qdsp6v2/rtac.h>
  18. #include <sound/q6afe-v2.h>
  19. #include <sound/q6audio-v2.h>
  20. /* multiple copp per stream. */
  21. struct route_payload {
  22. unsigned int copp_ids[AFE_MAX_PORTS];
  23. unsigned short num_copps;
  24. unsigned int session_id;
  25. };
  26. int srs_trumedia_open(int port_id, int srs_tech_id, void *srs_params);
  27. int adm_open(int port, int path, int rate, int mode, int topology,
  28. int perf_mode, uint16_t bits_per_sample);
  29. int adm_get_params(int port_id, uint32_t module_id, uint32_t param_id,
  30. uint32_t params_length, char *params);
  31. int adm_dolby_dap_send_params(int port_id, char *params,
  32. uint32_t params_length);
  33. int adm_multi_ch_copp_open(int port, int path, int rate, int mode,
  34. int topology, int perf_mode, uint16_t bits_per_sample);
  35. int adm_unmap_cal_blocks(void);
  36. int adm_map_rtac_block(struct rtac_cal_block_data *cal_block);
  37. int adm_unmap_rtac_block(uint32_t *mem_map_handle);
  38. int adm_memory_map_regions(int port_id, uint32_t *buf_add, uint32_t mempool_id,
  39. uint32_t *bufsz, uint32_t bufcnt);
  40. int adm_memory_unmap_regions(int port_id);
  41. int adm_close(int port, int perf_mode);
  42. int adm_matrix_map(int session_id, int path, int num_copps,
  43. unsigned int *port_id, int copp_id, int perf_mode);
  44. int adm_connect_afe_port(int mode, int session_id, int port_id);
  45. void adm_ec_ref_rx_id(int port_id);
  46. int adm_get_copp_id(int port_id);
  47. int adm_get_lowlatency_copp_id(int port_id);
  48. void adm_set_multi_ch_map(char *channel_map);
  49. void adm_get_multi_ch_map(char *channel_map);
  50. #endif /* __Q6_ADM_V2_H__ */