diff options
author | Paul Handrigan <Paul.Handrigan@cirrus.com> | 2014-08-28 10:54:10 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-28 19:01:12 +0100 |
commit | fb18cd2a62f597557d5078d8fa03bb6930fe839f (patch) | |
tree | 838d53ab7611eeb5f4a02f3497b3b00e2ac78725 /sound | |
parent | c98853aec1f7a05545642b6ca8591fd13b2fc7b6 (diff) | |
download | op-kernel-dev-fb18cd2a62f597557d5078d8fa03bb6930fe839f.zip op-kernel-dev-fb18cd2a62f597557d5078d8fa03bb6930fe839f.tar.gz |
ASoC: cs4265: Fix setting of functional mode and clock divider
Reported-by: Zoltán Szenczi <zoltan@raspberrypi.org>
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/cs4265.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c index 8811689..9852320 100644 --- a/sound/soc/codecs/cs4265.c +++ b/sound/soc/codecs/cs4265.c @@ -435,10 +435,10 @@ static int cs4265_pcm_hw_params(struct snd_pcm_substream *substream, index = cs4265_get_clk_index(cs4265->sysclk, params_rate(params)); if (index >= 0) { snd_soc_update_bits(codec, CS4265_ADC_CTL, - CS4265_ADC_FM, clk_map_table[index].fm_mode); + CS4265_ADC_FM, clk_map_table[index].fm_mode << 6); snd_soc_update_bits(codec, CS4265_MCLK_FREQ, CS4265_MCLK_FREQ_MASK, - clk_map_table[index].mclkdiv); + clk_map_table[index].mclkdiv << 4); } else { dev_err(codec->dev, "can't get correct mclk\n"); |