snd_jack_new
Prev | Jack Abstraction Layer API | Next

## 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`)`;

## 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.

## Description

Creates a new jack object.

## Return

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

Prev | Up | Next
Jack Abstraction Layer API | Home | snd_jack_set_parent