sof-client-probes.h (1041B)
1/* SPDX-License-Identifier: GPL-2.0-only */ 2 3#ifndef __SOF_CLIENT_PROBES_H 4#define __SOF_CLIENT_PROBES_H 5 6struct snd_compr_stream; 7struct snd_compr_tstamp; 8struct snd_compr_params; 9struct sof_client_dev; 10struct 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 */ 16struct 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); 29}; 30 31#endif