Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 
0003 #ifndef __SOF_CLIENT_PROBES_H
0004 #define __SOF_CLIENT_PROBES_H
0005 
0006 struct snd_compr_stream;
0007 struct snd_compr_tstamp;
0008 struct snd_compr_params;
0009 struct sof_client_dev;
0010 struct snd_soc_dai;
0011 
0012 /*
0013  * Callbacks used on platforms where the control for audio is split between
0014  * DSP and host, like HDA.
0015  */
0016 struct sof_probes_host_ops {
0017     int (*startup)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
0018                struct snd_soc_dai *dai, u32 *stream_id);
0019     int (*shutdown)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
0020             struct snd_soc_dai *dai);
0021     int (*set_params)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
0022               struct snd_compr_params *params,
0023               struct snd_soc_dai *dai);
0024     int (*trigger)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
0025                int cmd, struct snd_soc_dai *dai);
0026     int (*pointer)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
0027                struct snd_compr_tstamp *tstamp,
0028                struct snd_soc_dai *dai);
0029 };
0030 
0031 #endif