Lines Matching defs:tse850
65 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
67 ucontrol->value.enumerated.item[0] = tse850->loop1_cache;
77 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
84 gpiod_set_value_cansleep(tse850->loop1, val);
85 tse850->loop1_cache = val;
95 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
97 ucontrol->value.enumerated.item[0] = tse850->loop2_cache;
107 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
114 gpiod_set_value_cansleep(tse850->loop2, val);
115 tse850->loop2_cache = val;
125 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
127 ucontrol->value.enumerated.item[0] = tse850->add_cache;
137 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
140 if (tse850->add_cache == connect)
147 gpiod_set_value_cansleep(tse850->add, connect);
148 tse850->add_cache = connect;
159 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
162 ret = regulator_get_voltage(tse850->ana);
192 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
214 ret = regulator_set_voltage(tse850->ana, uV, uV);
358 struct tse850_priv *tse850;
361 tse850 = devm_kzalloc(dev, sizeof(*tse850), GFP_KERNEL);
362 if (!tse850)
365 snd_soc_card_set_drvdata(card, tse850);
373 tse850->add = devm_gpiod_get(dev, "axentia,add", GPIOD_OUT_HIGH);
374 if (IS_ERR(tse850->add)) {
375 if (PTR_ERR(tse850->add) != -EPROBE_DEFER)
377 return PTR_ERR(tse850->add);
379 tse850->add_cache = 1;
381 tse850->loop1 = devm_gpiod_get(dev, "axentia,loop1", GPIOD_OUT_HIGH);
382 if (IS_ERR(tse850->loop1)) {
383 if (PTR_ERR(tse850->loop1) != -EPROBE_DEFER)
385 return PTR_ERR(tse850->loop1);
387 tse850->loop1_cache = 1;
389 tse850->loop2 = devm_gpiod_get(dev, "axentia,loop2", GPIOD_OUT_HIGH);
390 if (IS_ERR(tse850->loop2)) {
391 if (PTR_ERR(tse850->loop2) != -EPROBE_DEFER)
393 return PTR_ERR(tse850->loop2);
395 tse850->loop2_cache = 1;
397 tse850->ana = devm_regulator_get(dev, "axentia,ana");
398 if (IS_ERR(tse850->ana)) {
399 if (PTR_ERR(tse850->ana) != -EPROBE_DEFER)
401 return PTR_ERR(tse850->ana);
404 ret = regulator_enable(tse850->ana);
419 regulator_disable(tse850->ana);
426 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
429 regulator_disable(tse850->ana);
435 { .compatible = "axentia,tse850-pcm5142", },
442 .name = "axentia-tse850-pcm5142",