summaryrefslogtreecommitdiffstats
path: root/sound/soc/qcom/qdsp6
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2024-05-07 03:38:02 +0200
committerMark Brown <broonie@kernel.org>2024-05-07 03:38:02 +0200
commitd98b07124ba42ba84740ca27f53ffba02abc1606 (patch)
treede9240b4a12436eb8385b7e175163be89f15d826 /sound/soc/qcom/qdsp6
parentALSA/ASoC: Intel: clarify Copyright information (diff)
parentASoC: sunxi: Use snd_soc_substream_to_rtd() for accessing private_data (diff)
downloadlinux-d98b07124ba42ba84740ca27f53ffba02abc1606.tar.xz
linux-d98b07124ba42ba84740ca27f53ffba02abc1606.zip
ASoC: Use snd_soc_substream_to_rtd() for accessing
Merge series from Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>: Do not open-code snd_soc_substream_to_rtd() when accessing snd_pcm_substream->private_data. This makes code more consistent with rest of ASoC and allows in the future to move the field to any other place or add additional checks in snd_soc_substream_to_rtd().
Diffstat (limited to 'sound/soc/qcom/qdsp6')
-rw-r--r--sound/soc/qcom/qdsp6/q6apm-dai.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/qcom/qdsp6/q6apm-dai.c b/sound/soc/qcom/qdsp6/q6apm-dai.c
index cee23d4bda6f..089960a79bd6 100644
--- a/sound/soc/qcom/qdsp6/q6apm-dai.c
+++ b/sound/soc/qcom/qdsp6/q6apm-dai.c
@@ -327,7 +327,7 @@ static int q6apm_dai_open(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{
struct snd_pcm_runtime *runtime = substream->runtime;
- struct snd_soc_pcm_runtime *soc_prtd = substream->private_data;
+ struct snd_soc_pcm_runtime *soc_prtd = snd_soc_substream_to_rtd(substream);
struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(soc_prtd, 0);
struct device *dev = component->dev;
struct q6apm_dai_data *pdata;