diff options
author | Mark Brown <broonie@linaro.org> | 2013-11-03 22:04:19 -0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-11-03 22:04:19 -0800 |
commit | 4cf9159e2ae7d3a91f63b94c6dc7cb8ce3bfd257 (patch) | |
tree | 42a43bfee22b22df361454bcbcfbcbd0b747f08a /sound | |
parent | 97fa413305bf04a9c43c032099d1254455a997b3 (diff) | |
parent | 5a7615cf1fcaaf1598b5689e54915d88c2344788 (diff) | |
download | linux-4cf9159e2ae7d3a91f63b94c6dc7cb8ce3bfd257.tar.bz2 |
Merge remote-tracking branch 'asoc/topic/rt5640' into asoc-next
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/rt5640.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c index 4d041d376f31..a3fb41179636 100644 --- a/sound/soc/codecs/rt5640.c +++ b/sound/soc/codecs/rt5640.c @@ -1604,8 +1604,8 @@ static int rt5640_hw_params(struct snd_pcm_substream *substream, struct snd_soc_pcm_runtime *rtd = substream->private_data; struct snd_soc_codec *codec = rtd->codec; struct rt5640_priv *rt5640 = snd_soc_codec_get_drvdata(codec); - unsigned int val_len = 0, val_clk, mask_clk, dai_sel; - int pre_div, bclk_ms, frame_size; + unsigned int val_len = 0, val_clk, mask_clk; + int dai_sel, pre_div, bclk_ms, frame_size; rt5640->lrck[dai->id] = params_rate(params); pre_div = get_clk_info(rt5640->sysclk, rt5640->lrck[dai->id]); @@ -1675,7 +1675,8 @@ static int rt5640_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) { struct snd_soc_codec *codec = dai->codec; struct rt5640_priv *rt5640 = snd_soc_codec_get_drvdata(codec); - unsigned int reg_val = 0, dai_sel; + unsigned int reg_val = 0; + int dai_sel; switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { case SND_SOC_DAIFMT_CBM_CFM: |