ASoC: es8323: update codec es8323 driver
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / rt5640-dsp.h
1 /*
2  * rt5640-dsp.h  --  RT5640 ALSA SoC DSP driver
3  *
4  * Copyright 2011 Realtek Microelectronics
5  * Author: Johnny Hsu <johnnyhsu@realtek.com>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
11
12 #ifndef __RT5640_DSP_H__
13 #define __RT5640_DSP_H__
14
15 /* Debug String Length */
16 #define RT5640_DSP_REG_DISP_LEN 12
17
18 enum {
19         RT5640_DSP_DIS,
20         RT5640_DSP_AEC_NS_FENS,
21         RT5640_DSP_HFBF,
22         RT5640_DSP_FFP,
23 };
24
25 struct rt5640_dsp_param {
26         u16 cmd_fmt;
27         u16 addr;
28         u16 data;
29         u8 cmd;
30 };
31
32 int rt5640_dsp_probe(struct snd_soc_codec *codec);
33 int rt56xx_dsp_ioctl_common(struct snd_hwdep *hw, struct file *file, unsigned int cmd, unsigned long arg);
34 #ifdef CONFIG_PM
35 int rt5640_dsp_suspend(struct snd_soc_codec *codec);
36 int rt5640_dsp_resume(struct snd_soc_codec *codec);
37 #endif
38
39 #endif /* __RT5640_DSP_H__ */
40