Lines Matching +full:vcca +full:- +full:supply
1 // SPDX-License-Identifier: GPL-2.0
18 "VCCA",
51 ret = regulator_bulk_enable(ARRAY_SIZE(bd->supplies), bd->supplies); in bd28623_power_on()
53 dev_err(bd->dev, "Failed to enable supplies: %d\n", ret); in bd28623_power_on()
57 gpiod_set_value_cansleep(bd->reset_gpio, 0); in bd28623_power_on()
65 gpiod_set_value_cansleep(bd->reset_gpio, 1); in bd28623_power_off()
67 regulator_bulk_disable(ARRAY_SIZE(bd->supplies), bd->supplies); in bd28623_power_off()
77 ucontrol->value.integer.value[0] = bd->switch_spk; in bd28623_get_switch_spk()
89 if (bd->switch_spk == ucontrol->value.integer.value[0]) in bd28623_set_switch_spk()
92 bd->switch_spk = ucontrol->value.integer.value[0]; in bd28623_set_switch_spk()
94 gpiod_set_value_cansleep(bd->mute_gpio, bd->switch_spk ? 0 : 1); in bd28623_set_switch_spk()
109 bd->switch_spk = 1; in bd28623_codec_probe()
115 gpiod_set_value_cansleep(bd->mute_gpio, bd->switch_spk ? 0 : 1); in bd28623_codec_probe()
145 gpiod_set_value_cansleep(bd->mute_gpio, bd->switch_spk ? 0 : 1); in bd28623_codec_resume()
168 .name = "bd28623-speaker",
185 struct device *dev = &pdev->dev; in bd28623_probe()
188 bd = devm_kzalloc(&pdev->dev, sizeof(struct bd28623_priv), GFP_KERNEL); in bd28623_probe()
190 return -ENOMEM; in bd28623_probe()
192 for (i = 0; i < ARRAY_SIZE(bd->supplies); i++) in bd28623_probe()
193 bd->supplies[i].supply = bd28623_supply_names[i]; in bd28623_probe()
195 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(bd->supplies), in bd28623_probe()
196 bd->supplies); in bd28623_probe()
202 bd->reset_gpio = devm_gpiod_get_optional(dev, "reset", in bd28623_probe()
204 if (IS_ERR(bd->reset_gpio)) { in bd28623_probe()
206 PTR_ERR(bd->reset_gpio)); in bd28623_probe()
207 return PTR_ERR(bd->reset_gpio); in bd28623_probe()
210 bd->mute_gpio = devm_gpiod_get_optional(dev, "mute", in bd28623_probe()
212 if (IS_ERR(bd->mute_gpio)) { in bd28623_probe()
214 PTR_ERR(bd->mute_gpio)); in bd28623_probe()
215 return PTR_ERR(bd->mute_gpio); in bd28623_probe()
219 bd->dev = dev; in bd28623_probe()