~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/sof/sof-client-probes.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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 struct sof_probe_point_desc {
 32         unsigned int buffer_id;
 33         unsigned int purpose;
 34         unsigned int stream_tag;
 35 } __packed;
 36 
 37 struct sof_probes_ipc_ops {
 38         int (*init)(struct sof_client_dev *cdev, u32 stream_tag,
 39                     size_t buffer_size);
 40         int (*deinit)(struct sof_client_dev *cdev);
 41         int (*points_info)(struct sof_client_dev *cdev,
 42                            struct sof_probe_point_desc **desc,
 43                            size_t *num_desc);
 44         int (*points_add)(struct sof_client_dev *cdev,
 45                           struct sof_probe_point_desc *desc,
 46                           size_t num_desc);
 47         int (*points_remove)(struct sof_client_dev *cdev,
 48                              unsigned int *buffer_id, size_t num_buffer_id);
 49 };
 50 
 51 extern const struct sof_probes_ipc_ops ipc3_probe_ops;
 52 extern const struct sof_probes_ipc_ops ipc4_probe_ops;
 53 
 54 struct sof_probes_priv {
 55         struct dentry *dfs_points;
 56         struct dentry *dfs_points_remove;
 57         u32 extractor_stream_tag;
 58         struct snd_soc_card card;
 59         void *ipc_priv;
 60 
 61         const struct sof_probes_host_ops *host_ops;
 62         const struct sof_probes_ipc_ops *ipc_ops;
 63 };
 64 
 65 #endif
 66 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php