mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 09:37:38 +07:00
e145e9af23
Define system-agnostic probe compress flow which serves as a base for actual, hardware-dependent implementations. As per firmware spec, maximum of one extraction stream is allowed, while for injection, there can be plenty. Apart from probe_pointer, all probe compress operations are mandatory. Copy operation is defined as unified as its flow should be shared across all SOF systems. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200218143924.10565-6-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
30 lines
1.0 KiB
C
30 lines
1.0 KiB
C
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
|
|
/*
|
|
* This file is provided under a dual BSD/GPLv2 license. When using or
|
|
* redistributing this file, you may do so under either license.
|
|
*
|
|
* Copyright(c) 2019-2020 Intel Corporation. All rights reserved.
|
|
*
|
|
* Author: Cezary Rojewski <cezary.rojewski@intel.com>
|
|
*/
|
|
|
|
#ifndef __SOF_COMPRESS_H
|
|
#define __SOF_COMPRESS_H
|
|
|
|
#include <sound/compress_driver.h>
|
|
|
|
int sof_probe_compr_open(struct snd_compr_stream *cstream,
|
|
struct snd_soc_dai *dai);
|
|
int sof_probe_compr_free(struct snd_compr_stream *cstream,
|
|
struct snd_soc_dai *dai);
|
|
int sof_probe_compr_set_params(struct snd_compr_stream *cstream,
|
|
struct snd_compr_params *params, struct snd_soc_dai *dai);
|
|
int sof_probe_compr_trigger(struct snd_compr_stream *cstream, int cmd,
|
|
struct snd_soc_dai *dai);
|
|
int sof_probe_compr_pointer(struct snd_compr_stream *cstream,
|
|
struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai);
|
|
int sof_probe_compr_copy(struct snd_compr_stream *cstream,
|
|
char __user *buf, size_t count);
|
|
|
|
#endif
|