Lines Matching full:gpiod

430 	struct gpio_desc *gpiod;  in tegra_asoc_machine_probe()  local
446 gpiod = devm_gpiod_get_optional(dev, "nvidia,hp-mute", GPIOD_OUT_HIGH); in tegra_asoc_machine_probe()
447 machine->gpiod_hp_mute = gpiod; in tegra_asoc_machine_probe()
448 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
449 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
451 gpiod = devm_gpiod_get_optional(dev, "nvidia,hp-det", GPIOD_IN); in tegra_asoc_machine_probe()
452 machine->gpiod_hp_det = gpiod; in tegra_asoc_machine_probe()
453 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
454 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
456 gpiod = devm_gpiod_get_optional(dev, "nvidia,mic-det", GPIOD_IN); in tegra_asoc_machine_probe()
457 machine->gpiod_mic_det = gpiod; in tegra_asoc_machine_probe()
458 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
459 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
461 gpiod = devm_gpiod_get_optional(dev, "nvidia,spkr-en", GPIOD_OUT_LOW); in tegra_asoc_machine_probe()
462 machine->gpiod_spkr_en = gpiod; in tegra_asoc_machine_probe()
463 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
464 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
466 gpiod = devm_gpiod_get_optional(dev, "nvidia,int-mic-en", GPIOD_OUT_LOW); in tegra_asoc_machine_probe()
467 machine->gpiod_int_mic_en = gpiod; in tegra_asoc_machine_probe()
468 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
469 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
471 gpiod = devm_gpiod_get_optional(dev, "nvidia,ext-mic-en", GPIOD_OUT_LOW); in tegra_asoc_machine_probe()
472 machine->gpiod_ext_mic_en = gpiod; in tegra_asoc_machine_probe()
473 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
474 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()