Skip to contentSkip to conversation

ASoC: soc-dapm.h: fixup warning struct snd_pcm_substream not declared

PATCH Superseded Lucas Tanure 4 participants 4 messages Feb 15, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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.

Fixes 078a85f2806f ("ASoC: dapm: Only power up active channels from a DAI")
---
 include/sound/soc-dapm.h | 1 +
 1 file changed, 1 insertion(+)
include/sound/soc-dapm.h +1 -0
index 77495e5988c1..8fbb50a11d80 100644
@@ -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
maintainer
#3 lore raw
In reply to Lucas Tanure
Quoted 7 lines · Lucas Tanure

Add sound/pcm.h header to include struct snd_pcm_substream used in snd_soc_dapm_update_dai function.

+#include <sound/pcm.h>

struct device;
struct snd_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.