Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
28 lines
818 B
C
28 lines
818 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __Q6_ADM_V2_H__
|
|
#define __Q6_ADM_V2_H__
|
|
|
|
#define ADM_PATH_PLAYBACK 0x1
|
|
#define ADM_PATH_LIVE_REC 0x2
|
|
#define MAX_COPPS_PER_PORT 8
|
|
#define NULL_COPP_TOPOLOGY 0x00010312
|
|
|
|
/* multiple copp per stream. */
|
|
struct route_payload {
|
|
int num_copps;
|
|
int session_id;
|
|
int copp_idx[MAX_COPPS_PER_PORT];
|
|
int port_id[MAX_COPPS_PER_PORT];
|
|
};
|
|
|
|
struct q6copp;
|
|
struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate,
|
|
int channel_mode, int topology, int perf_mode,
|
|
uint16_t bit_width, int app_type, int acdb_id);
|
|
int q6adm_close(struct device *dev, struct q6copp *copp);
|
|
int q6adm_get_copp_id(struct q6copp *copp);
|
|
int q6adm_matrix_map(struct device *dev, int path,
|
|
struct route_payload payload_map, int perf_mode);
|
|
|
|
#endif /* __Q6_ADM_V2_H__ */
|