Lines Matching full:jack
12 #include <sound/jack.h>
33 struct snd_soc_jack *jack, bool initial_kctl) in jack_new() argument
35 mutex_init(&jack->mutex); in jack_new()
36 jack->card = card; in jack_new()
37 INIT_LIST_HEAD(&jack->pins); in jack_new()
38 INIT_LIST_HEAD(&jack->jack_zones); in jack_new()
39 BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier); in jack_new()
41 return snd_jack_new(card->snd_card, id, type, &jack->jack, initial_kctl, false); in jack_new()
45 * snd_soc_card_jack_new - Create a new jack without pins
47 * @id: an identifying string for this jack
49 * this jack
50 * @jack: structure to use for the jack
52 * Creates a new jack object without pins. If adding pins later,
57 * On success jack will be initialised.
60 struct snd_soc_jack *jack) in snd_soc_card_jack_new() argument
62 return soc_card_ret(card, jack_new(card, id, type, jack, true)); in snd_soc_card_jack_new()
67 * snd_soc_card_jack_new_pins - Create a new jack with pins
69 * @id: an identifying string for this jack
71 * this jack
72 * @jack: structure to use for the jack
73 * @pins: Array of jack pins to be added to the jack or NULL
76 * Creates a new jack object with pins. If not adding pins,
80 * On success jack will be initialised.
83 int type, struct snd_soc_jack *jack, in snd_soc_card_jack_new_pins() argument
89 ret = jack_new(card, id, type, jack, false); in snd_soc_card_jack_new_pins()
94 ret = snd_soc_jack_add_pins(jack, num_pins, pins); in snd_soc_card_jack_new_pins()