Skip to content

Commit 3e72659

Browse files
krzkbroonie
authored andcommitted
ASoC: samsung: 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-12-6f8a8902b479@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 22f5680 commit 3e72659

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/samsung/midas_wm1811.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static int midas_stop_fll1(struct snd_soc_pcm_runtime *rtd)
127127
static int midas_aif1_hw_params(struct snd_pcm_substream *substream,
128128
struct snd_pcm_hw_params *params)
129129
{
130-
struct snd_soc_pcm_runtime *rtd = substream->private_data;
130+
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
131131
unsigned int pll_out;
132132

133133
/* AIF1CLK should be at least 3MHz for "optimal performance" */

0 commit comments

Comments
 (0)