Lines Matching +full:is +full:- +full:compress +full:- +full:dai

1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
3 // This file is provided under a dual BSD/GPLv2 license. When using or
16 #include "../sof-priv.h"
17 #include "../sof-client-probes.h"
18 #include "../sof-client.h"
21 #include "acp-dsp-offset.h"
25 struct snd_soc_dai *dai, u32 *stream_id) in acp_probes_compr_startup() argument
31 adata = sdev->pdata->hw_pdata; in acp_probes_compr_startup()
34 return -ENODEV; in acp_probes_compr_startup()
36 stream->cstream = cstream; in acp_probes_compr_startup()
37 cstream->runtime->private_data = stream; in acp_probes_compr_startup()
39 adata->probe_stream = stream; in acp_probes_compr_startup()
40 *stream_id = stream->stream_tag; in acp_probes_compr_startup()
47 struct snd_soc_dai *dai) in acp_probes_compr_shutdown() argument
50 struct acp_dsp_stream *stream = cstream->runtime->private_data; in acp_probes_compr_shutdown()
56 dev_err(sdev->dev, "Failed to release probe compress stream\n"); in acp_probes_compr_shutdown()
60 adata = sdev->pdata->hw_pdata; in acp_probes_compr_shutdown()
61 stream->cstream = NULL; in acp_probes_compr_shutdown()
62 cstream->runtime->private_data = NULL; in acp_probes_compr_shutdown()
63 adata->probe_stream = NULL; in acp_probes_compr_shutdown()
71 struct snd_soc_dai *dai) in acp_probes_compr_set_params() argument
74 struct acp_dsp_stream *stream = cstream->runtime->private_data; in acp_probes_compr_set_params()
79 stream->dmab = cstream->runtime->dma_buffer_p; in acp_probes_compr_set_params()
80 stream->num_pages = PFN_UP(cstream->runtime->dma_bytes); in acp_probes_compr_set_params()
81 size = cstream->runtime->buffer_size; in acp_probes_compr_set_params()
91 buf_offset = sdev->debug_box.offset + in acp_probes_compr_set_params()
93 index = stream->stream_tag - 1; in acp_probes_compr_set_params()
103 int cmd, struct snd_soc_dai *dai) in acp_probes_compr_trigger() argument
105 /* Nothing to do here, as it is a mandatory callback just defined */ in acp_probes_compr_trigger()
112 struct snd_soc_dai *dai) in acp_probes_compr_pointer() argument
114 struct acp_dsp_stream *stream = cstream->runtime->private_data; in acp_probes_compr_pointer()
117 pstream = &dai->driver->capture; in acp_probes_compr_pointer()
118 tstamp->copied_total = stream->cstream_posn; in acp_probes_compr_pointer()
119 tstamp->sampling_rate = snd_pcm_rate_bit_to_rate(pstream->rates); in acp_probes_compr_pointer()
135 return sof_client_dev_register(sdev, "acp-probes", 0, &acp_probes_ops, in acp_probes_register()
142 sof_client_dev_unregister(sdev, "acp-probes", 0); in acp_probes_unregister()