alsa-lib/include
Takashi Iwai ae564665ec Fix alsa/sound/*.h for external programs
The recent update of sound/*.h to sync with the latest Linus uapi
files broke the build of alsa-tools programs.  These files used to be
a modified version of Linux sound/* header files, so that they could
be built without Linux headers.  The special prefix like __user and
other things were worked around there.

We may do that again, but a better approach is to fix those things in
Linux kernel uapi side, while we keep the minimal workaround in
alsa-lib such as the __u16 and co type definitions.

This patch is such an attempt, namely:
- Keep the original $LINUX/uapi/sound/*.h in include/sound/uapi
  directory
- The "fixes" are applied to some uapi headers, so that they don't
  contain Linux-specific prefix and use of opaque struct like
  snd_ctl_elem_id
- The uapi headers are included indirectly from include/sound/*.h
- Some headers have inclusion of type_compat.h for the Linux variable
  types and prefixes
- type_compat.h tries to use <linux/types.h> when __linux__ is
  defined, instead of the own conflicting definitions

The last type might need a bit more adjustment depending on the
compiler, but it can be fixed locally without disturbing else.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-12-20 16:43:50 +01:00
..
sound Fix alsa/sound/*.h for external programs 2019-12-20 16:43:50 +01:00
alisp.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
alsa-symbols.h add support for GCC's LTO 2019-04-09 12:44:14 +02:00
aserver.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
asoundef.h asoundef.h: add CEA861_AUDIO_INFOFRAME defines 2019-11-25 10:36:05 +01:00
asoundlib-head.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
asoundlib-tail.h Create asoundlib.h dynamically according to configure options 2007-07-10 15:58:41 +02:00
bswap.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
conf.h conf: implement snd_config_add_before() and snd_config_add_after() 2019-11-14 16:56:05 +01:00
control.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
control_external.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
error.h Use __func__ instead of __FUNCTION__ 2019-06-12 08:52:07 +02:00
global.h Change snd_dlopen() function to return the error string 2017-11-27 21:48:20 +01:00
hwdep.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
input.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
list.h conf: implement snd_config_add_before() and snd_config_add_after() 2019-11-14 16:56:05 +01:00
local.h local.h: remove sound/asoundef.h dependency 2019-11-25 10:36:32 +01:00
Makefile.am Drop -I$includedir/alsa from alsa.pc 2019-03-28 08:01:34 +01:00
mixer.h mixer: simple - add snd_mixer_selem_id_parse() from amixer 2019-11-14 15:00:40 +01:00
mixer_abst.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
output.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm.h a set of fixes to reduce gcc warnings 2018-03-27 15:16:41 +02:00
pcm_external.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_extplug.h pcm: extplug: Keep format and channels the same if requested 2018-12-10 11:53:41 +01:00
pcm_ioplug.h ioplug: Fix comment in struct snd_pcm_ioplug 2018-10-02 17:56:51 +02:00
pcm_old.h pcm: fix get_stop_threshold alsa-lib 0.9 alias 2016-12-15 22:47:02 +01:00
pcm_plugin.h pcm: the maximal rate is 768000Hz, fix the remain code 2019-10-25 13:43:31 +02:00
pcm_rate.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
rawmidi.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
search.h Corrections by Kevin Conder <kconder@interaccess.com> 2002-03-12 20:14:33 +00:00
seq.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
seq_event.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
seq_midi_event.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
seqmid.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
sys.h Ok, added warning to sys/asoundlib.h with redirection to alsa/asoundlib.h. 2001-09-11 12:18:56 +00:00
timer.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
topology.h ASoC: topology: Add definitions for mclk_direction values 2018-04-20 09:27:29 +02:00
type_compat.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
use-case.h ucm: docs - remove MixerCopy values, add Priority for verb, improve priority docs 2019-12-10 11:48:06 +01:00