Home
last modified time | relevance | path

Searched refs:wm8994 (Results 1 – 18 of 18) sorted by relevance

/linux-4.4.14/drivers/mfd/
Dwm8994-core.c122 struct wm8994 *wm8994 = dev_get_drvdata(dev); in wm8994_suspend() local
127 switch (wm8994->type) { in wm8994_suspend()
130 ret = wm8994_reg_read(wm8994, WM8958_MIC_DETECT_1); in wm8994_suspend()
144 if (!wm8994->ldo_ena_always_driven) in wm8994_suspend()
145 wm8994_set_bits(wm8994, WM8994_PULL_CONTROL_2, in wm8994_suspend()
152 wm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET, in wm8994_suspend()
153 wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET)); in wm8994_suspend()
155 regcache_mark_dirty(wm8994->regmap); in wm8994_suspend()
160 ret = regcache_sync_region(wm8994->regmap, WM8994_GPIO_1, in wm8994_suspend()
166 ret = regcache_sync_region(wm8994->regmap, in wm8994_suspend()
[all …]
Dwm8994-irq.c159 struct wm8994 *wm8994 = data; in wm8994_edge_irq() local
161 while (gpio_get_value_cansleep(wm8994->pdata.irq_gpio)) in wm8994_edge_irq()
162 handle_nested_irq(irq_create_mapping(wm8994->edge_irq, 0)); in wm8994_edge_irq()
170 struct wm8994 *wm8994 = h->host_data; in wm8994_edge_irq_map() local
172 irq_set_chip_data(virq, wm8994); in wm8994_edge_irq_map()
185 int wm8994_irq_init(struct wm8994 *wm8994) in wm8994_irq_init() argument
189 struct wm8994_pdata *pdata = &wm8994->pdata; in wm8994_irq_init()
191 if (!wm8994->irq) { in wm8994_irq_init()
192 dev_warn(wm8994->dev, in wm8994_irq_init()
194 wm8994->irq_base = 0; in wm8994_irq_init()
[all …]
Dwm8994-regmap.c1199 struct wm8994 *wm8994 = dev_get_drvdata(dev); in wm1811_volatile_register() local
1203 if (wm8994->cust_id > 1 || wm8994->revision > 1) in wm1811_volatile_register()
DMakefile64 obj-$(CONFIG_MFD_WM8994) += wm8994-core.o wm8994-irq.o wm8994-regmap.o
/linux-4.4.14/sound/soc/codecs/
Dwm8958-dsp2.c45 struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); in wm8958_dsp2_fw() local
54 if (wm8994->cur_fw == fw) in wm8958_dsp2_fw()
156 wm8994_bulk_write(wm8994->wm8994, in wm8958_dsp2_fw()
177 wm8994->cur_fw = fw; in wm8958_dsp2_fw()
197 struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); in wm8958_dsp_start_mbc() local
198 struct wm8994 *control = wm8994->wm8994; in wm8958_dsp_start_mbc()
206 if (wm8994->mbc) in wm8958_dsp_start_mbc()
207 wm8958_dsp2_fw(codec, "MBC", wm8994->mbc, false); in wm8958_dsp_start_mbc()
215 = &control->pdata.mbc_cfgs[wm8994->mbc_cfg]; in wm8958_dsp_start_mbc()
241 struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); in wm8958_dsp_start_vss() local
[all …]
Dwm8994.c111 struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); in wm8958_micd_set_rate() local
112 struct wm8994 *control = wm8994->wm8994; in wm8958_micd_set_rate()
118 idle = !wm8994->jack_mic; in wm8958_micd_set_rate()
122 sysclk = wm8994->aifclk[1]; in wm8958_micd_set_rate()
124 sysclk = wm8994->aifclk[0]; in wm8958_micd_set_rate()
129 } else if (wm8994->jackdet) { in wm8958_micd_set_rate()
162 struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); in configure_aif_clock() local
172 switch (wm8994->sysclk[aif]) { in configure_aif_clock()
174 rate = wm8994->mclk[0]; in configure_aif_clock()
179 rate = wm8994->mclk[1]; in configure_aif_clock()
[all …]
Dwm8994.h74 struct wm8994;
78 struct wm8994 *wm8994; member
DMakefile178 snd-soc-wm8994-objs := wm8994.o wm8958-dsp2.o
369 obj-$(CONFIG_SND_SOC_WM8994) += snd-soc-wm8994.o
/linux-4.4.14/include/linux/mfd/wm8994/
Dcore.h58 struct wm8994 { struct
87 static inline int wm8994_reg_read(struct wm8994 *wm8994, unsigned short reg) in wm8994_reg_read() argument
92 ret = regmap_read(wm8994->regmap, reg, &val); in wm8994_reg_read()
100 static inline int wm8994_reg_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_reg_write() argument
103 return regmap_write(wm8994->regmap, reg, val); in wm8994_reg_write()
106 static inline int wm8994_bulk_read(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_read() argument
109 return regmap_bulk_read(wm8994->regmap, reg, buf, count); in wm8994_bulk_read()
112 static inline int wm8994_bulk_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_write() argument
115 return regmap_raw_write(wm8994->regmap, reg, buf, count * sizeof(u16)); in wm8994_bulk_write()
118 static inline int wm8994_set_bits(struct wm8994 *wm8994, unsigned short reg, in wm8994_set_bits() argument
[all …]
/linux-4.4.14/drivers/gpio/
Dgpio-wm8994.c30 struct wm8994 *wm8994; member
42 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_request() local
44 switch (wm8994->type) { in wm8994_gpio_request()
65 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_direction_in() local
67 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_direction_in()
74 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_get() local
77 ret = wm8994_reg_read(wm8994, WM8994_GPIO_1 + offset); in wm8994_gpio_get()
91 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_direction_out() local
96 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_direction_out()
103 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_set() local
[all …]
DMakefile113 obj-$(CONFIG_GPIO_WM8994) += gpio-wm8994.o
/linux-4.4.14/drivers/regulator/
Dwm8994-regulator.c31 struct wm8994 *wm8994; member
54 switch (ldo->wm8994->type) { in wm8994_ldo2_list_voltage()
127 struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent); in wm8994_ldo_probe() local
128 struct wm8994_pdata *pdata = dev_get_platdata(wm8994->dev); in wm8994_ldo_probe()
140 ldo->wm8994 = wm8994; in wm8994_ldo_probe()
142 ldo->supply.dev_name = dev_name(wm8994->dev); in wm8994_ldo_probe()
144 config.dev = wm8994->dev; in wm8994_ldo_probe()
146 config.regmap = wm8994->regmap; in wm8994_ldo_probe()
150 } else if (wm8994->dev->of_node) { in wm8994_ldo_probe()
151 config.ena_gpio = wm8994->pdata.ldo[id].enable; in wm8994_ldo_probe()
[all …]
DMakefile103 obj-$(CONFIG_REGULATOR_WM8994) += wm8994-regulator.o
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Dsamsung,smdk-wm8994.txt4 - compatible : "samsung,smdk-wm8994"
10 compatible = "samsung,smdk-wm8994";
13 samsung,audio-codec = <&wm8994>;
Dwm8994.txt8 - compatible : One of "wlf,wm1811", "wlf,wm8994" or "wlf,wm8958".
62 codec: wm8994@1a {
63 compatible = "wlf,wm8994";
/linux-4.4.14/arch/arm/boot/dts/
Dexynos5250-smdk5250.dts57 compatible = "samsung,smdk-wm8994";
60 samsung,audio-codec = <&wm8994>;
292 wm8994: wm8994@1a { label
293 compatible = "wlf,wm8994";
/linux-4.4.14/Documentation/devicetree/bindings/i2c/
Di2c-s3c2410.txt56 wm8994@1a {
57 compatible = "wlf,wm8994";
/linux-4.4.14/sound/soc/samsung/
DMakefile34 snd-soc-smdk-wm8994-objs := smdk_wm8994.o
60 obj-$(CONFIG_SND_SOC_SAMSUNG_SMDK_WM8994) += snd-soc-smdk-wm8994.o