From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Mon, 10 Dec 2018 10:37:31 -0700 Subject: [U-Boot] [PATCH v2 02/22] dm: sound: Create an option to use driver model for sound In-Reply-To: <20181210173751.177266-1-sjg@chromium.org> References: <20181210173751.177266-1-sjg@chromium.org> Message-ID: <20181210173751.177266-3-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v2: - Use Kconfig instead of defconfig to define DM_SOUND arch/Kconfig | 1 + drivers/sound/Kconfig | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 947070fdd35..35e2712fce9 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -116,6 +116,7 @@ config SANDBOX imply VIRTIO_SANDBOX imply VIRTIO_BLK imply VIRTIO_NET + imply DM_SOUND config SH bool "SuperH architecture" 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.rc2.403.gdbc3b29805-goog