[alsa-devel] [PATCH 2/3] ALSA: Add jack reporting API

Takashi Iwai tiwai at suse.de
Mon Jul 28 15:04:47 CEST 2008


At Sun, 27 Jul 2008 12:12:24 +0100,
Mark Brown wrote:
> 
> diff --git a/include/sound/jack.h b/include/sound/jack.h
> new file mode 100644
> index 0000000..6e12cae
> --- /dev/null
> +++ b/include/sound/jack.h
> @@ -0,0 +1,72 @@
> +#ifndef __SOUND_JACK_H
> +#define __SOUND_JACK_H
> +#ifdef CONFIG_SND_JACK
> +
> +int snd_jack_new(struct snd_card *card, const char *id, int type,
> +		 struct snd_jack **jack);
> +void snd_jack_set_parent(struct snd_jack *jack, struct device *parent);
> +
> +void snd_jack_report(struct snd_jack *jack, int status);
> +
> +#else
> +
> +int snd_jack_new(struct snd_card *card, const char *id, int type,
> +		 struct snd_jack **jack)
> +{
> +	return 0;
> +}
> +
> +void snd_jack_set_parent(struct snd_jack *jack, struct device *parent)
> +{
> +}
> +
> +void snd_jack_report(struct snd_jack *jack, int status)
> +{
> +}

They must be static inline.

> +
> +#endif

Missing #endif for __SOUND_JACK_H.


Takashi


More information about the Alsa-devel mailing list