diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-04-30 16:02:12 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-05-06 16:59:48 +0200 |
commit | 72a666f47f958a57db16b6bdd9ed385674069693 (patch) | |
tree | ce3c1c0c8a82947e93b2dbc5ca805f47330b43e0 | |
parent | ASoC: tegra: Use snd_soc_substream_to_rtd() for accessing private_data (diff) | |
download | linux-72a666f47f958a57db16b6bdd9ed385674069693.tar.xz linux-72a666f47f958a57db16b6bdd9ed385674069693.zip |
ASoC: ti: 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-3-6f8a8902b479@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/ti/omap-hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/ti/omap-hdmi.c b/sound/soc/ti/omap-hdmi.c index 4513b527ab97..639bc83f4263 100644 --- a/sound/soc/ti/omap-hdmi.c +++ b/sound/soc/ti/omap-hdmi.c @@ -40,7 +40,7 @@ struct hdmi_audio_data { static struct hdmi_audio_data *card_drvdata_substream(struct snd_pcm_substream *ss) { - struct snd_soc_pcm_runtime *rtd = ss->private_data; + struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(ss); return snd_soc_card_get_drvdata(rtd->card); } |