Home
last modified time | relevance | path

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

/linux/drivers/mfd/
H A Dwm8994-core.c114 struct wm8994 *wm8994 = dev_get_drvdata(dev); in wm8994_suspend() local
119 switch (wm8994->type) { in wm8994_suspend()
122 ret = wm8994_reg_read(wm8994, WM8958_MIC_DETECT_1); in wm8994_suspend()
136 if (!wm8994->ldo_ena_always_driven) in wm8994_suspend()
137 wm8994_set_bits(wm8994, WM8994_PULL_CONTROL_2, in wm8994_suspend()
144 wm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET, in wm8994_suspend()
145 wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET)); in wm8994_suspend()
147 regcache_mark_dirty(wm8994->regmap); in wm8994_suspend()
152 ret = regcache_sync_region(wm8994->regmap, WM8994_GPIO_1, in wm8994_suspend()
158 ret = regcache_sync_region(wm8994->regmap, in wm8994_suspend()
[all …]
H A Dwm8994-irq.c154 struct wm8994 *wm8994 = data; in wm8994_edge_irq() local
156 while (gpio_get_value_cansleep(wm8994->pdata.irq_gpio)) in wm8994_edge_irq()
157 handle_nested_irq(irq_find_mapping(wm8994->edge_irq, 0)); in wm8994_edge_irq()
165 struct wm8994 *wm8994 = h->host_data; in wm8994_edge_irq_map() local
167 irq_set_chip_data(virq, wm8994); in wm8994_edge_irq_map()
180 int wm8994_irq_init(struct wm8994 *wm8994) in wm8994_irq_init() argument
184 struct wm8994_pdata *pdata = &wm8994->pdata; in wm8994_irq_init()
186 if (!wm8994->irq) { in wm8994_irq_init()
187 dev_warn(wm8994->dev, in wm8994_irq_init()
189 wm8994->irq_base = 0; in wm8994_irq_init()
[all …]
H A Dwm8994-regmap.c1194 struct wm8994 *wm8994 = dev_get_drvdata(dev); in wm1811_volatile_register() local
1198 if (wm8994->cust_id > 1 || wm8994->revision > 1) in wm1811_volatile_register()
/linux/sound/soc/codecs/
H A Dwm8958-dsp2.c23 #include <linux/mfd/wm8994/core.h>
24 #include <linux/mfd/wm8994/registers.h>
25 #include <linux/mfd/wm8994/pdata.h>
26 #include <linux/mfd/wm8994/gpio.h>
30 #include "wm8994.h"
44 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_dsp2_fw() local
53 if (wm8994->cur_fw == fw) in wm8958_dsp2_fw()
149 wm8994_bulk_write(wm8994->wm8994, in wm8958_dsp2_fw()
170 wm8994 in wm8958_dsp2_fw()
190 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_dsp_start_mbc() local
234 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_dsp_start_vss() local
295 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_dsp_start_enh_eq() local
326 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_dsp_apply() local
438 wm8958_dsp2_busy(struct wm8994_priv * wm8994,int aif) wm8958_dsp2_busy() argument
457 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_put_mbc_enum() local
479 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_get_mbc_enum() local
501 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_mbc_get() local
513 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_mbc_put() local
547 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_put_vss_enum() local
569 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_get_vss_enum() local
580 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_put_vss_hpf_enum() local
602 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_get_vss_hpf_enum() local
624 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_vss_get() local
636 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_vss_put() local
685 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_hpf_get() local
700 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_hpf_put() local
747 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_put_enh_eq_enum() local
769 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_get_enh_eq_enum() local
791 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_enh_eq_get() local
803 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_enh_eq_put() local
864 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_enh_eq_loaded() local
876 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_mbc_vss_loaded() local
888 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_mbc_loaded() local
899 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); wm8958_dsp2_init() local
[all...]
/linux/include/linux/mfd/wm8994/
H A Dcore.h53 struct wm8994 { struct
82 static inline int wm8994_reg_read(struct wm8994 *wm8994, unsigned short reg) in wm8994_reg_read() argument
87 ret = regmap_read(wm8994->regmap, reg, &val); in wm8994_reg_read()
95 static inline int wm8994_reg_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_reg_write() argument
98 return regmap_write(wm8994->regmap, reg, val); in wm8994_reg_write()
101 static inline int wm8994_bulk_read(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_read() argument
104 return regmap_bulk_read(wm8994->regmap, reg, buf, count); in wm8994_bulk_read()
107 static inline int wm8994_bulk_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_write() argument
110 return regmap_raw_write(wm8994->regmap, reg, buf, count * sizeof(u16)); in wm8994_bulk_write()
113 static inline int wm8994_set_bits(struct wm8994 *wm8994, unsigned short reg, in wm8994_set_bits() argument
[all …]
/linux/drivers/regulator/
H A Dwm8994-regulator.c26 struct wm8994 *wm8994; member
49 switch (ldo->wm8994->type) { in wm8994_ldo2_list_voltage()
151 struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent); in wm8994_ldo_probe() local
152 struct wm8994_pdata *pdata = dev_get_platdata(wm8994->dev); in wm8994_ldo_probe()
165 ldo->wm8994 = wm8994; in wm8994_ldo_probe()
167 ldo->supply.dev_name = dev_name(wm8994->dev); in wm8994_ldo_probe()
169 config.dev = wm8994->dev; in wm8994_ldo_probe()
171 config.regmap = wm8994->regmap; in wm8994_ldo_probe()
187 if (!pdata || !pdata->ldo[id].init_data || wm8994->dev->of_node) { in wm8994_ldo_probe()
188 dev_dbg(wm8994->dev, "Using default init data, supply %s %s\n", in wm8994_ldo_probe()
[all …]
/linux/sound/soc/samsung/
H A DMakefile16 snd-soc-smdk-wm8994-y := smdk_wm8994.o
28 snd-soc-aries-wm8994-y := aries_wm8994.o
31 obj-$(CONFIG_SND_SOC_SAMSUNG_SMDK_WM8994) += snd-soc-smdk-wm8994.o
43 obj-$(CONFIG_SND_SOC_SAMSUNG_ARIES_WM8994) += snd-soc-aries-wm8994.o
/linux/arch/arm/boot/dts/samsung/
H A Ds5pv210-fascinate4g.dts61 compatible = "samsung,fascinate4g-wm8994";
109 sound-dai = <&wm8994>;
398 &wm8994 {
H A Ds5pv210-galaxys.dts88 compatible = "samsung,aries-wm8994";
139 sound-dai = <&wm8994>;
H A Ds5pv210-aries.dtsi116 wm8994: audio-codec@1a { label
117 compatible = "wlf,wm8994";