Something that's always bothered me about Linux kernel configuration: the PC speaker as a source of generic beeps is considered a "miscellaneous input device". Why is this? I'd expect it to be in some output-related category, or perhaps "Misc. devices".
│ CONFIG_INPUT_PCSPKR:
│
│ Say Y here if you want the standard PC Speaker to be used for
│ bells and whistles.
│
│ Prompt: PC Speaker support
│ Location:
│ -> Device Drivers
│ -> Input device support
│ -> Generic input layer (needed for keyboard, mouse, ...) (INPUT [=y])
│ -> Miscellaneous devices (INPUT_MISC [=y])
(Note: this is distinct from the use of the PC speaker as an ALSA/OSS sound card.)
pack("qqssl", 0, 0, 0x12, 2, PITCH)
. – Maëlan Aug 30 '19 at 17:32