aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsound/soc/codecs/max9867.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c
index 4fb6fc7188c7..f371a52fe29d 100755
--- a/sound/soc/codecs/max9867.c
+++ b/sound/soc/codecs/max9867.c
@@ -207,10 +207,9 @@ static int max9867_dai_hw_params(struct snd_pcm_substream *substream,
207 unsigned long int bclk_rate, pclk_bclk_ratio; 207 unsigned long int bclk_rate, pclk_bclk_ratio;
208 int bclk_value; 208 int bclk_value;
209 209
210 bclk_rate = params_rate(params) * 2 * 210 bclk_rate = params_rate(params) * 2 * params_width(params);
211 snd_pcm_format_width(params_format(params));
212 pclk_bclk_ratio = max9867->pclk/bclk_rate; 211 pclk_bclk_ratio = max9867->pclk/bclk_rate;
213 switch (snd_pcm_format_width(params_format(params))) { 212 switch (params_width(params)) {
214 case 8: 213 case 8:
215 case 16: 214 case 16:
216 switch (pclk_bclk_ratio) { 215 switch (pclk_bclk_ratio) {