Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/mfd/
Dwm8994-core.c116 struct wm8994 *wm8994 = dev_get_drvdata(dev); in wm8994_suspend() local
121 switch (wm8994->type) { in wm8994_suspend()
124 ret = wm8994_reg_read(wm8994, WM8958_MIC_DETECT_1); in wm8994_suspend()
138 if (!wm8994->ldo_ena_always_driven) in wm8994_suspend()
139 wm8994_set_bits(wm8994, WM8994_PULL_CONTROL_2, in wm8994_suspend()
146 wm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET, in wm8994_suspend()
147 wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET)); in wm8994_suspend()
149 regcache_mark_dirty(wm8994->regmap); in wm8994_suspend()
154 ret = regcache_sync_region(wm8994->regmap, WM8994_GPIO_1, in wm8994_suspend()
160 ret = regcache_sync_region(wm8994->regmap, in wm8994_suspend()
[all …]
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_create_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 …]
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()
DMakefile71 wm8994-objs := wm8994-core.o wm8994-irq.o wm8994-regmap.o
72 obj-$(CONFIG_MFD_WM8994) += wm8994.o
/Linux-v5.4/sound/soc/codecs/
Dwm8958-dsp2.c42 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_dsp2_fw() local
51 if (wm8994->cur_fw == fw) in wm8958_dsp2_fw()
153 wm8994_bulk_write(wm8994->wm8994, in wm8958_dsp2_fw()
174 wm8994->cur_fw = fw; in wm8958_dsp2_fw()
194 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_dsp_start_mbc() local
195 struct wm8994 *control = wm8994->wm8994; in wm8958_dsp_start_mbc()
203 if (wm8994->mbc) in wm8958_dsp_start_mbc()
204 wm8958_dsp2_fw(component, "MBC", wm8994->mbc, false); in wm8958_dsp_start_mbc()
212 = &control->pdata.mbc_cfgs[wm8994->mbc_cfg]; in wm8958_dsp_start_mbc()
238 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_dsp_start_vss() local
[all …]
Dwm8994.c107 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_micd_set_rate() local
108 struct wm8994 *control = wm8994->wm8994; in wm8958_micd_set_rate()
114 idle = !wm8994->jack_mic; in wm8958_micd_set_rate()
118 sysclk = wm8994->aifclk[1]; in wm8958_micd_set_rate()
120 sysclk = wm8994->aifclk[0]; in wm8958_micd_set_rate()
125 } else if (wm8994->jackdet) { in wm8958_micd_set_rate()
158 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in configure_aif_clock() local
168 switch (wm8994->sysclk[aif]) { in configure_aif_clock()
170 rate = wm8994->mclk[0]; in configure_aif_clock()
175 rate = wm8994->mclk[1]; in configure_aif_clock()
[all …]
Dwm8994.h71 struct wm8994;
75 struct wm8994 *wm8994; member
DMakefile266 snd-soc-wm8994-objs := wm8994.o wm8958-dsp2.o
548 obj-$(CONFIG_SND_SOC_WM8994) += snd-soc-wm8994.o
/Linux-v5.4/include/linux/mfd/wm8994/
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-v5.4/drivers/gpio/
Dgpio-wm8994.c26 struct wm8994 *wm8994; member
33 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_request() local
35 switch (wm8994->type) { in wm8994_gpio_request()
56 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_direction_in() local
58 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_direction_in()
65 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_get() local
68 ret = wm8994_reg_read(wm8994, WM8994_GPIO_1 + offset); in wm8994_gpio_get()
82 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_direction_out() local
87 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_direction_out()
94 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_set() local
[all …]
DMakefile161 obj-$(CONFIG_GPIO_WM8994) += gpio-wm8994.o
/Linux-v5.4/drivers/regulator/
Dwm8994-regulator.c26 struct wm8994 *wm8994; member
49 switch (ldo->wm8994->type) { in wm8994_ldo2_list_voltage()
122 struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent); in wm8994_ldo_probe() local
123 struct wm8994_pdata *pdata = dev_get_platdata(wm8994->dev); in wm8994_ldo_probe()
136 ldo->wm8994 = wm8994; in wm8994_ldo_probe()
138 ldo->supply.dev_name = dev_name(wm8994->dev); in wm8994_ldo_probe()
140 config.dev = wm8994->dev; in wm8994_ldo_probe()
142 config.regmap = wm8994->regmap; in wm8994_ldo_probe()
158 if (!pdata || !pdata->ldo[id].init_data || wm8994->dev->of_node) { in wm8994_ldo_probe()
159 dev_dbg(wm8994->dev, "Using default init data, supply %s %s\n", in wm8994_ldo_probe()
[all …]
DMakefile140 obj-$(CONFIG_REGULATOR_WM8994) += wm8994-regulator.o
/Linux-v5.4/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".
67 wm8994: codec@1a {
68 compatible = "wlf,wm8994";
/Linux-v5.4/sound/soc/pxa/
Dbrownstone.c76 SND_SOC_DAILINK_DEFS(wm8994,
88 SND_SOC_DAILINK_REG(wm8994),
/Linux-v5.4/arch/arm/boot/dts/
Dexynos5250-smdk5250.dts56 compatible = "samsung,smdk-wm8994";
59 samsung,audio-codec = <&wm8994>;
291 wm8994: wm8994@1a { label
292 compatible = "wlf,wm8994";
/Linux-v5.4/Documentation/devicetree/bindings/i2c/
Di2c-s3c2410.txt54 wm8994@1a {
55 compatible = "wlf,wm8994";
/Linux-v5.4/sound/soc/samsung/
DMakefile31 snd-soc-smdk-wm8994-objs := smdk_wm8994.o
54 obj-$(CONFIG_SND_SOC_SAMSUNG_SMDK_WM8994) += snd-soc-smdk-wm8994.o
/Linux-v5.4/include/
DKbuild354 header-test- += linux/mfd/wm8994/core.h
355 header-test- += linux/mfd/wm8994/pdata.h