aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98090.c
diff options
context:
space:
mode:
authorChen Zhen <zhen1.chen@samsung.com>2014-05-22 07:21:43 -0400
committerMark Brown <broonie@linaro.org>2014-05-26 09:28:57 -0400
commit2c81a10ae6c6aaef68f8b92b4fc8037d1dfe0d9e (patch)
tree13d7b2bdc69b947ae8cf01e0f0e541851af6dc9c /sound/soc/codecs/max98090.c
parenta735d992c2e71e230b798518b7fe954fdbc2dc8c (diff)
ASoC: max98090: Add NI/MI values for user pclk 19.2 MHz
This patch adds the clock divisor and multiplier NI, MI values for audio sampling frequencies 44100 and 48000 Hz and PCLK 19.2 MHz. This is useful for the Odroid X2/U2 boards when the codec works in master mode and its MCLK clock is fed from the I2S CDCLK output. Signed-off-by: Chen Zhen <zhen1.chen@samsung.com> [s.nawrocki@samsung.com: edited the commit description] Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/max98090.c')
-rw-r--r--sound/soc/codecs/max98090.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index c88bf821b86f..4ee1f88760c4 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -1545,19 +1545,19 @@ static const int lrclk_rates[] = {
1545}; 1545};
1546 1546
1547static const int user_pclk_rates[] = { 1547static const int user_pclk_rates[] = {
1548 13000000, 13000000 1548 13000000, 13000000, 19200000, 19200000,
1549}; 1549};
1550 1550
1551static const int user_lrclk_rates[] = { 1551static const int user_lrclk_rates[] = {
1552 44100, 48000 1552 44100, 48000, 44100, 48000,
1553}; 1553};
1554 1554
1555static const unsigned long long ni_value[] = { 1555static const unsigned long long ni_value[] = {
1556 3528, 768 1556 3528, 768, 441, 8
1557}; 1557};
1558 1558
1559static const unsigned long long mi_value[] = { 1559static const unsigned long long mi_value[] = {
1560 8125, 1625 1560 8125, 1625, 1500, 25
1561}; 1561};
1562 1562
1563static void max98090_configure_bclk(struct snd_soc_codec *codec) 1563static void max98090_configure_bclk(struct snd_soc_codec *codec)