]> git.baikalelectronics.ru Git - uboot.git/commit
dm: sound: Create a uclass for sound
authorSimon Glass <sjg@chromium.org>
Mon, 10 Dec 2018 17:37:36 +0000 (10:37 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Dec 2018 23:32:49 +0000 (16:32 -0700)
commit9f564f9345c0d997ac5cecd07a9a3c8dbf748004
treee757add0074c0f4c193a97157abaa70e7e56ec2e
parent30fa304421c32d55abd1ba324ddf6a55426ce9f6
dm: sound: Create a uclass for sound

The sound driver pulls together the audio codec and i2s drivers in order
to actually make sounds. It supports setup() and play() methods. The
sound_find_codec_i2s() function allows locating the linked codec and i2s
devices. They can be referred to from uclass-private data.

Add a uclass and a test for sound.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts
arch/sandbox/include/asm/test.h
cmd/sound.c
drivers/sound/Makefile
drivers/sound/sandbox.c
drivers/sound/sound-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/sound.h
test/dm/Makefile
test/dm/sound.c [new file with mode: 0644]