---
name: "snd_soc_card_jack_new"
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_card_jack_new"
---

# snd\_soc\_card\_jack\_new(9)

Create a new jack

## NAME

snd\_soc\_card\_jack\_new - Create a new jack

## SYNOPSIS

**int snd\_soc\_card\_jack\_new(struct snd\_soc\_card \*** *card***, const char \*** *id***, int** *type***, struct snd\_soc\_jack \*** *jack***, struct snd\_soc\_jack\_pin \*** *pins***, unsigned int** *num\_pins***);**

## ARGUMENTS

*card*

ASoC card

*id*

an identifying string for this jack

*type*

a bitmask of enum snd\_jack\_type values that can be detected by this jack

*jack*

structure to use for the jack

*pins*

Array of jack pins to be added to the jack or NULL

*num\_pins*

Number of elements in the *pins* array

## DESCRIPTION

Creates a new jack object.

Returns zero if successful, or a negative error code on failure. On success jack will be initialised.

## COPYRIGHT
