1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __SOF_CLIENT_PROBES_H
4 #define __SOF_CLIENT_PROBES_H
6 struct snd_compr_stream;
7 struct snd_compr_tstamp;
8 struct snd_compr_params;
13 * Callbacks used on platforms where the control for audio is split between
14 * DSP and host, like HDA.
16 struct sof_probes_host_ops {
17 int (*assign)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
18 struct snd_soc_dai *dai, u32 *stream_id);
19 int (*free)(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);