---
name: "snd_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_jack_new"
---

# snd\_jack\_new(9)

Create a new jack

## NAME

snd\_jack\_new - Create a new jack

## SYNOPSIS

**int snd\_jack\_new(struct snd\_card \*** *card***, const char \*** *id***, int** *type***, struct snd\_jack \*\*** *jjack***, bool** *initial\_kctl***, bool** *phantom\_jack***);**

## ARGUMENTS

*card*

the card instance

*id*

an identifying string for this jack

*type*

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

*jjack*

Used to provide the allocated jack object to the caller.

*initial\_kctl*

if true, create a kcontrol and add it to the jack list.

*phantom\_jack*

Don't create a input device for phantom jacks.

## DESCRIPTION

Creates a new jack object.

## RETURN

Zero if successful, or a negative error code on failure. On success *jjack* will be initialised.

## COPYRIGHT
