···11+/*22+ * linux/sound/rt5670.h -- Platform data for RT567033+ *44+ * Copyright 2014 Realtek Microelectronics55+ *66+ * This program is free software; you can redistribute it and/or modify77+ * it under the terms of the GNU General Public License version 2 as88+ * published by the Free Software Foundation.99+ */1010+1111+#ifndef __LINUX_SND_RT5670_H1212+#define __LINUX_SND_RT5670_H1313+1414+struct rt5670_platform_data {1515+ int jd_mode;1616+ bool in2_diff;1717+1818+ bool dmic_en;1919+ unsigned int dmic1_data_pin;2020+ /* 0 = GPIO6; 1 = IN2P; 3 = GPIO7*/2121+ unsigned int dmic2_data_pin;2222+ /* 0 = GPIO8; 1 = IN3N; */2323+ unsigned int dmic3_data_pin;2424+ /* 0 = GPIO9; 1 = GPIO10; 2 = GPIO5*/2525+};2626+2727+#endif
+6
sound/soc/codecs/Kconfig
···7878 select SND_SOC_RT5640 if I2C7979 select SND_SOC_RT5645 if I2C8080 select SND_SOC_RT5651 if I2C8181+ select SND_SOC_RT5670 if I2C8182 select SND_SOC_RT5677 if I2C8283 select SND_SOC_SGTL5000 if I2C8384 select SND_SOC_SI476X if MFD_SI476X_CORE···446445 default y if SND_SOC_RT5640=y447446 default y if SND_SOC_RT5645=y448447 default y if SND_SOC_RT5651=y448448+ default y if SND_SOC_RT5670=y449449 default y if SND_SOC_RT5677=y450450 default m if SND_SOC_RT5640=m451451 default m if SND_SOC_RT5645=m452452 default m if SND_SOC_RT5651=m453453+ default m if SND_SOC_RT5670=m453454 default m if SND_SOC_RT5677=m454455455456config SND_SOC_RT5631···464461 tristate465462466463config SND_SOC_RT5651464464+ tristate465465+466466+config SND_SOC_RT5670467467 tristate468468469469config SND_SOC_RT5677