Re: [PATCH] ASoC: soc-dapm.h: fixup warning struct snd_pcm_substream not declared

From: Mark Brown
Date: Wed Feb 15 2023 - 07:59:15 EST


On Wed, Feb 15, 2023 at 09:46:43AM +0000, Lucas Tanure wrote:
> 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.

Attachment: signature.asc
Description: PGP signature