ARM64: DTS: Fix Firefly board audio driver
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / rt3261.h
index eb0d76cb313bb9205483732d40f0b60060375823..589199cee1b0de229ac4300d889b43e638b66add 100755 (executable)
@@ -2073,10 +2073,6 @@ enum {
 #define RT3261_HEADSET_DET     BIT(1)
 #define RT3261_HEADPHO_DET     BIT(2)
 
-void codec_set_spk(bool on);
-
-int rt3261_headset_mic_detect(int jack_insert);
-
 /* System Clock Source */
 enum {
        RT3261_SCLK_S_MCLK,
@@ -2121,6 +2117,11 @@ enum {
        RT3261_DMIC2,
 };
 
+enum {
+       RT3261_ASRC_DIS,
+       RT3261_ASRC_EN,
+};
+
 struct rt3261_pll_code {
        bool m_bp; /* Indicates bypass m code or not. */
        int m_code;
@@ -2129,6 +2130,7 @@ struct rt3261_pll_code {
 };
 
 struct rt3261_priv {
+       struct i2c_client *i2c;
        struct snd_soc_codec *codec;
        struct delayed_work patch_work;
 
@@ -2144,12 +2146,12 @@ struct rt3261_priv {
        int pll_out;
 
        int dmic_en;
+       int asrc_en;
        int dsp_sw; /* expected parameter setting */
        bool dsp_play_pass;
        bool dsp_rec_pass;
 
-       unsigned int codec_en_gpio;
-       int (*io_init)(int gpio, char *iomux_name, int iomux_mode);
+       int codec_en_gpio;
 
        unsigned int modem_is_open;
        unsigned int spk_num;
@@ -2163,4 +2165,6 @@ struct rt3261_priv {
 int rt3261_conn_mux_path(struct snd_soc_codec *codec,
                char *widget_name, char *path_name);
 
+int rt3261_headset_mic_detect(int jack_insert);
+
 #endif /* __RT3261_H__ */