summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2022-09-20 08:32:25 +0200
committerMark Brown <broonie@kernel.org>2022-09-20 13:19:31 +0200
commita26ec2acb2043a52c41d2b651b30d2df475f4263 (patch)
tree603d6639c8d628af5f4adb0a1c892c79c6974ff9 /include/sound/soc.h
parentASoC: soc.h: remove num_cpus/codecs (diff)
downloadlinux-a26ec2acb2043a52c41d2b651b30d2df475f4263.tar.xz
linux-a26ec2acb2043a52c41d2b651b30d2df475f4263.zip
ASoC: soc.h: use defined number instead of direct number
snd_soc_pcm_runtime has dpcm for Playback/Capture, but it is defined directly "2". It should use defined number. struct snd_soc_pcm_runtime { ... => struct snd_soc_dpcm_runtime dpcm[2]; ... } This patch fixup it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87r106v9mv.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index f5e0c402acb7..4adb6236860c 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1062,7 +1062,7 @@ struct snd_soc_pcm_runtime {
unsigned int params_select; /* currently selected param for dai link */
/* Dynamic PCM BE runtime data */
- struct snd_soc_dpcm_runtime dpcm[2];
+ struct snd_soc_dpcm_runtime dpcm[SNDRV_PCM_STREAM_LAST + 1];
long pmdown_time;