ASoC: rockchip: dlp: Fix compilation errors on kernel 6.1

sound/soc/rockchip/rockchip_dlp.c:434:16: error: 'struct snd_soc_pcm_runtime' has no member named 'num_cpus'

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iaa54add4e0779ba4ddd4f3225799250cde089f1c
This commit is contained in:
Tao Huang
2023-06-28 17:11:20 +08:00
parent 3c0ee70ad9
commit b44bb22ace

View File

@@ -431,7 +431,7 @@ dmaengine_pcm_set_runtime_hwparams(struct snd_soc_component *component,
struct snd_dmaengine_dai_dma_data *dma_data;
struct snd_pcm_hardware hw;
if (rtd->num_cpus > 1) {
if (rtd->dai_link->num_cpus > 1) {
dev_err(rtd->dev,
"%s doesn't support Multi CPU yet\n", __func__);
return -EINVAL;