summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5514.h
diff options
context:
space:
mode:
authorOder Chiou <oder_chiou@realtek.com>2016-06-06 10:33:31 (GMT)
committerMark Brown <broonie@kernel.org>2016-06-07 15:22:31 (GMT)
commit6eebf35b0e4a02248f7dba5d1719c6896afe41ba (patch)
tree9bc744792d910a4cb499d1d5bd1c0b1bc3206d7a /sound/soc/codecs/rt5514.h
parent1a695a905c18548062509178b98bc91e67510864 (diff)
downloadlinux-6eebf35b0e4a02248f7dba5d1719c6896afe41ba.tar.xz
ASoC: rt5514: add rt5514 SPI driver
The device has multiple control interfaces, I2C and SPI. The I2C interface mainly controls the register settings of codec. The SPI interface is in order to provide the high speed transmission of data. For example, high bandwidth memory read/write of DSP. The patch adds the rt5514 SPI driver for loading the firmware of DSP and retrieving the voice data from DSP after the system is waked up by specific voice. Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5514.h')
-rw-r--r--sound/soc/codecs/rt5514.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5514.h b/sound/soc/codecs/rt5514.h
index 6ad8a61..6e89e7d 100644
--- a/sound/soc/codecs/rt5514.h
+++ b/sound/soc/codecs/rt5514.h
@@ -225,6 +225,9 @@
#define RT5514_PLL_INP_MAX 40000000
#define RT5514_PLL_INP_MIN 256000
+#define RT5514_FIRMWARE1 "rt5514_dsp_fw1.bin"
+#define RT5514_FIRMWARE2 "rt5514_dsp_fw2.bin"
+
/* System Clock Source */
enum {
RT5514_SCLK_S_MCLK,
@@ -247,6 +250,7 @@ struct rt5514_priv {
int pll_src;
int pll_in;
int pll_out;
+ int dsp_enabled;
};
#endif /* __RT5514_H__ */