rt3261: add first version, playback is ok.
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / rt3261-dsp.h
1 /*
2  * rt3261-dsp.h  --  RT3261 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 __RT3261_DSP_H__
13 #define __RT3261_DSP_H__
14
15 /* Debug String Length */
16 #define RT3261_DSP_REG_DISP_LEN 12
17
18 enum {
19         RT3261_DSP_DIS,
20         RT3261_DSP_AEC_NS_FENS,
21         RT3261_DSP_HFBF,
22         RT3261_DSP_FFP,
23 };
24
25 struct rt3261_dsp_param {
26         u16 cmd_fmt;
27         u16 addr;
28         u16 data;
29         u8 cmd;
30 };
31
32 int rt3261_dsp_probe(struct snd_soc_codec *codec);
33 #ifdef CONFIG_PM
34 int rt3261_dsp_suspend(struct snd_soc_codec *codec, pm_message_t state);
35 int rt3261_dsp_resume(struct snd_soc_codec *codec);
36 #endif
37
38 #endif /* __RT3261_DSP_H__ */
39