summaryrefslogtreecommitdiff
path: root/drivers/sound
diff options
context:
space:
mode:
authorRajeshwari Shinde <rajeshwari.s@samsung.com>2013-02-14 19:46:13 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2013-03-08 22:34:18 +0900
commit14d2dfc33a087cf98ae37e453edd294c7835caae (patch)
tree890a8c77d30b5f903a489b1d2101061e4ecb3f3d /drivers/sound
parent5febe8db91a9feca467ce8e0189a69b49cba02e7 (diff)
downloadu-boot-imx-14d2dfc33a087cf98ae37e453edd294c7835caae.zip
u-boot-imx-14d2dfc33a087cf98ae37e453edd294c7835caae.tar.gz
u-boot-imx-14d2dfc33a087cf98ae37e453edd294c7835caae.tar.bz2
Sound: Support for MAX98095 codec in driver
This patchs adds support for MAX98095 codec in sound driver. Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/sound')
-rw-r--r--drivers/sound/sound.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/sound/sound.c b/drivers/sound/sound.c
index fa8432d..a4bf4ad 100644
--- a/drivers/sound/sound.c
+++ b/drivers/sound/sound.c
@@ -31,6 +31,7 @@
#include <sound.h>
#include <asm/arch/sound.h>
#include "wm8994.h"
+#include "max98095.h"
/* defines */
#define SOUND_400_HZ 400
@@ -149,11 +150,15 @@ static int codec_init(const void *blob, struct i2stx_info *pi2s_tx)
pi2s_tx->samplingrate,
(pi2s_tx->samplingrate * (pi2s_tx->rfs)),
pi2s_tx->bitspersample, pi2s_tx->channels);
+ } else if (!strcmp(codectype, "max98095")) {
+ ret = max98095_init(blob, pi2s_tx->samplingrate,
+ (pi2s_tx->samplingrate * (pi2s_tx->rfs)),
+ pi2s_tx->bitspersample);
} else {
- debug("%s: Unknown code type %s\n", __func__,
- codectype);
+ debug("%s: Unknown codec type %s\n", __func__, codectype);
return -1;
}
+
if (ret) {
debug("%s: Codec init failed\n", __func__);
return -1;