Home
last modified time | relevance | path

Searched refs:beep (Results 1 – 25 of 39) sorted by relevance

12

/Linux-v5.4/sound/pci/hda/
Dhda_beep.c24 static void generate_tone(struct hda_beep *beep, int tone) in generate_tone() argument
26 struct hda_codec *codec = beep->codec; in generate_tone()
28 if (tone && !beep->playing) { in generate_tone()
30 if (beep->power_hook) in generate_tone()
31 beep->power_hook(beep, true); in generate_tone()
32 beep->playing = 1; in generate_tone()
34 snd_hda_codec_write(codec, beep->nid, 0, in generate_tone()
36 if (!tone && beep->playing) { in generate_tone()
37 beep->playing = 0; in generate_tone()
38 if (beep->power_hook) in generate_tone()
[all …]
DKconfig74 bool "Support digital beep via input layer"
77 Say Y here to build a digital beep interface for HD-audio
81 int "Digital beep registration mode (0=off, 1=on)"
86 Set 0 to disable the digital beep interface for HD-audio by default.
87 Set 1 to always enable the digital beep interface for HD-audio by
Dhda_beep.h30 void (*power_hook)(struct hda_beep *beep, bool on);
/Linux-v5.4/sound/ppc/
Dbeep.c35 struct pmac_beep *beep = chip->beep; in snd_pmac_beep_stop() local
36 if (beep && beep->running) { in snd_pmac_beep_stop()
37 beep->running = 0; in snd_pmac_beep_stop()
90 struct pmac_beep *beep; in snd_pmac_beep_event() local
108 if (! chip || (beep = chip->beep) == NULL) in snd_pmac_beep_event()
113 if (beep->running) in snd_pmac_beep_event()
126 if (chip->playback.running || chip->capture.running || beep->running) { in snd_pmac_beep_event()
130 beep->running = 1; in snd_pmac_beep_event()
133 if (hz == beep->hz && beep->volume == beep->volume_play) { in snd_pmac_beep_event()
134 nsamples = beep->nsamples; in snd_pmac_beep_event()
[all …]
DMakefile7 snd-powermac-objs := powermac.o pmac.o awacs.o burgundy.o daca.o tumbler.o keywest.o beep.o
Dpmac.h131 struct pmac_beep *beep; member
/Linux-v5.4/drivers/input/misc/
Dgpio-beeper.c23 static void gpio_beeper_toggle(struct gpio_beeper *beep, bool on) in gpio_beeper_toggle() argument
25 gpiod_set_value_cansleep(beep->desc, on); in gpio_beeper_toggle()
30 struct gpio_beeper *beep = container_of(work, struct gpio_beeper, work); in gpio_beeper_work() local
32 gpio_beeper_toggle(beep, beep->beeping); in gpio_beeper_work()
38 struct gpio_beeper *beep = input_get_drvdata(dev); in gpio_beeper_event() local
46 beep->beeping = value; in gpio_beeper_event()
48 schedule_work(&beep->work); in gpio_beeper_event()
55 struct gpio_beeper *beep = input_get_drvdata(input); in gpio_beeper_close() local
57 cancel_work_sync(&beep->work); in gpio_beeper_close()
58 gpio_beeper_toggle(beep, false); in gpio_beeper_close()
[all …]
/Linux-v5.4/arch/x86/realmode/rm/
Dwakemain.c11 static void beep(unsigned int hz) in beep() function
47 beep(DOT_HZ); in send_morse()
49 beep(0); in send_morse()
53 beep(DASH_HZ); in send_morse()
55 beep(0); in send_morse()
/Linux-v5.4/drivers/accessibility/braille/
Dbraille_console.c38 static void beep(unsigned int freq) in beep() function
158 beep(880); in keyboard_notifier_call()
167 beep(440); in keyboard_notifier_call()
178 beep(880); in keyboard_notifier_call()
182 beep(220); in keyboard_notifier_call()
188 beep(880); in keyboard_notifier_call()
192 beep(220); in keyboard_notifier_call()
198 beep(220); in keyboard_notifier_call()
204 beep(220); in keyboard_notifier_call()
244 beep(880); in keyboard_notifier_call()
[all …]
/Linux-v5.4/sound/soc/codecs/
Dcs42l52.c49 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()
[all …]
Dcs42l56.c56 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()
[all …]
Dwm8962.c76 struct input_dev *beep; member
3226 input_event(wm8962->beep, EV_SND, SND_TONE, time); in wm8962_beep_set()
3231 static DEVICE_ATTR(beep, 0200, NULL, wm8962_beep_set);
3238 wm8962->beep = devm_input_allocate_device(component->dev); in wm8962_init_beep()
3239 if (!wm8962->beep) { in wm8962_init_beep()
3247 wm8962->beep->name = "WM8962 Beep Generator"; in wm8962_init_beep()
3248 wm8962->beep->phys = dev_name(component->dev); in wm8962_init_beep()
3249 wm8962->beep->id.bustype = BUS_I2C; in wm8962_init_beep()
3251 wm8962->beep->evbit[0] = BIT_MASK(EV_SND); in wm8962_init_beep()
3252 wm8962->beep->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); in wm8962_init_beep()
[all …]
/Linux-v5.4/drivers/hwmon/
Dnct7802.c552 static SENSOR_DEVICE_ATTR_2_RW(temp1_beep, beep, 0x5c, 0);
553 static SENSOR_DEVICE_ATTR_2_RW(temp2_beep, beep, 0x5c, 1);
554 static SENSOR_DEVICE_ATTR_2_RW(temp3_beep, beep, 0x5c, 2);
555 static SENSOR_DEVICE_ATTR_2_RW(temp4_beep, beep, 0x5c, 3);
556 static SENSOR_DEVICE_ATTR_2_RW(temp5_beep, beep, 0x5c, 4);
557 static SENSOR_DEVICE_ATTR_2_RW(temp6_beep, beep, 0x5c, 5);
664 static SENSOR_DEVICE_ATTR_2_RW(in0_beep, beep, 0x5a, 3);
672 static SENSOR_DEVICE_ATTR_2_RW(in2_beep, beep, 0x5a, 0);
678 static SENSOR_DEVICE_ATTR_2_RW(in3_beep, beep, 0x5a, 1);
684 static SENSOR_DEVICE_ATTR_2_RW(in4_beep, beep, 0x5a, 2);
[all …]
Dgl520sm.c704 static SENSOR_DEVICE_ATTR_RW(in0_beep, beep, 0);
705 static SENSOR_DEVICE_ATTR_RW(in1_beep, beep, 1);
706 static SENSOR_DEVICE_ATTR_RW(in2_beep, beep, 2);
707 static SENSOR_DEVICE_ATTR_RW(in3_beep, beep, 3);
708 static SENSOR_DEVICE_ATTR_RW(temp1_beep, beep, 4);
709 static SENSOR_DEVICE_ATTR_RW(fan1_beep, beep, 5);
710 static SENSOR_DEVICE_ATTR_RW(fan2_beep, beep, 6);
711 static SENSOR_DEVICE_ATTR_RW(temp2_beep, beep, 7);
712 static SENSOR_DEVICE_ATTR_RW(in4_beep, beep, 7);
Dgl518sm.c499 static SENSOR_DEVICE_ATTR_RW(in0_beep, beep, 0);
500 static SENSOR_DEVICE_ATTR_RW(in1_beep, beep, 1);
501 static SENSOR_DEVICE_ATTR_RW(in2_beep, beep, 2);
502 static SENSOR_DEVICE_ATTR_RW(in3_beep, beep, 3);
503 static SENSOR_DEVICE_ATTR_RW(temp1_beep, beep, 4);
504 static SENSOR_DEVICE_ATTR_RW(fan1_beep, beep, 5);
505 static SENSOR_DEVICE_ATTR_RW(fan2_beep, beep, 6);
Dw83627hf.c959 static SENSOR_DEVICE_ATTR_RW(in0_beep, beep, 0);
960 static SENSOR_DEVICE_ATTR_RW(in1_beep, beep, 1);
961 static SENSOR_DEVICE_ATTR_RW(in2_beep, beep, 2);
962 static SENSOR_DEVICE_ATTR_RW(in3_beep, beep, 3);
963 static SENSOR_DEVICE_ATTR_RW(in4_beep, beep, 8);
964 static SENSOR_DEVICE_ATTR_RW(in5_beep, beep, 9);
965 static SENSOR_DEVICE_ATTR_RW(in6_beep, beep, 10);
966 static SENSOR_DEVICE_ATTR_RW(in7_beep, beep, 16);
967 static SENSOR_DEVICE_ATTR_RW(in8_beep, beep, 17);
968 static SENSOR_DEVICE_ATTR_RW(fan1_beep, beep, 6);
[all …]
/Linux-v5.4/Documentation/hwmon/
Dw83791d.rst96 alarm is triggered as well as a bitmask to enable or disable the beep for
97 specific alarms. You need both the global beep enable bit and the
98 corresponding beep bit to be on for a triggered alarm to sound a beep.
103 The sysfs interface to the beep bitmask has migrated from the original legacy
Dsysfs-interface.rst939 Master beep enable
947 Channel beep
954 In theory, a chip could provide per-limit beep masking, but no such chip
982 Bitmask for beep.
1007 Chassis intrusion beep
Dw83781d.rst99 lines, alarms with beep warnings, and some miscellaneous stuff.
152 Individual alarm and beep bits:
192 Note that the individual beep bits are inverted from the other chips.
/Linux-v5.4/arch/arm/boot/dts/
Darmada-385-synology-ds116.dts55 * "2" : short beep
56 * "3" : long beep
Dexynos4412-itop-elite.dts115 beep {
/Linux-v5.4/Documentation/sound/designs/
Dcontrol-names.rst61 Beep beep generator
/Linux-v5.4/sound/
DKconfig7 than an occasional beep, say Y.
/Linux-v5.4/Documentation/admin-guide/laptops/
Dthinkpad-acpi.rst852 ACPI sounds -- /proc/acpi/ibm/beep
861 echo <number> >/proc/acpi/ibm/beep
868 - 2 - two beeps, pause, third beep ("low battery")
869 - 3 - single beep
870 - 4 - high, followed by low-pitched beep ("unable")
871 - 5 - single beep
872 - 6 - very high, followed by high-pitched beep ("AC/DC")
873 - 7 - high-pitched beep
875 - 10 - very long beep
876 - 12 - low-pitched beep
[all …]
/Linux-v5.4/include/sound/
Dhda_codec.h197 struct hda_beep *beep; member

12