Re: [PATCH 2/3] ALSA: Add jack reporting API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux