ASoC: soc-dapm.h: fixup warning struct snd_pcm_substream not declared
PATCH 1/1 ASoC: soc-dapm.h: fixup warning struct snd_pcm_substream not declared
Add sound/pcm.h header to include struct snd_pcm_substream used in snd_soc_dapm_update_dai function.
--- include/sound/soc-dapm.h | 1 + 1 file changed, 1 insertion(+)
include/sound/soc-dapm.h +1 -0
@@ -14,6 +14,7 @@#include <sound/control.h> #include <sound/soc-topology.h> #include <sound/asoc.h> +#include <sound/pcm.h> struct device ;struct snd_soc_pcm_runtime ;
Signature · 1 line
2.39.1
Il 15/02/23 10:46, Lucas Tanure ha scritto:
Quoted 5 lines
Add
sound/pcm.hheader to include structsnd_pcm_substreamused insnd_soc_dapm_update_daifunction.Fixes 078a85f2806f ("ASoC: dapm: Only power up active channels from a DAI")Signed-off-by Lucas Tanure <[email protected]>
Quoted 6 lines · Lucas Tanure
Add
sound/pcm.hheader to include structsnd_pcm_substreamused insnd_soc_dapm_update_daifunction.Fixes 078a85f2806f ("ASoC: dapm: Only power up active channels from a DAI")Signed-off-by Lucas Tanure <[email protected]>---
Thanks,
Charles
Mark Brown
maintainerQuoted 7 lines · Lucas Tanure
Add
sound/pcm.hheader to include structsnd_pcm_substreamused insnd_soc_dapm_update_daifunction.+#include <
sound/pcm.h>struct device;
structsnd_soc_pcm_runtime;
This should be a forward declaration of the struct like the adjacent forward declarations that are already there, we only pass a pointer to it we don't need the contents.