sof-client-probes.h 1.0 KB

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