Lines Matching +full:power +full:- +full:supplies
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * simple, strap-pin configured 24bit 2ch ADC
26 /* regulator power supply names */
28 "Vdda", /* analog supply, 2.7V - 3.6V */
29 "Vdd", /* digital supply, 2.7V - 5.5V */
33 struct regulator_bulk_data supplies[ARRAY_SIZE(supply_names)]; member
39 struct snd_pcm_runtime *runtime = sub->runtime; in wm8782_dai_startup()
41 snd_soc_component_get_drvdata(dai->component); in wm8782_dai_startup()
44 8000, priv->max_rate); in wm8782_dai_startup()
78 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_probe()
84 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_remove()
91 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_suspend()
98 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_resume()
121 struct device *dev = &pdev->dev; in wm8782_probe()
122 struct device_node *np = dev->of_node; in wm8782_probe()
128 return -ENOMEM; in wm8782_probe()
133 priv->supplies[i].supply = supply_names[i]; in wm8782_probe()
135 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(priv->supplies), in wm8782_probe()
136 priv->supplies); in wm8782_probe()
148 priv->max_rate = 48000; in wm8782_probe()
151 priv->max_rate = 96000; in wm8782_probe()
154 priv->max_rate = 192000; in wm8782_probe()
158 return -EINVAL; in wm8782_probe()
161 return devm_snd_soc_register_component(&pdev->dev, in wm8782_probe()