Lines Matching +full:vd +full:- +full:supply
1 // SPDX-License-Identifier: GPL-2.0-only
4 * Asahi Kasei AK5386 Single-ended 24-Bit 192kHz delta-sigma ADC
19 "va", "vd"
40 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_probe()
46 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_remove()
53 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_suspend()
60 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_resume()
84 struct snd_soc_component *component = codec_dai->component; in ak5386_set_dai_fmt()
89 dev_err(component->dev, "Invalid DAI format\n"); in ak5386_set_dai_fmt()
90 return -EINVAL; in ak5386_set_dai_fmt()
100 struct snd_soc_component *component = dai->component; in ak5386_hw_params()
110 * the AK5386 in power-down mode (PDN pin = “L”). in ak5386_hw_params()
113 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_params()
114 gpio_set_value(priv->reset_gpio, 1); in ak5386_hw_params()
122 struct snd_soc_component *component = dai->component; in ak5386_hw_free()
125 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_free()
126 gpio_set_value(priv->reset_gpio, 0); in ak5386_hw_free()
138 .name = "ak5386-hifi",
154 { .compatible = "asahi-kasei,ak5386", },
162 struct device *dev = &pdev->dev; in ak5386_probe()
168 return -ENOMEM; in ak5386_probe()
173 priv->supplies[i].supply = supply_names[i]; in ak5386_probe()
175 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(priv->supplies), in ak5386_probe()
176 priv->supplies); in ak5386_probe()
180 priv->reset_gpio = of_get_named_gpio(dev->of_node, in ak5386_probe()
181 "reset-gpio", 0); in ak5386_probe()
183 if (gpio_is_valid(priv->reset_gpio)) in ak5386_probe()
184 if (devm_gpio_request_one(dev, priv->reset_gpio, in ak5386_probe()
187 priv->reset_gpio = -EINVAL; in ak5386_probe()