Skip to content

Commit 47aa516

Browse files
krzkbroonie
authored andcommitted
ASoC: sunxi: 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]> Reviewed-by: Jernej Skrabec <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 3e72659 commit 47aa516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sunxi/sun50i-dmic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static const struct dmic_rate dmic_rate_s[] = {
8686
static int sun50i_dmic_startup(struct snd_pcm_substream *substream,
8787
struct snd_soc_dai *cpu_dai)
8888
{
89-
struct snd_soc_pcm_runtime *rtd = substream->private_data;
89+
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
9090
struct sun50i_dmic_dev *host = snd_soc_dai_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0));
9191

9292
/* only support capture */

0 commit comments

Comments
 (0)