Lines Matching refs:beep
56 struct input_dev *beep; member
1034 input_event(cs42l56->beep, EV_SND, SND_TONE, time); in cs42l56_beep_set()
1039 static DEVICE_ATTR(beep, 0200, NULL, cs42l56_beep_set);
1046 cs42l56->beep = devm_input_allocate_device(component->dev); in cs42l56_init_beep()
1047 if (!cs42l56->beep) { in cs42l56_init_beep()
1055 cs42l56->beep->name = "CS42L56 Beep Generator"; in cs42l56_init_beep()
1056 cs42l56->beep->phys = dev_name(component->dev); in cs42l56_init_beep()
1057 cs42l56->beep->id.bustype = BUS_I2C; in cs42l56_init_beep()
1059 cs42l56->beep->evbit[0] = BIT_MASK(EV_SND); in cs42l56_init_beep()
1060 cs42l56->beep->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); in cs42l56_init_beep()
1061 cs42l56->beep->event = cs42l56_beep_event; in cs42l56_init_beep()
1062 cs42l56->beep->dev.parent = component->dev; in cs42l56_init_beep()
1063 input_set_drvdata(cs42l56->beep, component); in cs42l56_init_beep()
1065 ret = input_register_device(cs42l56->beep); in cs42l56_init_beep()
1067 cs42l56->beep = NULL; in cs42l56_init_beep()
1084 cs42l56->beep = NULL; in cs42l56_free_beep()