mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
ec247fea73
The only usage of sof_probe_compr_ops is to assign its address to the cops field in the snd_soc_dai_driver struct (in sound/soc/sof/intel/hda-dai.c). Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Link: https://lore.kernel.org/r/20211204203220.54712-1-rikard.falkeborn@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
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 <cezary.rojewski@intel.com>
|
|
*/
|
|
|
|
#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 const struct snd_soc_cdai_ops sof_probe_compr_ops;
|
|
extern const struct snd_compress_ops sof_probe_compressed_ops;
|
|
|
|
#endif
|