1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __SOF_CLIENT_PROBES_H
4 #define __SOF_CLIENT_PROBES_H
5 
6 struct snd_compr_stream;
7 struct snd_compr_tstamp;
8 struct snd_compr_params;
9 struct sof_client_dev;
10 struct snd_soc_dai;
11 
12 /*
13  * Callbacks used on platforms where the control for audio is split between
14  * DSP and host, like HDA.
15  */
16 struct sof_probes_host_ops {
17 	int (*startup)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
18 		       struct snd_soc_dai *dai, u32 *stream_id);
19 	int (*shutdown)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
20 			struct snd_soc_dai *dai);
21 	int (*set_params)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
22 			  struct snd_compr_params *params,
23 			  struct snd_soc_dai *dai);
24 	int (*trigger)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
25 		       int cmd, struct snd_soc_dai *dai);
26 	int (*pointer)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
27 		       struct snd_compr_tstamp *tstamp,
28 		       struct snd_soc_dai *dai);
29 };
30 
31 #endif
32