kernel/sound/soc/codecs/rk312x_codec.c
.. .. @@ -1424,8 +1424,7 @@ 1424 1424 struct snd_pcm_hw_params *params, 1425 1425 struct snd_soc_dai *dai) 1426 1426 { 1427 - struct snd_soc_pcm_runtime *rtd = substream->private_data;1428 - struct snd_soc_component *component = rtd->codec_dai->component;1427 + struct snd_soc_component *component = dai->component;1429 1428 struct rk312x_codec_priv *rk312x = rk312x_priv; 1430 1429 unsigned int rate = params_rate(params); 1431 1430 unsigned int div;