diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-12-04 18:16:12 +0300 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-12-05 19:43:21 +0300 |
commit | 3f01307ced9af0c20b48217c2c58b63f824451c5 (patch) | |
tree | 648a6246e2b1043f2fc895fb3d2518d20434c9c8 /doc/usage/cmd | |
parent | ff414fcc44b8b385600df54f5a7dc0719cec106f (diff) | |
download | u-boot-3f01307ced9af0c20b48217c2c58b63f824451c5.tar.xz |
doc: man-page for the sound command
Provide a man-page for the sound command.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc/usage/cmd')
-rw-r--r-- | doc/usage/cmd/sound.rst | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/doc/usage/cmd/sound.rst b/doc/usage/cmd/sound.rst new file mode 100644 index 0000000000..d3fac243b1 --- /dev/null +++ b/doc/usage/cmd/sound.rst @@ -0,0 +1,41 @@ +.. SPDX-License-Identifier: GPL-2.0+ +.. Copyright 2022, Heinrich Schuchardt <xypron.glpk@gmx.de> + +sound command +============= + +Synopsis +-------- + +:: + + sound init + sound play [len [freq]] + +Description +----------- + +The *sound* command is used to play a beep sound. + +sound init + initializes the sound driver. + +sound play + plays a square wave sound. It does not depend on previously calling + *sound init*. + +len + duration of the sound in ms, defaults to 1000 ms + +freq + frequency of the sound in Hz, defaults to 400 Hz + +Configuration +------------- + +The sound command is enabled by CONFIG_CMD_SOUND=y. + +Return value +------------ + +The return value $? is 0 (true) if the command succeeds, 1 (false) otherwise. |