Lines Matching refs:jack
12 #include <sound/jack.h>
53 struct snd_soc_jack *jack, bool initial_kctl)
55 mutex_init(&jack->mutex);
56 jack->card = card;
57 INIT_LIST_HEAD(&jack->pins);
58 INIT_LIST_HEAD(&jack->jack_zones);
59 BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier);
61 return snd_jack_new(card->snd_card, id, type, &jack->jack, initial_kctl, false);
65 * snd_soc_card_jack_new - Create a new jack without pins
67 * @id: an identifying string for this jack
69 * this jack
70 * @jack: structure to use for the jack
72 * Creates a new jack object without pins. If adding pins later,
77 * On success jack will be initialised.
80 struct snd_soc_jack *jack)
82 return soc_card_ret(card, jack_new(card, id, type, jack, true));
87 * snd_soc_card_jack_new_pins - Create a new jack with pins
89 * @id: an identifying string for this jack
91 * this jack
92 * @jack: structure to use for the jack
93 * @pins: Array of jack pins to be added to the jack or NULL
96 * Creates a new jack object with pins. If not adding pins,
100 * On success jack will be initialised.
103 int type, struct snd_soc_jack *jack,
109 ret = jack_new(card, id, type, jack, false);
114 ret = snd_soc_jack_add_pins(jack, num_pins, pins);