Lines Matching refs:tfa989x
59 struct tfa989x {
109 struct tfa989x *tfa989x = snd_soc_component_get_drvdata(component);
111 gpiod_set_value_cansleep(tfa989x->rcv_gpiod, ucontrol->value.enumerated.item[0]);
124 struct tfa989x *tfa989x = snd_soc_component_get_drvdata(component);
126 if (tfa989x->rev->rev == TFA9897_REVISION)
179 .name = "tfa989x-hifi",
312 struct tfa989x *tfa989x = data;
314 regulator_disable(tfa989x->vddd_supply);
321 struct tfa989x *tfa989x;
332 tfa989x = devm_kzalloc(dev, sizeof(*tfa989x), GFP_KERNEL);
333 if (!tfa989x)
336 tfa989x->rev = rev;
337 i2c_set_clientdata(i2c, tfa989x);
339 tfa989x->vddd_supply = devm_regulator_get(dev, "vddd");
340 if (IS_ERR(tfa989x->vddd_supply))
341 return dev_err_probe(dev, PTR_ERR(tfa989x->vddd_supply),
344 if (tfa989x->rev->rev == TFA9897_REVISION) {
345 tfa989x->rcv_gpiod = devm_gpiod_get_optional(dev, "rcv", GPIOD_OUT_LOW);
346 if (IS_ERR(tfa989x->rcv_gpiod))
347 return PTR_ERR(tfa989x->rcv_gpiod);
354 ret = regulator_enable(tfa989x->vddd_supply);
360 ret = devm_add_action_or_reset(dev, tfa989x_regulator_disable, tfa989x);
416 .name = "tfa989x",