sof-priv.h (cac0b0887e5304bddfda91a4a7106f9328c31318) sof-priv.h (3dc0d709177828a22dfc9d0072e3ac937ef90d06)
1/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2/*
3 * This file is provided under a dual BSD/GPLv2 license. When using or
4 * redistributing this file, you may do so under either license.
5 *
6 * Copyright(c) 2018 Intel Corporation. All rights reserved.
7 *
8 * Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>

--- 187 unchanged lines hidden (view full) ---

196
197 /* host stream pointer */
198 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
199 struct snd_pcm_substream *substream); /* optional */
200
201 /* pcm ack */
202 int (*pcm_ack)(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream); /* optional */
203
1/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2/*
3 * This file is provided under a dual BSD/GPLv2 license. When using or
4 * redistributing this file, you may do so under either license.
5 *
6 * Copyright(c) 2018 Intel Corporation. All rights reserved.
7 *
8 * Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>

--- 187 unchanged lines hidden (view full) ---

196
197 /* host stream pointer */
198 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
199 struct snd_pcm_substream *substream); /* optional */
200
201 /* pcm ack */
202 int (*pcm_ack)(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream); /* optional */
203
204#if IS_ENABLED(CONFIG_SND_SOC_SOF_DEBUG_PROBES)
205 /* Except for probe_pointer, all probe ops are mandatory */
206 int (*probe_assign)(struct snd_sof_dev *sdev,
207 struct snd_compr_stream *cstream,
208 struct snd_soc_dai *dai); /* mandatory */
209 int (*probe_free)(struct snd_sof_dev *sdev,
210 struct snd_compr_stream *cstream,
211 struct snd_soc_dai *dai); /* mandatory */
212 int (*probe_set_params)(struct snd_sof_dev *sdev,
213 struct snd_compr_stream *cstream,
214 struct snd_compr_params *params,
215 struct snd_soc_dai *dai); /* mandatory */
216 int (*probe_trigger)(struct snd_sof_dev *sdev,
217 struct snd_compr_stream *cstream, int cmd,
218 struct snd_soc_dai *dai); /* mandatory */
219 int (*probe_pointer)(struct snd_sof_dev *sdev,
220 struct snd_compr_stream *cstream,
221 struct snd_compr_tstamp *tstamp,
222 struct snd_soc_dai *dai); /* optional */
223#endif
224
225 /* host read DSP stream data */
226 int (*ipc_msg_data)(struct snd_sof_dev *sdev,
227 struct snd_pcm_substream *substream,
228 void *p, size_t sz); /* mandatory */
229
230 /* host configure DSP HW parameters */
231 int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
232 struct snd_pcm_substream *substream,

--- 208 unchanged lines hidden (view full) ---

441
442 /* FW configuration */
443 struct sof_ipc_window *info_window;
444
445 /* IPC timeouts in ms */
446 int ipc_timeout;
447 int boot_timeout;
448
204 /* host read DSP stream data */
205 int (*ipc_msg_data)(struct snd_sof_dev *sdev,
206 struct snd_pcm_substream *substream,
207 void *p, size_t sz); /* mandatory */
208
209 /* host configure DSP HW parameters */
210 int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
211 struct snd_pcm_substream *substream,

--- 208 unchanged lines hidden (view full) ---

420
421 /* FW configuration */
422 struct sof_ipc_window *info_window;
423
424 /* IPC timeouts in ms */
425 int ipc_timeout;
426 int boot_timeout;
427
449#if IS_ENABLED(CONFIG_SND_SOC_SOF_DEBUG_PROBES)
450 unsigned int extractor_stream_tag;
451#endif
452
453 /* DMA for Trace */
454 struct snd_dma_buffer dmatb;
455 struct snd_dma_buffer dmatp;
456 int dma_trace_pages;
457 wait_queue_head_t trace_sleep;
458 u32 host_offset;
459 bool dtrace_is_supported; /* set with Kconfig or module parameter */
460 bool dtrace_is_enabled;

--- 230 unchanged lines hidden ---
428 /* DMA for Trace */
429 struct snd_dma_buffer dmatb;
430 struct snd_dma_buffer dmatp;
431 int dma_trace_pages;
432 wait_queue_head_t trace_sleep;
433 u32 host_offset;
434 bool dtrace_is_supported; /* set with Kconfig or module parameter */
435 bool dtrace_is_enabled;

--- 230 unchanged lines hidden ---