Lines Matching full:jack
12 #include <sound/jack.h>
43 struct snd_soc_jack *jack, bool initial_kctl) in jack_new() argument
45 mutex_init(&jack->mutex); in jack_new()
46 jack->card = card; in jack_new()
47 INIT_LIST_HEAD(&jack->pins); in jack_new()
48 INIT_LIST_HEAD(&jack->jack_zones); in jack_new()
49 BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier); in jack_new()
51 return snd_jack_new(card->snd_card, id, type, &jack->jack, initial_kctl, false); in jack_new()
55 * snd_soc_card_jack_new - Create a new jack without pins
57 * @id: an identifying string for this jack
59 * this jack
60 * @jack: structure to use for the jack
62 * Creates a new jack object without pins. If adding pins later,
67 * On success jack will be initialised.
70 struct snd_soc_jack *jack) in snd_soc_card_jack_new() argument
72 return soc_card_ret(card, jack_new(card, id, type, jack, true)); in snd_soc_card_jack_new()
77 * snd_soc_card_jack_new_pins - Create a new jack with pins
79 * @id: an identifying string for this jack
81 * this jack
82 * @jack: structure to use for the jack
83 * @pins: Array of jack pins to be added to the jack or NULL
86 * Creates a new jack object with pins. If not adding pins,
90 * On success jack will be initialised.
93 int type, struct snd_soc_jack *jack, in snd_soc_card_jack_new_pins() argument
99 ret = jack_new(card, id, type, jack, false); in snd_soc_card_jack_new_pins()
104 ret = snd_soc_jack_add_pins(jack, num_pins, pins); in snd_soc_card_jack_new_pins()