22 #include <linux/input.h>
23 #include <linux/slab.h>
24 #include <linux/module.h>
57 static int snd_jack_dev_register(
struct snd_device *device)
69 jack->
input_dev->dev.parent = snd_card_get_device_link(card);
75 if (!(jack->
type & testbit))
84 err = input_register_device(jack->
input_dev);
112 .dev_register = snd_jack_dev_register,
121 jack->
input_dev = input_allocate_device();
134 jack_switch_types[i]);
226 if (jack->
type & testbit)
231 for (i = 0; i <
ARRAY_SIZE(jack_switch_types); i++) {
232 int testbit = 1 <<
i;
233 if (jack->
type & testbit)
235 jack_switch_types[i],