sound: Add uclass operations for beeping
authorSimon Glass <sjg@chromium.org>
Sun, 17 Feb 2019 03:24:54 +0000 (20:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 20 Feb 2019 07:27:08 +0000 (15:27 +0800)
commit2850266965ade165f913a66f679a0449faf21180
treef173b23f448ab8db19adaf8ee75228baf281a42b
parente65f9ef9f21058a7e4f54e11da1af49a8c1b0579
sound: Add uclass operations for beeping

Some audio codecs such as Intel HDA do not need to use digital data to
play sounds, but instead have a way to emit beeps. Add this interface as
an option. If the beep interface is not supported, then the sound uclass
falls back to the I2S interface.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/include/asm/test.h
drivers/sound/sandbox.c
drivers/sound/sound-uclass.c
include/sound.h
test/dm/sound.c