ASoC: spear: spdif_in: Switch to snd_soc_dai_dma_data_set_capture()

Replace the legacy direct access to dai->capture_dma_data with
snd_soc_dai_dma_data_set_capture().
The capture_dma_data field no longer exists in struct snd_soc_dai,
making the previous implementation incompatible with current ASoC APIs.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Link: https://patch.msgid.link/20260730095407.33894-3-phucduc.bui@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
bui duc phuc 2026-07-30 16:54:05 +07:00 committed by Mark Brown
parent ae788eeb17
commit c6c14a9915
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -55,7 +55,7 @@ static int spdif_in_dai_probe(struct snd_soc_dai *dai)
struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai);
host->dma_params_rx.filter_data = &host->dma_params;
dai->capture_dma_data = &host->dma_params_rx;
snd_soc_dai_dma_data_set_capture(dai, &host->dma_params_rx);
return 0;
}