Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __Q6_ADM_V2_H__
0003 #define __Q6_ADM_V2_H__
0004 
0005 #define ADM_PATH_PLAYBACK   0x1
0006 #define ADM_PATH_LIVE_REC   0x2
0007 #define MAX_COPPS_PER_PORT  8
0008 #define NULL_COPP_TOPOLOGY  0x00010312
0009 
0010 /* multiple copp per stream. */
0011 struct route_payload {
0012     int num_copps;
0013     int session_id;
0014     int copp_idx[MAX_COPPS_PER_PORT];
0015     int port_id[MAX_COPPS_PER_PORT];
0016 };
0017 
0018 struct q6copp;
0019 struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate,
0020                int channel_mode, int topology, int perf_mode,
0021                uint16_t bit_width, int app_type, int acdb_id);
0022 int q6adm_close(struct device *dev, struct q6copp *copp);
0023 int q6adm_get_copp_id(struct q6copp *copp);
0024 int q6adm_matrix_map(struct device *dev, int path,
0025              struct route_payload payload_map, int perf_mode);
0026 
0027 #endif /* __Q6_ADM_V2_H__ */