Lines Matching full:gpiod
433 struct gpio_desc *gpiod; in tegra_asoc_machine_probe() local
449 gpiod = devm_gpiod_get_optional(dev, "nvidia,hp-mute", GPIOD_OUT_HIGH); in tegra_asoc_machine_probe()
450 machine->gpiod_hp_mute = gpiod; in tegra_asoc_machine_probe()
451 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
452 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
454 gpiod = devm_gpiod_get_optional(dev, "nvidia,hp-det", GPIOD_IN); in tegra_asoc_machine_probe()
455 machine->gpiod_hp_det = gpiod; in tegra_asoc_machine_probe()
456 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
457 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
459 gpiod = devm_gpiod_get_optional(dev, "nvidia,mic-det", GPIOD_IN); in tegra_asoc_machine_probe()
460 machine->gpiod_mic_det = gpiod; in tegra_asoc_machine_probe()
461 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
462 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
464 gpiod = devm_gpiod_get_optional(dev, "nvidia,spkr-en", GPIOD_OUT_LOW); in tegra_asoc_machine_probe()
465 machine->gpiod_spkr_en = gpiod; in tegra_asoc_machine_probe()
466 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
467 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
469 gpiod = devm_gpiod_get_optional(dev, "nvidia,int-mic-en", GPIOD_OUT_LOW); in tegra_asoc_machine_probe()
470 machine->gpiod_int_mic_en = gpiod; in tegra_asoc_machine_probe()
471 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
472 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
474 gpiod = devm_gpiod_get_optional(dev, "nvidia,ext-mic-en", GPIOD_OUT_LOW); in tegra_asoc_machine_probe()
475 machine->gpiod_ext_mic_en = gpiod; in tegra_asoc_machine_probe()
476 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
477 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()