[U-Boot] [PATCH 20/30] dm: sound: Create an option to use driver model for sound

Simon Glass sjg at chromium.org
Mon Dec 3 11:37:36 UTC 2018


The U-Boot sound system provides basic support for beeping. At present it
does not use driver model, but it needs to be converted. Add an option to
enable driver model for sound. For now it is not connected to anything.
Future work will add drivers which use this option. It will then be
removed once everything is converted.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 configs/sandbox_defconfig | 1 +
 drivers/sound/Kconfig     | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index 4d65a01dc5b..ad7b25c5f35 100644
--- a/configs/sandbox_defconfig
+++ b/configs/sandbox_defconfig
@@ -176,6 +176,7 @@ CONFIG_SANDBOX_SERIAL=y
 CONFIG_SMEM=y
 CONFIG_SANDBOX_SMEM=y
 CONFIG_SOUND=y
+CONFIG_DM_SOUND=y
 CONFIG_SOUND_SANDBOX=y
 CONFIG_SANDBOX_SPI=y
 CONFIG_SPMI=y
diff --git a/drivers/sound/Kconfig b/drivers/sound/Kconfig
index 5de86c05c60..93f6c36af32 100644
--- a/drivers/sound/Kconfig
+++ b/drivers/sound/Kconfig
@@ -12,6 +12,12 @@ config SOUND
 	  audio codecs are called from the sound-i2s code. This could be
 	  converted to driver model.
 
+config DM_SOUND
+	bool "Use driver model for sound"
+	help
+	  Enable this option to use driver model for sound devices. This is a
+	  migration option and will be removed.
+
 config I2S
 	bool "Enable I2S support"
 	depends on SOUND
-- 
2.20.0.rc1.387.gf8505762e3-goog



More information about the U-Boot mailing list