diff options
author | Mark Brown <broonie@kernel.org> | 2014-11-04 19:58:58 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-04 19:58:58 +0000 |
commit | 33ebcd9b45e8a76f1022295a5d4841c54aa0716c (patch) | |
tree | 0c37bd5304a1e314b2d742d359a435be3c7102c6 | |
parent | a613cc4063a315efe36f233006f424e958ef4e67 (diff) | |
parent | ece509c10985ba93ccc8c68f808a9e767250041c (diff) |
Merge branch 'fix/max98090' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-max98090
-rw-r--r-- | sound/soc/codecs/max98090.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index d519294f57c7..1229554f1464 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -1941,13 +1941,13 @@ static int max98090_dai_set_sysclk(struct snd_soc_dai *dai, * 0x02 (when master clk is 20MHz to 40MHz).. * 0x03 (when master clk is 40MHz to 60MHz).. */ - if ((freq >= 10000000) && (freq < 20000000)) { + if ((freq >= 10000000) && (freq <= 20000000)) { snd_soc_write(codec, M98090_REG_SYSTEM_CLOCK, M98090_PSCLK_DIV1); - } else if ((freq >= 20000000) && (freq < 40000000)) { + } else if ((freq > 20000000) && (freq <= 40000000)) { snd_soc_write(codec, M98090_REG_SYSTEM_CLOCK, M98090_PSCLK_DIV2); - } else if ((freq >= 40000000) && (freq < 60000000)) { + } else if ((freq > 40000000) && (freq <= 60000000)) { snd_soc_write(codec, M98090_REG_SYSTEM_CLOCK, M98090_PSCLK_DIV4); } else { |