aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-06-25 05:01:14 -0400
committerMark Brown <broonie@kernel.org>2015-07-07 09:00:20 -0400
commit6f4397949689d74c3bd0016c80d59a90c6e8afee (patch)
treefdd3f4655f3ce43de25755ff9225ef56afa9721d
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff)
ASoC: lm49453: Remove fs_rate from struct lm49453_priv
fs_rate is only used in lm49453_hw_params() so don't need to store it in private data. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/lm49453.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c
index 6600aa0a33dc..5b4086d4109a 100644
--- a/sound/soc/codecs/lm49453.c
+++ b/sound/soc/codecs/lm49453.c
@@ -188,7 +188,6 @@ static struct reg_default lm49453_reg_defs[] = {
188/* codec private data */ 188/* codec private data */
189struct lm49453_priv { 189struct lm49453_priv {
190 struct regmap *regmap; 190 struct regmap *regmap;
191 int fs_rate;
192}; 191};
193 192
194/* capture path controls */ 193/* capture path controls */
@@ -1112,13 +1111,10 @@ static int lm49453_hw_params(struct snd_pcm_substream *substream,
1112 struct snd_soc_dai *dai) 1111 struct snd_soc_dai *dai)
1113{ 1112{
1114 struct snd_soc_codec *codec = dai->codec; 1113 struct snd_soc_codec *codec = dai->codec;
1115 struct lm49453_priv *lm49453 = snd_soc_codec_get_drvdata(codec);
1116 u16 clk_div = 0; 1114 u16 clk_div = 0;
1117 1115
1118 lm49453->fs_rate = params_rate(params);
1119
1120 /* Setting DAC clock dividers based on substream sample rate. */ 1116 /* Setting DAC clock dividers based on substream sample rate. */
1121 switch (lm49453->fs_rate) { 1117 switch (params_rate(params)) {
1122 case 8000: 1118 case 8000:
1123 case 16000: 1119 case 16000:
1124 case 32000: 1120 case 32000: