Subhash Chandra Bose Naripeddy | ea09588 | 2012-12-17 23:18:21 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
Bharath Ramachandramurthy | 2e3168f | 2012-05-03 16:29:09 -0700 | [diff] [blame] | 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 | |
| 15 | |
| 16 | #define ADM_PATH_PLAYBACK 0x1 |
| 17 | #define ADM_PATH_LIVE_REC 0x2 |
| 18 | #define ADM_PATH_NONLIVE_REC 0x3 |
Kiran Kandi | 3648bde | 2012-11-16 09:49:01 -0800 | [diff] [blame] | 19 | #include <sound/q6afe-v2.h> |
Bharath Ramachandramurthy | 2e3168f | 2012-05-03 16:29:09 -0700 | [diff] [blame] | 20 | #include <sound/q6audio-v2.h> |
| 21 | |
Bharath Ramachandramurthy | 2e3168f | 2012-05-03 16:29:09 -0700 | [diff] [blame] | 22 | |
| 23 | /* multiple copp per stream. */ |
| 24 | struct route_payload { |
Kiran Kandi | 3648bde | 2012-11-16 09:49:01 -0800 | [diff] [blame] | 25 | unsigned int copp_ids[AFE_MAX_PORTS]; |
Bharath Ramachandramurthy | 2e3168f | 2012-05-03 16:29:09 -0700 | [diff] [blame] | 26 | unsigned short num_copps; |
| 27 | unsigned int session_id; |
| 28 | }; |
| 29 | |
Ben Romberger | 564493d | 2012-12-04 20:48:28 -0800 | [diff] [blame] | 30 | int srs_trumedia_open(int port_id, int srs_tech_id, void *srs_params); |
| 31 | |
Phani Kumar Uppalapati | 85b7c9b | 2013-02-19 09:59:47 -0800 | [diff] [blame] | 32 | int adm_open(int port, int path, int rate, int mode, int topology, |
Bhalchandra Gajare | 5b40c53 | 2013-02-19 13:36:47 -0800 | [diff] [blame] | 33 | bool perf_mode, uint16_t bits_per_sample); |
Bharath Ramachandramurthy | 2e3168f | 2012-05-03 16:29:09 -0700 | [diff] [blame] | 34 | |
Jitendra Singh Naruka | 52a6691 | 2013-06-28 11:53:45 -0700 | [diff] [blame] | 35 | int adm_get_params(int port_id, uint32_t module_id, uint32_t param_id, |
Subhash Chandra Bose Naripeddy | 1710284 | 2013-01-13 11:08:06 -0800 | [diff] [blame] | 36 | uint32_t params_length, char *params); |
| 37 | |
| 38 | int adm_dolby_dap_send_params(int port_id, char *params, |
| 39 | uint32_t params_length); |
| 40 | |
Bharath Ramachandramurthy | 2e3168f | 2012-05-03 16:29:09 -0700 | [diff] [blame] | 41 | int adm_multi_ch_copp_open(int port, int path, int rate, int mode, |
Bhalchandra Gajare | 5b40c53 | 2013-02-19 13:36:47 -0800 | [diff] [blame] | 42 | int topology, bool perf_mode, uint16_t bits_per_sample); |
Bharath Ramachandramurthy | 2e3168f | 2012-05-03 16:29:09 -0700 | [diff] [blame] | 43 | |
| 44 | int adm_memory_map_regions(int port_id, uint32_t *buf_add, uint32_t mempool_id, |
| 45 | uint32_t *bufsz, uint32_t bufcnt); |
| 46 | |
| 47 | int adm_memory_unmap_regions(int port_id, uint32_t *buf_add, uint32_t *bufsz, |
| 48 | uint32_t bufcnt); |
| 49 | |
Subhash Chandra Bose Naripeddy | affd9ad | 2013-03-14 23:00:45 -0700 | [diff] [blame] | 50 | int adm_close(int port, bool perf_mode); |
Bharath Ramachandramurthy | 2e3168f | 2012-05-03 16:29:09 -0700 | [diff] [blame] | 51 | |
| 52 | int adm_matrix_map(int session_id, int path, int num_copps, |
Subhash Chandra Bose Naripeddy | affd9ad | 2013-03-14 23:00:45 -0700 | [diff] [blame] | 53 | unsigned int *port_id, int copp_id, bool perf_mode); |
Bharath Ramachandramurthy | 2e3168f | 2012-05-03 16:29:09 -0700 | [diff] [blame] | 54 | |
| 55 | int adm_connect_afe_port(int mode, int session_id, int port_id); |
| 56 | |
Ravi Kumar Alamanda | e604875 | 2013-05-19 23:23:24 -0700 | [diff] [blame] | 57 | void adm_ec_ref_rx_id(int port_id); |
| 58 | |
Bharath Ramachandramurthy | 2e3168f | 2012-05-03 16:29:09 -0700 | [diff] [blame] | 59 | int adm_get_copp_id(int port_id); |
| 60 | |
Subhash Chandra Bose Naripeddy | ea09588 | 2012-12-17 23:18:21 -0800 | [diff] [blame] | 61 | void adm_set_multi_ch_map(char *channel_map); |
| 62 | |
| 63 | void adm_get_multi_ch_map(char *channel_map); |
| 64 | |
Bharath Ramachandramurthy | 2e3168f | 2012-05-03 16:29:09 -0700 | [diff] [blame] | 65 | #endif /* __Q6_ADM_V2_H__ */ |