/Linux-v6.6/drivers/mfd/ |
D | wm8994-core.c | 115 struct wm8994 *wm8994 = dev_get_drvdata(dev); in wm8994_suspend() local 120 switch (wm8994->type) { in wm8994_suspend() 123 ret = wm8994_reg_read(wm8994, WM8958_MIC_DETECT_1); in wm8994_suspend() 137 if (!wm8994->ldo_ena_always_driven) in wm8994_suspend() 138 wm8994_set_bits(wm8994, WM8994_PULL_CONTROL_2, in wm8994_suspend() 145 wm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET, in wm8994_suspend() 146 wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET)); in wm8994_suspend() 148 regcache_mark_dirty(wm8994->regmap); in wm8994_suspend() 153 ret = regcache_sync_region(wm8994->regmap, WM8994_GPIO_1, in wm8994_suspend() 159 ret = regcache_sync_region(wm8994->regmap, in wm8994_suspend() [all …]
|
D | wm8994-irq.c | 154 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 …]
|
D | wm8994-regmap.c | 1194 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()
|
D | Makefile | 67 wm8994-objs := wm8994-core.o wm8994-irq.o wm8994-regmap.o 68 obj-$(CONFIG_MFD_WM8994) += wm8994.o
|
/Linux-v6.6/sound/soc/codecs/ |
D | wm8958-dsp2.c | 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->cur_fw = fw; in wm8958_dsp2_fw() 190 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_dsp_start_mbc() local 191 struct wm8994 *control = wm8994->wm8994; in wm8958_dsp_start_mbc() 199 if (wm8994->mbc) in wm8958_dsp_start_mbc() 200 wm8958_dsp2_fw(component, "MBC", wm8994->mbc, false); in wm8958_dsp_start_mbc() 208 = &control->pdata.mbc_cfgs[wm8994->mbc_cfg]; in wm8958_dsp_start_mbc() 234 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_dsp_start_vss() local [all …]
|
D | wm8994.c | 113 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_micd_set_rate() local 114 struct wm8994 *control = wm8994->wm8994; in wm8958_micd_set_rate() 120 idle = !wm8994->jack_mic; in wm8958_micd_set_rate() 124 sysclk = wm8994->aifclk[1]; in wm8958_micd_set_rate() 126 sysclk = wm8994->aifclk[0]; in wm8958_micd_set_rate() 131 } else if (wm8994->jackdet) { in wm8958_micd_set_rate() 164 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in configure_aif_clock() local 174 switch (wm8994->sysclk[aif]) { in configure_aif_clock() 176 rate = wm8994->mclk_rate[0]; in configure_aif_clock() 181 rate = wm8994->mclk_rate[1]; in configure_aif_clock() [all …]
|
D | wm8994.h | 78 struct wm8994; 82 struct wm8994 *wm8994; member
|
D | Makefile | 361 snd-soc-wm8994-objs := wm8994.o wm8958-dsp2.o 746 obj-$(CONFIG_SND_SOC_WM8994) += snd-soc-wm8994.o
|
/Linux-v6.6/include/linux/mfd/wm8994/ |
D | core.h | 53 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-v6.6/drivers/gpio/ |
D | gpio-wm8994.c | 26 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 …]
|
D | Makefile | 187 obj-$(CONFIG_GPIO_WM8994) += gpio-wm8994.o
|
/Linux-v6.6/drivers/regulator/ |
D | wm8994-regulator.c | 26 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 …]
|
D | Makefile | 197 obj-$(CONFIG_REGULATOR_WM8994) += wm8994-regulator.o
|
/Linux-v6.6/sound/soc/samsung/ |
D | Makefile | 16 snd-soc-smdk-wm8994-objs := smdk_wm8994.o 28 snd-soc-aries-wm8994-objs := 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-v6.6/arch/arm/boot/dts/samsung/ |
D | exynos5250-smdk5250.dts | 59 compatible = "samsung,smdk-wm8994"; 62 samsung,audio-codec = <&wm8994>; 298 wm8994: audio-codec@1a { label 299 compatible = "wlf,wm8994";
|
D | s5pv210-fascinate4g.dts | 61 compatible = "samsung,fascinate4g-wm8994"; 110 sound-dai = <&wm8994>; 399 &wm8994 {
|
D | s5pv210-galaxys.dts | 88 compatible = "samsung,aries-wm8994"; 140 sound-dai = <&wm8994>;
|
D | s5pv210-aries.dtsi | 116 wm8994: audio-codec@1a { label 117 compatible = "wlf,wm8994";
|