diff options
| -rw-r--r-- | sound/soc/codecs/rt5651.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5651.c b/sound/soc/codecs/rt5651.c index f785b81238ae..9c88d89f41f0 100644 --- a/sound/soc/codecs/rt5651.c +++ b/sound/soc/codecs/rt5651.c | |||
| @@ -1368,8 +1368,7 @@ static int get_clk_info(int sclk, int rate) | |||
| 1368 | static int rt5651_hw_params(struct snd_pcm_substream *substream, | 1368 | static int rt5651_hw_params(struct snd_pcm_substream *substream, |
| 1369 | struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) | 1369 | struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) |
| 1370 | { | 1370 | { |
| 1371 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 1371 | struct snd_soc_codec *codec = dai->codec; |
| 1372 | struct snd_soc_codec *codec = rtd->codec; | ||
| 1373 | struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); | 1372 | struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); |
| 1374 | unsigned int val_len = 0, val_clk, mask_clk; | 1373 | unsigned int val_len = 0, val_clk, mask_clk; |
| 1375 | int pre_div, bclk_ms, frame_size; | 1374 | int pre_div, bclk_ms, frame_size; |
