Lines Matching refs:beep
49 struct input_dev *beep; member
970 input_event(cs42l52->beep, EV_SND, SND_TONE, time); in cs42l52_beep_set()
975 static DEVICE_ATTR(beep, 0200, NULL, cs42l52_beep_set);
982 cs42l52->beep = devm_input_allocate_device(component->dev); in cs42l52_init_beep()
983 if (!cs42l52->beep) { in cs42l52_init_beep()
991 cs42l52->beep->name = "CS42L52 Beep Generator"; in cs42l52_init_beep()
992 cs42l52->beep->phys = dev_name(component->dev); in cs42l52_init_beep()
993 cs42l52->beep->id.bustype = BUS_I2C; in cs42l52_init_beep()
995 cs42l52->beep->evbit[0] = BIT_MASK(EV_SND); in cs42l52_init_beep()
996 cs42l52->beep->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); in cs42l52_init_beep()
997 cs42l52->beep->event = cs42l52_beep_event; in cs42l52_init_beep()
998 cs42l52->beep->dev.parent = component->dev; in cs42l52_init_beep()
999 input_set_drvdata(cs42l52->beep, component); in cs42l52_init_beep()
1001 ret = input_register_device(cs42l52->beep); in cs42l52_init_beep()
1003 cs42l52->beep = NULL; in cs42l52_init_beep()
1020 cs42l52->beep = NULL; in cs42l52_free_beep()