Scroll to navigation

SND_SOC_CARD_JACK_NE(9) Miscellaneous Functions SND_SOC_CARD_JACK_NE(9)

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

January 2017 Kernel Hackers Manual 4.8.