···11+/*22+ * linux/sound/wm2200.h -- Platform data for WM220033+ *44+ * Copyright 2012 Wolfson Microelectronics. PLC.55+ *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_WM2200_H1212+#define __LINUX_SND_WM2200_H1313+1414+#define WM2200_GPIO_SET 0x100001515+1616+enum wm2200_in_mode {1717+ WM2200_IN_SE = 0,1818+ WM2200_IN_DIFF = 1,1919+ WM2200_IN_DMIC = 2,2020+};2121+2222+enum wm2200_dmic_sup {2323+ WM2200_DMIC_SUP_MICVDD = 0,2424+ WM2200_DMIC_SUP_MICBIAS1 = 1,2525+ WM2200_DMIC_SUP_MICBIAS2 = 2,2626+};2727+2828+struct wm2200_pdata {2929+ int reset; /** GPIO controlling /RESET, if any */3030+ int ldo_ena; /** GPIO controlling LODENA, if any */3131+ int irq_flags;3232+3333+ int gpio_defaults[4];3434+3535+ enum wm2200_in_mode in_mode[3];3636+ enum wm2200_dmic_sup dmic_sup[3];3737+3838+ int micbias_cfg[2]; /** Register value to configure MICBIAS */3939+};4040+4141+#endif
+4
sound/soc/codecs/Kconfig
···6262 select SND_SOC_WL1273 if MFD_WL1273_CORE6363 select SND_SOC_WM1250_EV1 if I2C6464 select SND_SOC_WM2000 if I2C6565+ select SND_SOC_WM2200 if I2C6566 select SND_SOC_WM5100 if I2C6667 select SND_SOC_WM8350 if MFD_WM83506768 select SND_SOC_WM8400 if MFD_WM8400···291290 tristate292291293292config SND_SOC_WM2000293293+ tristate294294+295295+config SND_SOC_WM2200294296 tristate295297296298config SND_SOC_WM5100