We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e72659 commit 47aa516Copy full SHA for 47aa516
sound/soc/sunxi/sun50i-dmic.c
@@ -86,7 +86,7 @@ static const struct dmic_rate dmic_rate_s[] = {
86
static int sun50i_dmic_startup(struct snd_pcm_substream *substream,
87
struct snd_soc_dai *cpu_dai)
88
{
89
- struct snd_soc_pcm_runtime *rtd = substream->private_data;
+ struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
90
struct sun50i_dmic_dev *host = snd_soc_dai_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0));
91
92
/* only support capture */
0 commit comments