Lines Matching full:jack
12 #include <sound/jack.h>
66 struct snd_soc_jack *jack, bool initial_kctl) in jack_new() argument
68 mutex_init(&jack->mutex); in jack_new()
69 jack->card = card; in jack_new()
70 INIT_LIST_HEAD(&jack->pins); in jack_new()
71 INIT_LIST_HEAD(&jack->jack_zones); in jack_new()
72 BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier); in jack_new()
74 return snd_jack_new(card->snd_card, id, type, &jack->jack, initial_kctl, false); in jack_new()
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) in snd_soc_card_jack_new() argument
95 return soc_card_ret(card, jack_new(card, id, type, jack, true)); in snd_soc_card_jack_new()
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, in snd_soc_card_jack_new_pins() argument
122 ret = jack_new(card, id, type, jack, false); in snd_soc_card_jack_new_pins()
127 ret = snd_soc_jack_add_pins(jack, num_pins, pins); in snd_soc_card_jack_new_pins()