mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
The probe debug functionality is implemented via compress support and it was spread across two set of files: probe.c/h compress.c/h Merge the two files into sof-probes.s/h and clean them up by removing unused struct definitions, functions. We can also move most of the functions static as they are only used internally. Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Kai Vehmanen <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
/* SPDX-License-Identifier: (GPL-2.0-only 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-2021 Intel Corporation. All rights reserved.
|
|
* Author: Cezary Rojewski <[email protected]>
|
|
*/
|
|
|
|
#ifndef __SOF_PROBES_H
|
|
#define __SOF_PROBES_H
|
|
|
|
#include <sound/compress_driver.h>
|
|
#include <sound/sof/header.h>
|
|
|
|
struct snd_sof_dev;
|
|
|
|
#define SOF_PROBE_INVALID_NODE_ID UINT_MAX
|
|
|
|
struct sof_probe_point_desc {
|
|
unsigned int buffer_id;
|
|
unsigned int purpose;
|
|
unsigned int stream_tag;
|
|
} __packed;
|
|
|
|
int sof_ipc_probe_points_info(struct snd_sof_dev *sdev,
|
|
struct sof_probe_point_desc **desc,
|
|
size_t *num_desc);
|
|
int sof_ipc_probe_points_add(struct snd_sof_dev *sdev,
|
|
struct sof_probe_point_desc *desc,
|
|
size_t num_desc);
|
|
int sof_ipc_probe_points_remove(struct snd_sof_dev *sdev,
|
|
unsigned int *buffer_id, size_t num_buffer_id);
|
|
|
|
extern struct snd_soc_cdai_ops sof_probe_compr_ops;
|
|
extern const struct snd_compress_ops sof_probe_compressed_ops;
|
|
|
|
#endif
|