ASoC: max98090: Add NI/MI values for user pclk 19.2 MHz
diff mbox

Message ID 1400757703-24431-1-git-send-email-s.nawrocki@samsung.com
State Accepted
Commit 2c81a10ae6c6aaef68f8b92b4fc8037d1dfe0d9e
Headers show

Commit Message

Sylwester Nawrocki May 22, 2014, 11:21 a.m. UTC
From: Chen Zhen <zhen1.chen@samsung.com>

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>
---
 sound/soc/codecs/max98090.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Mark Brown May 26, 2014, 1:29 p.m. UTC | #1
On Thu, May 22, 2014 at 01:21:43PM +0200, Sylwester Nawrocki wrote:
> From: Chen Zhen <zhen1.chen@samsung.com>
> 
> 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.

Applied, thanks.

Patch
diff mbox

diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index f7b0b37..ea44471 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -1544,19 +1544,19 @@  static const int lrclk_rates[] = {
 };
 
 static const int user_pclk_rates[] = {
-	13000000, 13000000
+	13000000, 13000000, 19200000, 19200000,
 };
 
 static const int user_lrclk_rates[] = {
-	44100, 48000
+	44100, 48000, 44100, 48000,
 };
 
 static const unsigned long long ni_value[] = {
-	3528, 768
+	3528, 768, 441, 8
 };
 
 static const unsigned long long mi_value[] = {
-	8125, 1625
+	8125, 1625, 1500, 25
 };
 
 static void max98090_configure_bclk(struct snd_soc_codec *codec)