···11+/*22+ * linux/sound/rt5645.h -- Platform data for RT564533+ *44+ * Copyright 2013 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_RT5645_H1212+#define __LINUX_SND_RT5645_H1313+1414+struct rt5645_platform_data {1515+ /* IN2 can optionally be differential */1616+ bool in2_diff;1717+1818+ bool dmic_en;1919+ unsigned int dmic1_data_pin;2020+ /* 0 = IN2N; 1 = GPIO5; 2 = GPIO11 */2121+ unsigned int dmic2_data_pin;2222+ /* 0 = IN2P; 1 = GPIO6; 2 = GPIO10; 3 = GPIO12 */2323+};2424+2525+#endif
+21
include/sound/rt5651.h
···11+/*22+ * linux/sound/rt286.h -- Platform data for RT28633+ *44+ * Copyright 2013 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_RT5651_H1212+#define __LINUX_SND_RT5651_H1313+1414+struct rt5651_platform_data {1515+ /* IN2 can optionally be differential */1616+ bool in2_diff;1717+1818+ bool dmic_en;1919+};2020+2121+#endif
+8
sound/soc/codecs/Kconfig
···7171 select SND_SOC_PCM512x_SPI if SPI_MASTER7272 select SND_SOC_RT5631 if I2C7373 select SND_SOC_RT5640 if I2C7474+ select SND_SOC_RT5645 if I2C7575+ select SND_SOC_RT5651 if I2C7476 select SND_SOC_SGTL5000 if I2C7577 select SND_SOC_SI476X if MFD_SI476X_CORE7678 select SND_SOC_SIRF_AUDIO_CODEC···396394 tristate397395398396config SND_SOC_RT5640397397+ tristate398398+399399+config SND_SOC_RT5645400400+ tristate401401+402402+config SND_SOC_RT5651399403 tristate400404401405#Freescale sgtl5000 codec