mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 09:14:19 +08:00
291e7c220b
This will be used to define the firmware names. Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com> Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com> Link: https://lore.kernel.org/r/20220630002335.366545-12-vitalyr@opensource.cirrus.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
40 lines
1.0 KiB
C
40 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0
|
|
*
|
|
* HDA DSP ALSA Control Driver
|
|
*
|
|
* Copyright 2022 Cirrus Logic, Inc.
|
|
*
|
|
* Author: Stefan Binding <sbinding@opensource.cirrus.com>
|
|
*/
|
|
|
|
#ifndef __HDA_CS_DSP_CTL_H__
|
|
#define __HDA_CS_DSP_CTL_H__
|
|
|
|
#include <sound/soc.h>
|
|
#include <linux/firmware/cirrus/cs_dsp.h>
|
|
|
|
enum hda_cs_dsp_fw_id {
|
|
HDA_CS_DSP_FW_SPK_PROT,
|
|
HDA_CS_DSP_FW_SPK_CALI,
|
|
HDA_CS_DSP_FW_SPK_DIAG,
|
|
HDA_CS_DSP_FW_MISC,
|
|
HDA_CS_DSP_NUM_FW
|
|
};
|
|
|
|
struct hda_cs_dsp_ctl_info {
|
|
struct snd_card *card;
|
|
enum hda_cs_dsp_fw_id fw_type;
|
|
const char *device_name;
|
|
};
|
|
|
|
extern const char * const hda_cs_dsp_fw_ids[HDA_CS_DSP_NUM_FW];
|
|
|
|
int hda_cs_dsp_control_add(struct cs_dsp_coeff_ctl *cs_ctl, struct hda_cs_dsp_ctl_info *info);
|
|
void hda_cs_dsp_control_remove(struct cs_dsp_coeff_ctl *cs_ctl);
|
|
int hda_cs_dsp_write_ctl(struct cs_dsp *dsp, const char *name, int type,
|
|
unsigned int alg, const void *buf, size_t len);
|
|
int hda_cs_dsp_read_ctl(struct cs_dsp *dsp, const char *name, int type,
|
|
unsigned int alg, void *buf, size_t len);
|
|
|
|
#endif /*__HDA_CS_DSP_CTL_H__*/
|