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