xref: /OK3568_Linux_fs/kernel/sound/soc/sof/compress.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * This file is provided under a dual BSD/GPLv2 license.  When using or
4*4882a593Smuzhiyun  * redistributing this file, you may do so under either license.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Copyright(c) 2019-2020 Intel Corporation. All rights reserved.
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * Author: Cezary Rojewski <cezary.rojewski@intel.com>
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #ifndef __SOF_COMPRESS_H
12*4882a593Smuzhiyun #define __SOF_COMPRESS_H
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #include <sound/compress_driver.h>
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun extern struct snd_compress_ops sof_probe_compressed_ops;
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun int sof_probe_compr_open(struct snd_compr_stream *cstream,
19*4882a593Smuzhiyun 		struct snd_soc_dai *dai);
20*4882a593Smuzhiyun int sof_probe_compr_free(struct snd_compr_stream *cstream,
21*4882a593Smuzhiyun 		struct snd_soc_dai *dai);
22*4882a593Smuzhiyun int sof_probe_compr_set_params(struct snd_compr_stream *cstream,
23*4882a593Smuzhiyun 		struct snd_compr_params *params, struct snd_soc_dai *dai);
24*4882a593Smuzhiyun int sof_probe_compr_trigger(struct snd_compr_stream *cstream, int cmd,
25*4882a593Smuzhiyun 		struct snd_soc_dai *dai);
26*4882a593Smuzhiyun int sof_probe_compr_pointer(struct snd_compr_stream *cstream,
27*4882a593Smuzhiyun 		struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai);
28*4882a593Smuzhiyun int sof_probe_compr_copy(struct snd_soc_component *component,
29*4882a593Smuzhiyun 			 struct snd_compr_stream *cstream,
30*4882a593Smuzhiyun 			 char __user *buf, size_t count);
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun #endif
33