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
21 "va", "vd"
42 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_probe()
48 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_remove()
55 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_suspend()
62 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 gpiod_set_value(priv->reset_gpio, 1); in ak5386_hw_params()
123 struct snd_soc_component *component = dai->component; in ak5386_hw_free()
126 gpiod_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 = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); in ak5386_probe()
181 if (IS_ERR(priv->reset_gpio)) in ak5386_probe()
182 return dev_err_probe(dev, PTR_ERR(priv->reset_gpio), in ak5386_probe()
185 gpiod_set_consumer_name(priv->reset_gpio, "AK5386 Reset"); in ak5386_probe()