diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2021-01-31 21:18:41 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-02-08 10:57:05 +0100 |
commit | 78dd61b47e5d93240b3d112c51fa3b1896c4f6e6 (patch) | |
tree | dd5c0335559bf6099d57c44816fc7ad327928c87 /drivers/sound/Makefile | |
parent | 12ad41f91f1824eb141e368294d97860644ab777 (diff) | |
download | barebox-78dd61b47e5d93240b3d112c51fa3b1896c4f6e6.tar.gz barebox-78dd61b47e5d93240b3d112c51fa3b1896c4f6e6.tar.xz |
drivers: add sound card driver support
Add driver core boilerplate for sound support in barebox. Using the
provided API in <sound.h>, consumers can play beeps for a fixed duration
of time.
Playing beeps is not blocking and new beeps can be enqueued while one
is already playing. They will be played in succession by a poller, which
will also turn off the sound card when the beep tune is over.
API is also available for blocking until all beeps are played and for
cancelling an underway beep tune.
The API could be later extended for arbitrary PCM audio, should the
need arise.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/sound/Makefile')
-rw-r--r-- | drivers/sound/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/sound/Makefile b/drivers/sound/Makefile new file mode 100644 index 0000000000..e343e0fa72 --- /dev/null +++ b/drivers/sound/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += core.o |