Lines Matching defs:input_dev
96 static int snd_hda_beep_event(struct input_dev *dev, unsigned int type,
211 struct input_dev *input_dev;
236 input_dev = input_allocate_device();
237 if (!input_dev) {
243 input_dev->name = "HDA Digital PCBeep";
244 input_dev->phys = beep->phys;
245 input_dev->id.bustype = BUS_PCI;
246 input_dev->dev.parent = &codec->card->card_dev;
248 input_dev->id.vendor = codec->core.vendor_id >> 16;
249 input_dev->id.product = codec->core.vendor_id & 0xffff;
250 input_dev->id.version = 0x01;
252 input_dev->evbit[0] = BIT_MASK(EV_SND);
253 input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE);
254 input_dev->event = snd_hda_beep_event;
255 input_set_drvdata(input_dev, beep);
257 beep->dev = input_dev;