From: Ahmad Fatoum <ahmad@a3f.at>
To: barebox@lists.infradead.org
Subject: [PATCH 0/7] Add sound and GRUB beep tune support
Date: Sun, 31 Jan 2021 21:18:39 +0100 [thread overview]
Message-ID: <20210131201846.3440477-1-ahmad@a3f.at> (raw)
I've been meaning to upstream pwm-beeper support for a piezobuzzer,
but it would be a real shame if the obnoxious buzzing would delay the
boot. So let me present asynchronous beeping support for barebox.
If you don't have the suitable hardware lying around you can synth
your own tunes on the barebox sandbox shell as well.
The Imperial March:
beep 480 440 4 440 4 440 4 349 3 523 1 440 4 349 3 523 1 440 8 659 4 659 4 659 4 698 3 523 1 415 4 349 3 523 1 440 8
Rebel's sabotage:
beep -c
Cheers,
Ahmad Fatoum (7):
sandbox: migrate to SDL 2.0
drivers: add sound card driver support
sound: add basic synthesizers for PCM beeper use
sound: add SDL 2.0 sound driver
commands: add beep command
sound: add PWM beeper support
sound: add gpio-beeper support
arch/sandbox/Kconfig | 3 +
arch/sandbox/Makefile | 6 +-
arch/sandbox/configs/sandbox_defconfig | 1 +
arch/sandbox/dts/sandbox.dts | 4 +
.../sandbox/mach-sandbox/include/mach/linux.h | 22 ++-
arch/sandbox/os/Makefile | 4 +-
arch/sandbox/os/sdl.c | 184 +++++++++++-------
commands/Kconfig | 7 +
commands/Makefile | 1 +
commands/beep.c | 99 ++++++++++
drivers/Kconfig | 1 +
drivers/Makefile | 1 +
drivers/sound/Kconfig | 38 ++++
drivers/sound/Makefile | 5 +
drivers/sound/core.c | 121 ++++++++++++
drivers/sound/gpio-beeper.c | 77 ++++++++
drivers/sound/pwm-beeper.c | 124 ++++++++++++
drivers/sound/sdl.c | 87 +++++++++
drivers/sound/synth.c | 43 ++++
drivers/video/Kconfig | 1 +
drivers/video/sdl.c | 37 ++--
include/linux/fixp-arith.h | 144 ++++++++++++++
include/poller.h | 4 +
include/pwm.h | 33 ++++
include/sound.h | 77 ++++++++
25 files changed, 1033 insertions(+), 91 deletions(-)
create mode 100644 commands/beep.c
create mode 100644 drivers/sound/Kconfig
create mode 100644 drivers/sound/Makefile
create mode 100644 drivers/sound/core.c
create mode 100644 drivers/sound/gpio-beeper.c
create mode 100644 drivers/sound/pwm-beeper.c
create mode 100644 drivers/sound/sdl.c
create mode 100644 drivers/sound/synth.c
create mode 100644 include/linux/fixp-arith.h
create mode 100644 include/sound.h
--
2.30.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2021-01-31 20:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-31 20:18 Ahmad Fatoum [this message]
2021-01-31 20:18 ` [PATCH 1/7] sandbox: migrate to SDL 2.0 Ahmad Fatoum
2021-01-31 20:18 ` [PATCH 2/7] drivers: add sound card driver support Ahmad Fatoum
2021-01-31 20:18 ` [PATCH 3/7] sound: add basic synthesizers for PCM beeper use Ahmad Fatoum
2021-01-31 20:18 ` [PATCH 4/7] sound: add SDL 2.0 sound driver Ahmad Fatoum
2021-01-31 20:18 ` [PATCH 5/7] commands: add beep command Ahmad Fatoum
2021-01-31 20:18 ` [PATCH 6/7] sound: add PWM beeper support Ahmad Fatoum
2021-01-31 20:18 ` [PATCH 7/7] sound: add gpio-beeper support Ahmad Fatoum
2021-02-08 10:42 ` [PATCH 0/7] Add sound and GRUB beep tune support Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210131201846.3440477-1-ahmad@a3f.at \
--to=ahmad@a3f.at \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox