Commit 14d2dfc33a087cf98ae37e453edd294c7835caae
Committed by
Minkyu Kang
1 parent
5febe8db91
Exists in
master
and in
53 other branches
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>
Showing 2 changed files with 8 additions and 2 deletions Side-by-side Diff
drivers/sound/sound.c
... | ... | @@ -31,6 +31,7 @@ |
31 | 31 | #include <sound.h> |
32 | 32 | #include <asm/arch/sound.h> |
33 | 33 | #include "wm8994.h" |
34 | +#include "max98095.h" | |
34 | 35 | |
35 | 36 | /* defines */ |
36 | 37 | #define SOUND_400_HZ 400 |
37 | 38 | |
38 | 39 | |
... | ... | @@ -149,11 +150,15 @@ |
149 | 150 | pi2s_tx->samplingrate, |
150 | 151 | (pi2s_tx->samplingrate * (pi2s_tx->rfs)), |
151 | 152 | pi2s_tx->bitspersample, pi2s_tx->channels); |
153 | + } else if (!strcmp(codectype, "max98095")) { | |
154 | + ret = max98095_init(blob, pi2s_tx->samplingrate, | |
155 | + (pi2s_tx->samplingrate * (pi2s_tx->rfs)), | |
156 | + pi2s_tx->bitspersample); | |
152 | 157 | } else { |
153 | - debug("%s: Unknown code type %s\n", __func__, | |
154 | - codectype); | |
158 | + debug("%s: Unknown codec type %s\n", __func__, codectype); | |
155 | 159 | return -1; |
156 | 160 | } |
161 | + | |
157 | 162 | if (ret) { |
158 | 163 | debug("%s: Codec init failed\n", __func__); |
159 | 164 | return -1; |