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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 22f5680 commit 3e72659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)