blob: fdc3cb9a95b8528d099a2a9595f4dc2298c96cc5 [file] [log] [blame]
Bharath Ramachandramurthy2e3168f2012-05-03 16:29:09 -07001/* Copyright (c) 2012, Code Aurora Forum. 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
15
16#define ADM_PATH_PLAYBACK 0x1
17#define ADM_PATH_LIVE_REC 0x2
18#define ADM_PATH_NONLIVE_REC 0x3
Kiran Kandi3648bde2012-11-16 09:49:01 -080019#include <sound/q6afe-v2.h>
Bharath Ramachandramurthy2e3168f2012-05-03 16:29:09 -070020#include <sound/q6audio-v2.h>
21
Bharath Ramachandramurthy2e3168f2012-05-03 16:29:09 -070022
23/* multiple copp per stream. */
24struct route_payload {
Kiran Kandi3648bde2012-11-16 09:49:01 -080025 unsigned int copp_ids[AFE_MAX_PORTS];
Bharath Ramachandramurthy2e3168f2012-05-03 16:29:09 -070026 unsigned short num_copps;
27 unsigned int session_id;
28};
29
Ben Romberger564493d2012-12-04 20:48:28 -080030int srs_trumedia_open(int port_id, int srs_tech_id, void *srs_params);
31
Bharath Ramachandramurthy2e3168f2012-05-03 16:29:09 -070032int adm_open(int port, int path, int rate, int mode, int topology);
33
34int adm_multi_ch_copp_open(int port, int path, int rate, int mode,
35 int topology);
36
37int adm_memory_map_regions(int port_id, uint32_t *buf_add, uint32_t mempool_id,
38 uint32_t *bufsz, uint32_t bufcnt);
39
40int adm_memory_unmap_regions(int port_id, uint32_t *buf_add, uint32_t *bufsz,
41 uint32_t bufcnt);
42
43int adm_close(int port);
44
45int adm_matrix_map(int session_id, int path, int num_copps,
46 unsigned int *port_id, int copp_id);
47
48int adm_connect_afe_port(int mode, int session_id, int port_id);
49
50int adm_get_copp_id(int port_id);
51
52#endif /* __Q6_ADM_V2_H__ */