diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-04-30 16:02:14 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-05-06 16:59:50 +0200 |
commit | a84d84077512fc64cf1fc2292a3638690a026737 (patch) | |
tree | 90ea05d0af10c1fac83a2d6d21705e5191552be8 /sound/soc/amd/ps | |
parent | ASoC: arm: Use snd_soc_substream_to_rtd() for accessing private_data (diff) | |
download | linux-a84d84077512fc64cf1fc2292a3638690a026737.tar.xz linux-a84d84077512fc64cf1fc2292a3638690a026737.zip |
ASoC: amd: Use snd_soc_substream_to_rtd() for accessing private_data
Do not open-code snd_soc_substream_to_rtd().
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240430-asoc-snd-substream-clean-v1-5-6f8a8902b479@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/ps')
-rw-r--r-- | sound/soc/amd/ps/ps-sdw-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/ps/ps-sdw-dma.c b/sound/soc/amd/ps/ps-sdw-dma.c index 66b800962f8c..2f630753278d 100644 --- a/sound/soc/amd/ps/ps-sdw-dma.c +++ b/sound/soc/amd/ps/ps-sdw-dma.c @@ -218,7 +218,7 @@ static int acp63_sdw_dma_open(struct snd_soc_component *component, struct acp_sdw_dma_stream *stream; struct snd_soc_dai *cpu_dai; struct amd_sdw_manager *amd_manager; - struct snd_soc_pcm_runtime *prtd = substream->private_data; + struct snd_soc_pcm_runtime *prtd = snd_soc_substream_to_rtd(substream); int ret; runtime = substream->runtime; |