---
name: "snd_soc_jack_add_gpiods"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_soc_jack_add_gpiods"
---

# snd\_soc\_jack\_add\_gpiods(9)

Associate GPIO descriptor pins with an ASoC jack

## NAME

snd\_soc\_jack\_add\_gpiods - Associate GPIO descriptor pins with an ASoC jack

## SYNOPSIS

**int snd\_soc\_jack\_add\_gpiods(struct device \*** *gpiod\_dev***, struct snd\_soc\_jack \*** *jack***, int** *count***, struct snd\_soc\_jack\_gpio \*** *gpios***);**

## ARGUMENTS

*gpiod\_dev*

GPIO consumer device

*jack*

ASoC jack

*count*

number of pins

*gpios*

array of gpio pins

## DESCRIPTION

This function will request gpio, set data direction and request irq for each gpio in the array.

## COPYRIGHT
