Lines Matching +full:va +full:- +full:supply
1 // SPDX-License-Identifier: GPL-2.0-only
4 * Asahi Kasei AK5386 Single-ended 24-Bit 192kHz delta-sigma ADC
20 "va", "vd"
41 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_probe()
47 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_remove()
54 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_suspend()
61 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_resume()
86 struct snd_soc_component *component = codec_dai->component; in ak5386_set_dai_fmt()
91 dev_err(component->dev, "Invalid DAI format\n"); in ak5386_set_dai_fmt()
92 return -EINVAL; in ak5386_set_dai_fmt()
102 struct snd_soc_component *component = dai->component; in ak5386_hw_params()
112 * the AK5386 in power-down mode (PDN pin = “L”). in ak5386_hw_params()
115 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_params()
116 gpio_set_value(priv->reset_gpio, 1); in ak5386_hw_params()
124 struct snd_soc_component *component = dai->component; in ak5386_hw_free()
127 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_free()
128 gpio_set_value(priv->reset_gpio, 0); in ak5386_hw_free()
140 .name = "ak5386-hifi",
156 { .compatible = "asahi-kasei,ak5386", },
164 struct device *dev = &pdev->dev; in ak5386_probe()
170 return -ENOMEM; in ak5386_probe()
172 priv->reset_gpio = -EINVAL; in ak5386_probe()
176 priv->supplies[i].supply = supply_names[i]; in ak5386_probe()
178 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(priv->supplies), in ak5386_probe()
179 priv->supplies); in ak5386_probe()
184 priv->reset_gpio = of_get_named_gpio(dev->of_node, in ak5386_probe()
185 "reset-gpio", 0); in ak5386_probe()
187 if (gpio_is_valid(priv->reset_gpio)) in ak5386_probe()
188 if (devm_gpio_request_one(dev, priv->reset_gpio, in ak5386_probe()
191 priv->reset_gpio = -EINVAL; in ak5386_probe()