Lines Matching refs:jack
12 #include <sound/jack.h>
66 struct snd_soc_jack *jack, bool initial_kctl)
68 mutex_init(&jack->mutex);
69 jack->card = card;
70 INIT_LIST_HEAD(&jack->pins);
71 INIT_LIST_HEAD(&jack->jack_zones);
72 BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier);
74 return snd_jack_new(card->snd_card, id, type, &jack->jack, initial_kctl, false);
78 * snd_soc_card_jack_new - Create a new jack without pins
80 * @id: an identifying string for this jack
82 * this jack
83 * @jack: structure to use for the jack
85 * Creates a new jack object without pins. If adding pins later,
90 * On success jack will be initialised.
93 struct snd_soc_jack *jack)
95 return soc_card_ret(card, jack_new(card, id, type, jack, true));
100 * snd_soc_card_jack_new_pins - Create a new jack with pins
102 * @id: an identifying string for this jack
104 * this jack
105 * @jack: structure to use for the jack
106 * @pins: Array of jack pins to be added to the jack or NULL
109 * Creates a new jack object with pins. If not adding pins,
113 * On success jack will be initialised.
116 int type, struct snd_soc_jack *jack,
122 ret = jack_new(card, id, type, jack, false);
127 ret = snd_soc_jack_add_pins(jack, num_pins, pins);