/sound/arm/ |
D | pxa2xx-ac97-lib.c | 33 static int reset_gpio; variable 36 extern void pxa27x_configure_ac97reset(int reset_gpio, bool to_gpio); 149 pxa27x_configure_ac97reset(reset_gpio, true); in pxa_ac97_warm_pxa27x() 152 pxa27x_configure_ac97reset(reset_gpio, false); in pxa_ac97_warm_pxa27x() 339 switch (pdata->reset_gpio) { in pxa2xx_ac97_hw_probe() 342 reset_gpio = pdata->reset_gpio; in pxa2xx_ac97_hw_probe() 345 reset_gpio = 113; in pxa2xx_ac97_hw_probe() 351 pdata->reset_gpio); in pxa2xx_ac97_hw_probe() 357 pdata->reset_gpio = of_get_named_gpio(dev->dev.of_node, in pxa2xx_ac97_hw_probe() 359 if (pdata->reset_gpio == -ENOENT) in pxa2xx_ac97_hw_probe() [all …]
|
/sound/soc/codecs/ |
D | ak5386.c | 24 int reset_gpio; member 114 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_params() 115 gpio_set_value(priv->reset_gpio, 1); in ak5386_hw_params() 126 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_free() 127 gpio_set_value(priv->reset_gpio, 0); in ak5386_hw_free() 171 priv->reset_gpio = -EINVAL; in ak5386_probe() 183 priv->reset_gpio = of_get_named_gpio(dev->of_node, in ak5386_probe() 186 if (gpio_is_valid(priv->reset_gpio)) in ak5386_probe() 187 if (devm_gpio_request_one(dev, priv->reset_gpio, in ak5386_probe() 190 priv->reset_gpio = -EINVAL; in ak5386_probe()
|
D | bd28623.c | 26 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() 201 bd->reset_gpio = devm_gpiod_get_optional(dev, "reset", in bd28623_probe() 203 if (IS_ERR(bd->reset_gpio)) { in bd28623_probe() 205 PTR_ERR(bd->reset_gpio)); in bd28623_probe() 206 return PTR_ERR(bd->reset_gpio); in bd28623_probe()
|
D | cs4349.c | 46 struct gpio_desc *reset_gpio; member 294 cs4349->reset_gpio = devm_gpiod_get_optional(&client->dev, in cs4349_i2c_probe() 296 if (IS_ERR(cs4349->reset_gpio)) in cs4349_i2c_probe() 297 return PTR_ERR(cs4349->reset_gpio); in cs4349_i2c_probe() 299 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_i2c_probe() 313 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_i2c_remove() 329 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_runtime_suspend() 343 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_runtime_resume()
|
D | cs35l32.c | 46 struct gpio_desc *reset_gpio; member 406 cs35l32->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs35l32_i2c_probe() 408 if (IS_ERR(cs35l32->reset_gpio)) { in cs35l32_i2c_probe() 409 ret = PTR_ERR(cs35l32->reset_gpio); in cs35l32_i2c_probe() 413 gpiod_set_value_cansleep(cs35l32->reset_gpio, 1); in cs35l32_i2c_probe() 493 gpiod_set_value_cansleep(cs35l32->reset_gpio, 0); in cs35l32_i2c_probe() 505 gpiod_set_value_cansleep(cs35l32->reset_gpio, 0); in cs35l32_i2c_remove() 517 gpiod_set_value_cansleep(cs35l32->reset_gpio, 0); in cs35l32_runtime_suspend() 540 gpiod_set_value_cansleep(cs35l32->reset_gpio, 1); in cs35l32_runtime_resume()
|
D | cs4265.c | 32 struct gpio_desc *reset_gpio; member 589 cs4265->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs4265_i2c_probe() 591 if (IS_ERR(cs4265->reset_gpio)) in cs4265_i2c_probe() 592 return PTR_ERR(cs4265->reset_gpio); in cs4265_i2c_probe() 594 if (cs4265->reset_gpio) { in cs4265_i2c_probe() 596 gpiod_set_value_cansleep(cs4265->reset_gpio, 1); in cs4265_i2c_probe() 630 if (cs4265->reset_gpio) in cs4265_i2c_remove() 631 gpiod_set_value_cansleep(cs4265->reset_gpio, 0); in cs4265_i2c_remove()
|
D | tas2780.c | 24 struct gpio_desc *reset_gpio; member 35 if (tas2780->reset_gpio) { in tas2780_reset() 36 gpiod_set_value_cansleep(tas2780->reset_gpio, 0); in tas2780_reset() 38 gpiod_set_value_cansleep(tas2780->reset_gpio, 1); in tas2780_reset() 572 tas2780->reset_gpio = devm_gpiod_get_optional(tas2780->dev, "reset", in tas2780_parse_dt() 574 if (IS_ERR(tas2780->reset_gpio)) { in tas2780_parse_dt() 575 if (PTR_ERR(tas2780->reset_gpio) == -EPROBE_DEFER) { in tas2780_parse_dt() 576 tas2780->reset_gpio = NULL; in tas2780_parse_dt()
|
D | cs4270.c | 133 struct gpio_desc *reset_gpio; member 657 gpiod_set_value_cansleep(cs4270->reset_gpio, 0); in cs4270_i2c_remove() 689 cs4270->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, "reset", in cs4270_i2c_probe() 691 if (IS_ERR(cs4270->reset_gpio)) { in cs4270_i2c_probe() 693 return PTR_ERR(cs4270->reset_gpio); in cs4270_i2c_probe() 696 if (cs4270->reset_gpio) { in cs4270_i2c_probe() 698 gpiod_set_value_cansleep(cs4270->reset_gpio, 1); in cs4270_i2c_probe()
|
D | tas2764.c | 30 struct gpio_desc *reset_gpio; member 96 if (tas2764->reset_gpio) { in tas2764_reset() 97 gpiod_set_value_cansleep(tas2764->reset_gpio, 0); in tas2764_reset() 99 gpiod_set_value_cansleep(tas2764->reset_gpio, 1); in tas2764_reset() 672 tas2764->reset_gpio = devm_gpiod_get_optional(tas2764->dev, "reset", in tas2764_parse_dt() 674 if (IS_ERR(tas2764->reset_gpio)) { in tas2764_parse_dt() 675 if (PTR_ERR(tas2764->reset_gpio) == -EPROBE_DEFER) { in tas2764_parse_dt() 676 tas2764->reset_gpio = NULL; in tas2764_parse_dt()
|
D | cs35l45.c | 629 cs35l45->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); in cs35l45_probe() 630 if (IS_ERR(cs35l45->reset_gpio)) { in cs35l45_probe() 631 ret = PTR_ERR(cs35l45->reset_gpio); in cs35l45_probe() 632 cs35l45->reset_gpio = NULL; in cs35l45_probe() 641 if (cs35l45->reset_gpio) { in cs35l45_probe() 643 gpiod_set_value_cansleep(cs35l45->reset_gpio, 1); in cs35l45_probe() 661 gpiod_set_value_cansleep(cs35l45->reset_gpio, 0); in cs35l45_probe() 674 gpiod_set_value_cansleep(cs35l45->reset_gpio, 0); in cs35l45_remove()
|
D | tas2770.c | 37 if (tas2770->reset_gpio) { in tas2770_reset() 38 gpiod_set_value_cansleep(tas2770->reset_gpio, 0); in tas2770_reset() 40 gpiod_set_value_cansleep(tas2770->reset_gpio, 1); in tas2770_reset() 688 tas2770->reset_gpio = devm_gpiod_get_optional(tas2770->dev, "reset", in tas2770_i2c_probe() 690 if (IS_ERR(tas2770->reset_gpio)) { in tas2770_i2c_probe() 691 if (PTR_ERR(tas2770->reset_gpio) == -EPROBE_DEFER) { in tas2770_i2c_probe() 692 tas2770->reset_gpio = NULL; in tas2770_i2c_probe()
|
D | max98373.c | 482 max98373->reset_gpio = of_get_named_gpio(dev->of_node, in max98373_slot_config() 484 if (!gpio_is_valid(max98373->reset_gpio)) { in max98373_slot_config() 487 max98373->reset_gpio); in max98373_slot_config() 490 max98373->reset_gpio); in max98373_slot_config() 494 max98373->reset_gpio = -1; in max98373_slot_config()
|
D | zl38060.c | 552 struct gpio_desc *reset_gpio; in zl38_spi_probe() local 556 reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); in zl38_spi_probe() 557 if (IS_ERR(reset_gpio)) in zl38_spi_probe() 558 return PTR_ERR(reset_gpio); in zl38_spi_probe() 559 if (reset_gpio) { in zl38_spi_probe() 563 gpiod_set_value_cansleep(reset_gpio, 0); in zl38_spi_probe()
|
D | cs42l51.c | 50 struct gpio_desc *reset_gpio; member 751 cs42l51->reset_gpio = devm_gpiod_get_optional(dev, "reset", in cs42l51_probe() 753 if (IS_ERR(cs42l51->reset_gpio)) in cs42l51_probe() 754 return PTR_ERR(cs42l51->reset_gpio); in cs42l51_probe() 756 if (cs42l51->reset_gpio) { in cs42l51_probe() 758 gpiod_set_value_cansleep(cs42l51->reset_gpio, 0); in cs42l51_probe() 797 gpiod_set_value_cansleep(cs42l51->reset_gpio, 1); in cs42l51_remove()
|
D | max98520.c | 675 if (max98520->reset_gpio) in max98520_power_on() 676 gpiod_set_value_cansleep(max98520->reset_gpio, !poweron); in max98520_power_on() 708 max98520->reset_gpio = devm_gpiod_get_optional(&i2c->dev, "reset", GPIOD_OUT_HIGH); in max98520_i2c_probe() 709 if (max98520->reset_gpio) { in max98520_i2c_probe() 710 if (IS_ERR(max98520->reset_gpio)) { in max98520_i2c_probe() 711 ret = PTR_ERR(max98520->reset_gpio); in max98520_i2c_probe()
|
D | max98927.c | 901 max98927->reset_gpio in max98927_i2c_probe() 903 if (IS_ERR(max98927->reset_gpio)) { in max98927_i2c_probe() 904 ret = PTR_ERR(max98927->reset_gpio); in max98927_i2c_probe() 908 if (max98927->reset_gpio) { in max98927_i2c_probe() 909 gpiod_set_value_cansleep(max98927->reset_gpio, 0); in max98927_i2c_probe() 941 if (max98927->reset_gpio) { in max98927_i2c_remove() 942 gpiod_set_value_cansleep(max98927->reset_gpio, 1); in max98927_i2c_remove()
|
D | adau1977.c | 116 struct gpio_desc *reset_gpio; member 389 gpiod_set_value_cansleep(adau1977->reset_gpio, 0); in adau1977_power_disable() 420 gpiod_set_value_cansleep(adau1977->reset_gpio, 1); in adau1977_power_enable() 932 adau1977->reset_gpio = devm_gpiod_get_optional(dev, "reset", in adau1977_probe() 934 if (IS_ERR(adau1977->reset_gpio)) in adau1977_probe() 935 return PTR_ERR(adau1977->reset_gpio); in adau1977_probe() 939 if (adau1977->reset_gpio) in adau1977_probe()
|
D | cs53l30.c | 34 struct gpio_desc *reset_gpio; member 951 cs53l30->reset_gpio = devm_gpiod_get_optional(dev, "reset", in cs53l30_i2c_probe() 953 if (IS_ERR(cs53l30->reset_gpio)) { in cs53l30_i2c_probe() 954 ret = PTR_ERR(cs53l30->reset_gpio); in cs53l30_i2c_probe() 958 gpiod_set_value_cansleep(cs53l30->reset_gpio, 1); in cs53l30_i2c_probe() 1039 gpiod_set_value_cansleep(cs53l30->reset_gpio, 0); in cs53l30_i2c_probe() 1051 gpiod_set_value_cansleep(cs53l30->reset_gpio, 0); in cs53l30_i2c_remove() 1065 gpiod_set_value_cansleep(cs53l30->reset_gpio, 0); in cs53l30_runtime_suspend() 1085 gpiod_set_value_cansleep(cs53l30->reset_gpio, 1); in cs53l30_runtime_resume()
|
D | max98373-i2c.c | 564 if (gpio_is_valid(max98373->reset_gpio)) { in max98373_i2c_probe() 565 ret = devm_gpio_request(&i2c->dev, max98373->reset_gpio, in max98373_i2c_probe() 569 __func__, max98373->reset_gpio); in max98373_i2c_probe() 572 gpio_direction_output(max98373->reset_gpio, 0); in max98373_i2c_probe() 574 gpio_direction_output(max98373->reset_gpio, 1); in max98373_i2c_probe()
|
D | cs35l34.c | 48 struct gpio_desc *reset_gpio; /* Active-low reset GPIO */ member 1061 cs35l34->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs35l34_i2c_probe() 1063 if (IS_ERR(cs35l34->reset_gpio)) { in cs35l34_i2c_probe() 1064 ret = PTR_ERR(cs35l34->reset_gpio); in cs35l34_i2c_probe() 1068 gpiod_set_value_cansleep(cs35l34->reset_gpio, 1); in cs35l34_i2c_probe() 1121 gpiod_set_value_cansleep(cs35l34->reset_gpio, 0); in cs35l34_i2c_probe() 1133 gpiod_set_value_cansleep(cs35l34->reset_gpio, 0); in cs35l34_i2c_remove() 1156 gpiod_set_value_cansleep(cs35l34->reset_gpio, 1); in cs35l34_runtime_resume() 1180 gpiod_set_value_cansleep(cs35l34->reset_gpio, 0); in cs35l34_runtime_suspend()
|
D | tas571x.c | 51 struct gpio_desc *reset_gpio; member 839 priv->reset_gpio = devm_gpiod_get_optional(dev, "reset", in tas571x_i2c_probe() 841 if (IS_ERR(priv->reset_gpio)) { in tas571x_i2c_probe() 843 PTR_ERR(priv->reset_gpio)); in tas571x_i2c_probe() 844 ret = PTR_ERR(priv->reset_gpio); in tas571x_i2c_probe() 846 } else if (priv->reset_gpio) { in tas571x_i2c_probe() 849 gpiod_set_value(priv->reset_gpio, 0); in tas571x_i2c_probe()
|
D | cs35l33.c | 43 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() 1167 cs35l33->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs35l33_i2c_probe() 1169 if (IS_ERR(cs35l33->reset_gpio)) { in cs35l33_i2c_probe() 1172 return PTR_ERR(cs35l33->reset_gpio); in cs35l33_i2c_probe() 1184 gpiod_set_value_cansleep(cs35l33->reset_gpio, 1); in cs35l33_i2c_probe() 1243 gpiod_set_value_cansleep(cs35l33->reset_gpio, 0); in cs35l33_i2c_probe() 1255 gpiod_set_value_cansleep(cs35l33->reset_gpio, 0); in cs35l33_i2c_remove()
|
D | cs4234.c | 31 struct gpio_desc *reset_gpio; member 699 gpiod_set_value_cansleep(cs4234->reset_gpio, 0); in cs4234_shutdown() 722 gpiod_set_value_cansleep(cs4234->reset_gpio, 1); in cs4234_powerup() 751 cs4234->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in cs4234_i2c_probe() 752 if (IS_ERR(cs4234->reset_gpio)) in cs4234_i2c_probe() 753 return PTR_ERR(cs4234->reset_gpio); in cs4234_i2c_probe()
|
/sound/soc/tegra/ |
D | tegra20_ac97.c | 44 gpio_set_value(workdata->reset_gpio, 0); in tegra20_ac97_codec_reset() 47 gpio_set_value(workdata->reset_gpio, 1); in tegra20_ac97_codec_reset() 346 ac97->reset_gpio = of_get_named_gpio(pdev->dev.of_node, in tegra20_ac97_platform_probe() 348 if (gpio_is_valid(ac97->reset_gpio)) { in tegra20_ac97_platform_probe() 349 ret = devm_gpio_request_one(&pdev->dev, ac97->reset_gpio, in tegra20_ac97_platform_probe()
|
/sound/pci/hda/ |
D | cs35l41_hda.c | 631 if (cs35l41->reset_gpio) { in cs35l41_system_resume() 633 gpiod_set_value_cansleep(cs35l41->reset_gpio, 1); in cs35l41_system_resume() 1234 cs35l41->reset_gpio = gpiod_get_index(physdev, NULL, 0, GPIOD_OUT_HIGH); in cs35l41_no_acpi_dsd() 1319 cs35l41->reset_gpio = fwnode_gpiod_get_index(acpi_fwnode_handle(adev), "reset", cs35l41->index, in cs35l41_hda_read_acpi() 1414 if (IS_ERR(cs35l41->reset_gpio)) { in cs35l41_hda_probe() 1415 ret = PTR_ERR(cs35l41->reset_gpio); in cs35l41_hda_probe() 1416 cs35l41->reset_gpio = NULL; in cs35l41_hda_probe() 1424 if (cs35l41->reset_gpio) { in cs35l41_hda_probe() 1426 gpiod_set_value_cansleep(cs35l41->reset_gpio, 1); in cs35l41_hda_probe() 1518 gpiod_set_value_cansleep(cs35l41->reset_gpio, 0); in cs35l41_hda_probe() [all …]
|