Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
CONFIG_CMD_SOUND=y
CONFIG_I2S=y
CONFIG_I2S_SAMSUNG=y
+CONFIG_SOUND_MAX98095=y
CONFIG_CMD_SOUND=y
CONFIG_I2S=y
CONFIG_I2S_SAMSUNG=y
+CONFIG_SOUND_MAX98095=y
CONFIG_CMD_SOUND=y
CONFIG_I2S=y
CONFIG_I2S_SAMSUNG=y
+CONFIG_SOUND_MAX98095=y
using one of the available audio codec drivers. Enabling this
option provides an implementation for sound_init() and
sound_play().
+
+config SOUND_MAX98095
+ bool "Support Maxim max98095 audio codec"
+ depends on I2S_SAMSUNG
+ help
+ Enable the max98095 audio codec. This is connected via I2S for
+ audio data and I2C for codec control. At present it only works
+ with the Samsung I2S driver.
/* Sound */
#ifdef CONFIG_CMD_SOUND
-#define CONFIG_SOUND_MAX98095
#define CONFIG_SOUND_WM8994
#endif