hc
2023-11-20 2e7bd41e4e8ab3d1efdabd9e263a2f7fe79bff8c
kernel/sound/soc/codecs/rk312x_codec.c
....@@ -1424,8 +1424,7 @@
14241424 struct snd_pcm_hw_params *params,
14251425 struct snd_soc_dai *dai)
14261426 {
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;
14291428 struct rk312x_codec_priv *rk312x = rk312x_priv;
14301429 unsigned int rate = params_rate(params);
14311430 unsigned int div;