X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=sound%2Fsoc%2Fcodecs%2Fjz4740.c;h=85d9cabe6d555d9e28e3812f1d97f631434ff461;hb=019ec5059b771cc36fb302a61f0eb08a88beb88b;hp=4624e752a188cdc13689fc3b29bacfd1d5e4bf84;hpb=9edd576d89a5b6d3e136d7dcab654d887c0d25b7;p=firefly-linux-kernel-4.4.55.git diff --git a/sound/soc/codecs/jz4740.c b/sound/soc/codecs/jz4740.c index 4624e752a188..85d9cabe6d55 100644 --- a/sound/soc/codecs/jz4740.c +++ b/sound/soc/codecs/jz4740.c @@ -164,8 +164,7 @@ static int jz4740_codec_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) { uint32_t val; - struct snd_soc_pcm_runtime *rtd = substream->private_data; - struct snd_soc_codec *codec =rtd->codec; + struct snd_soc_codec *codec = dai->codec; switch (params_rate(params)) { case 8000: