Home
last modified time | relevance | path

Searched refs:reset_gpio (Results 1 – 25 of 26) sorted by relevance

12

/sound/arm/
Dpxa2xx-ac97-lib.c32 static int reset_gpio; variable
34 extern void pxa27x_configure_ac97reset(int reset_gpio, bool to_gpio);
143 pxa27x_configure_ac97reset(reset_gpio, true); in pxa_ac97_warm_pxa27x()
146 pxa27x_configure_ac97reset(reset_gpio, false); in pxa_ac97_warm_pxa27x()
324 switch (pdata->reset_gpio) { in pxa2xx_ac97_hw_probe()
327 reset_gpio = pdata->reset_gpio; in pxa2xx_ac97_hw_probe()
330 reset_gpio = 113; in pxa2xx_ac97_hw_probe()
336 pdata->reset_gpio); in pxa2xx_ac97_hw_probe()
342 pdata->reset_gpio = of_get_named_gpio(dev->dev.of_node, in pxa2xx_ac97_hw_probe()
344 if (pdata->reset_gpio == -ENOENT) in pxa2xx_ac97_hw_probe()
[all …]
/sound/soc/codecs/
Dak5386.c24 int reset_gpio; member
115 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_params()
116 gpio_set_value(priv->reset_gpio, 1); in ak5386_hw_params()
127 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_free()
128 gpio_set_value(priv->reset_gpio, 0); in ak5386_hw_free()
172 priv->reset_gpio = -EINVAL; in ak5386_probe()
184 priv->reset_gpio = of_get_named_gpio(dev->of_node, in ak5386_probe()
187 if (gpio_is_valid(priv->reset_gpio)) in ak5386_probe()
188 if (devm_gpio_request_one(dev, priv->reset_gpio, in ak5386_probe()
191 priv->reset_gpio = -EINVAL; in ak5386_probe()
Dbd28623.c26 struct gpio_desc *reset_gpio; member
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()
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()
Dcs4349.c46 struct gpio_desc *reset_gpio; member
298 cs4349->reset_gpio = devm_gpiod_get_optional(&client->dev, in cs4349_i2c_probe()
300 if (IS_ERR(cs4349->reset_gpio)) in cs4349_i2c_probe()
301 return PTR_ERR(cs4349->reset_gpio); in cs4349_i2c_probe()
303 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_i2c_probe()
317 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_i2c_remove()
335 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_runtime_suspend()
349 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_runtime_resume()
Dcs35l32.c45 struct gpio_desc *reset_gpio; member
405 cs35l32->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs35l32_i2c_probe()
407 if (IS_ERR(cs35l32->reset_gpio)) in cs35l32_i2c_probe()
408 return PTR_ERR(cs35l32->reset_gpio); in cs35l32_i2c_probe()
410 gpiod_set_value_cansleep(cs35l32->reset_gpio, 1); in cs35l32_i2c_probe()
502 gpiod_set_value_cansleep(cs35l32->reset_gpio, 0); in cs35l32_i2c_remove()
516 gpiod_set_value_cansleep(cs35l32->reset_gpio, 0); in cs35l32_runtime_suspend()
539 gpiod_set_value_cansleep(cs35l32->reset_gpio, 1); in cs35l32_runtime_resume()
Dmax98373.c907 max98373->reset_gpio = of_get_named_gpio(dev->of_node, in max98373_slot_config()
909 if (!gpio_is_valid(max98373->reset_gpio)) { in max98373_slot_config()
912 max98373->reset_gpio); in max98373_slot_config()
915 max98373->reset_gpio); in max98373_slot_config()
919 max98373->reset_gpio = -1; in max98373_slot_config()
964 if (gpio_is_valid(max98373->reset_gpio)) { in max98373_i2c_probe()
965 ret = devm_gpio_request(&i2c->dev, max98373->reset_gpio, in max98373_i2c_probe()
969 __func__, max98373->reset_gpio); in max98373_i2c_probe()
972 gpio_direction_output(max98373->reset_gpio, 0); in max98373_i2c_probe()
974 gpio_direction_output(max98373->reset_gpio, 1); in max98373_i2c_probe()
Dcs4265.c32 struct gpio_desc *reset_gpio; member
590 cs4265->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs4265_i2c_probe()
592 if (IS_ERR(cs4265->reset_gpio)) in cs4265_i2c_probe()
593 return PTR_ERR(cs4265->reset_gpio); in cs4265_i2c_probe()
595 if (cs4265->reset_gpio) { in cs4265_i2c_probe()
597 gpiod_set_value_cansleep(cs4265->reset_gpio, 1); in cs4265_i2c_probe()
Dcs42l51.c50 struct gpio_desc *reset_gpio; member
741 cs42l51->reset_gpio = devm_gpiod_get_optional(dev, "reset", in cs42l51_probe()
743 if (IS_ERR(cs42l51->reset_gpio)) in cs42l51_probe()
744 return PTR_ERR(cs42l51->reset_gpio); in cs42l51_probe()
746 if (cs42l51->reset_gpio) { in cs42l51_probe()
748 gpiod_set_value_cansleep(cs42l51->reset_gpio, 0); in cs42l51_probe()
786 gpiod_set_value_cansleep(cs42l51->reset_gpio, 1); in cs42l51_remove()
Dtas571x.c51 struct gpio_desc *reset_gpio; member
835 priv->reset_gpio = devm_gpiod_get_optional(dev, "reset", in tas571x_i2c_probe()
837 if (IS_ERR(priv->reset_gpio)) { in tas571x_i2c_probe()
839 PTR_ERR(priv->reset_gpio)); in tas571x_i2c_probe()
840 return PTR_ERR(priv->reset_gpio); in tas571x_i2c_probe()
841 } else if (priv->reset_gpio) { in tas571x_i2c_probe()
844 gpiod_set_value(priv->reset_gpio, 0); in tas571x_i2c_probe()
Dadau1977.c115 struct gpio_desc *reset_gpio; member
390 gpiod_set_value_cansleep(adau1977->reset_gpio, 0); in adau1977_power_disable()
421 gpiod_set_value_cansleep(adau1977->reset_gpio, 1); in adau1977_power_enable()
937 adau1977->reset_gpio = devm_gpiod_get_optional(dev, "reset", in adau1977_probe()
939 if (IS_ERR(adau1977->reset_gpio)) in adau1977_probe()
940 return PTR_ERR(adau1977->reset_gpio); in adau1977_probe()
944 if (adau1977->reset_gpio) in adau1977_probe()
Dcs53l30.c33 struct gpio_desc *reset_gpio; member
950 cs53l30->reset_gpio = devm_gpiod_get_optional(dev, "reset", in cs53l30_i2c_probe()
952 if (IS_ERR(cs53l30->reset_gpio)) { in cs53l30_i2c_probe()
953 ret = PTR_ERR(cs53l30->reset_gpio); in cs53l30_i2c_probe()
957 gpiod_set_value_cansleep(cs53l30->reset_gpio, 1); in cs53l30_i2c_probe()
1050 gpiod_set_value_cansleep(cs53l30->reset_gpio, 0); in cs53l30_i2c_remove()
1066 gpiod_set_value_cansleep(cs53l30->reset_gpio, 0); in cs53l30_runtime_suspend()
1086 gpiod_set_value_cansleep(cs53l30->reset_gpio, 1); in cs53l30_runtime_resume()
Dcs35l34.c47 struct gpio_desc *reset_gpio; /* Active-low reset GPIO */ member
1058 cs35l34->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs35l34_i2c_probe()
1060 if (IS_ERR(cs35l34->reset_gpio)) in cs35l34_i2c_probe()
1061 return PTR_ERR(cs35l34->reset_gpio); in cs35l34_i2c_probe()
1063 gpiod_set_value_cansleep(cs35l34->reset_gpio, 1); in cs35l34_i2c_probe()
1127 gpiod_set_value_cansleep(cs35l34->reset_gpio, 0); in cs35l34_i2c_remove()
1152 gpiod_set_value_cansleep(cs35l34->reset_gpio, 1); in cs35l34_runtime_resume()
1176 gpiod_set_value_cansleep(cs35l34->reset_gpio, 0); in cs35l34_runtime_suspend()
Dcs35l33.c42 struct gpio_desc *reset_gpio; member
865 gpiod_set_value_cansleep(cs35l33->reset_gpio, 0); in cs35l33_runtime_resume()
876 gpiod_set_value_cansleep(cs35l33->reset_gpio, 1); in cs35l33_runtime_resume()
1168 cs35l33->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs35l33_i2c_probe()
1170 if (IS_ERR(cs35l33->reset_gpio)) { in cs35l33_i2c_probe()
1173 return PTR_ERR(cs35l33->reset_gpio); in cs35l33_i2c_probe()
1185 gpiod_set_value_cansleep(cs35l33->reset_gpio, 1); in cs35l33_i2c_probe()
1254 gpiod_set_value_cansleep(cs35l33->reset_gpio, 0); in cs35l33_i2c_remove()
Dcs35l36.c58 struct gpio_desc *reset_gpio; member
1764 cs35l36->reset_gpio = devm_gpiod_get_optional(dev, "reset", in cs35l36_i2c_probe()
1766 if (IS_ERR(cs35l36->reset_gpio)) { in cs35l36_i2c_probe()
1767 ret = PTR_ERR(cs35l36->reset_gpio); in cs35l36_i2c_probe()
1768 cs35l36->reset_gpio = NULL; in cs35l36_i2c_probe()
1777 if (cs35l36->reset_gpio) in cs35l36_i2c_probe()
1778 gpiod_set_value_cansleep(cs35l36->reset_gpio, 1); in cs35l36_i2c_probe()
1908 gpiod_set_value_cansleep(cs35l36->reset_gpio, 0); in cs35l36_i2c_probe()
1925 if (cs35l36->reset_gpio) in cs35l36_i2c_remove()
1926 gpiod_set_value_cansleep(cs35l36->reset_gpio, 0); in cs35l36_i2c_remove()
Dcs42l73.c1307 pdata->reset_gpio = of_get_named_gpio(i2c_client->dev.of_node, in cs42l73_i2c_probe()
1314 if (cs42l73->pdata.reset_gpio) { in cs42l73_i2c_probe()
1316 cs42l73->pdata.reset_gpio, in cs42l73_i2c_probe()
1321 cs42l73->pdata.reset_gpio, ret); in cs42l73_i2c_probe()
1324 gpio_set_value_cansleep(cs42l73->pdata.reset_gpio, 0); in cs42l73_i2c_probe()
1325 gpio_set_value_cansleep(cs42l73->pdata.reset_gpio, 1); in cs42l73_i2c_probe()
Dcs42l42.c1784 cs42l42->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs42l42_i2c_probe()
1786 if (IS_ERR(cs42l42->reset_gpio)) in cs42l42_i2c_probe()
1787 return PTR_ERR(cs42l42->reset_gpio); in cs42l42_i2c_probe()
1789 if (cs42l42->reset_gpio) { in cs42l42_i2c_probe()
1791 gpiod_set_value_cansleep(cs42l42->reset_gpio, 1); in cs42l42_i2c_probe()
1881 gpiod_set_value_cansleep(cs42l42->reset_gpio, 0); in cs42l42_i2c_remove()
1895 gpiod_set_value_cansleep(cs42l42->reset_gpio, 0); in cs42l42_runtime_suspend()
1918 gpiod_set_value_cansleep(cs42l42->reset_gpio, 1); in cs42l42_runtime_resume()
Dcs35l35.c163 gpiod_set_value_cansleep(cs35l35->reset_gpio, 0); in cs35l35_reset()
165 gpiod_set_value_cansleep(cs35l35->reset_gpio, 1); in cs35l35_reset()
1530 cs35l35->reset_gpio = devm_gpiod_get_optional(dev, "reset", in cs35l35_i2c_probe()
1532 if (IS_ERR(cs35l35->reset_gpio)) { in cs35l35_i2c_probe()
1533 ret = PTR_ERR(cs35l35->reset_gpio); in cs35l35_i2c_probe()
1534 cs35l35->reset_gpio = NULL; in cs35l35_i2c_probe()
1629 gpiod_set_value_cansleep(cs35l35->reset_gpio, 0); in cs35l35_i2c_probe()
1639 gpiod_set_value_cansleep(cs35l35->reset_gpio, 0); in cs35l35_i2c_remove()
Dcs42l52.c1136 pdata->reset_gpio = in cs42l52_i2c_probe()
1143 if (cs42l52->pdata.reset_gpio) { in cs42l52_i2c_probe()
1145 cs42l52->pdata.reset_gpio, in cs42l52_i2c_probe()
1150 cs42l52->pdata.reset_gpio, ret); in cs42l52_i2c_probe()
1153 gpio_set_value_cansleep(cs42l52->pdata.reset_gpio, 0); in cs42l52_i2c_probe()
1154 gpio_set_value_cansleep(cs42l52->pdata.reset_gpio, 1); in cs42l52_i2c_probe()
Dmax98373.h208 int reset_gpio; member
Dcs35l35.h287 struct gpio_desc *reset_gpio; member
Dcs43130.c2463 cs43130->reset_gpio = devm_gpiod_get_optional(&client->dev, in cs43130_i2c_probe()
2465 if (IS_ERR(cs43130->reset_gpio)) in cs43130_i2c_probe()
2466 return PTR_ERR(cs43130->reset_gpio); in cs43130_i2c_probe()
2468 gpiod_set_value_cansleep(cs43130->reset_gpio, 1); in cs43130_i2c_probe()
2604 gpiod_set_value_cansleep(cs43130->reset_gpio, 0); in cs43130_i2c_remove()
2624 gpiod_set_value_cansleep(cs43130->reset_gpio, 0); in cs43130_runtime_suspend()
2644 gpiod_set_value_cansleep(cs43130->reset_gpio, 1); in cs43130_runtime_resume()
Dcs43130.h505 struct gpio_desc *reset_gpio; member
Dwcd9335.c341 int reset_gpio; member
5030 wcd->reset_gpio = of_get_named_gpio(np, "reset-gpios", 0); in wcd9335_parse_dt()
5031 if (wcd->reset_gpio < 0) { in wcd9335_parse_dt()
5033 return wcd->reset_gpio; in wcd9335_parse_dt()
5083 gpio_direction_output(wcd->reset_gpio, 0); in wcd9335_power_on_reset()
5085 gpio_set_value(wcd->reset_gpio, 1); in wcd9335_power_on_reset()
/sound/soc/tegra/
Dtegra20_ac97.c43 gpio_set_value(workdata->reset_gpio, 0); in tegra20_ac97_codec_reset()
46 gpio_set_value(workdata->reset_gpio, 1); in tegra20_ac97_codec_reset()
339 ac97->reset_gpio = of_get_named_gpio(pdev->dev.of_node, in tegra20_ac97_platform_probe()
341 if (gpio_is_valid(ac97->reset_gpio)) { in tegra20_ac97_platform_probe()
342 ret = devm_gpio_request_one(&pdev->dev, ac97->reset_gpio, in tegra20_ac97_platform_probe()
Dtegra20_ac97.h82 int reset_gpio; member

12