1config BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC
2	bool
3	default y if BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS || \
4		BR2_TOOLCHAIN_HAS_SYNC_4
5
6config BR2_PACKAGE_PULSEAUDIO_ENABLE_ATOMIC
7	bool
8	select BR2_PACKAGE_LIBATOMIC_OPS if !BR2_TOOLCHAIN_HAS_SYNC_4
9
10config BR2_PACKAGE_PULSEAUDIO
11	bool "pulseaudio"
12	depends on BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC
13	depends on BR2_USE_WCHAR
14	depends on BR2_TOOLCHAIN_HAS_THREADS
15	depends on !BR2_STATIC_LIBS
16	depends on BR2_USE_MMU # fork()
17	select BR2_PACKAGE_ALSA_LIB_PCM if BR2_PACKAGE_ALSA_LIB
18	select BR2_PACKAGE_ALSA_LIB_MIXER if BR2_PACKAGE_ALSA_LIB
19	select BR2_PACKAGE_ALSA_LIB_UCM if BR2_PACKAGE_ALSA_LIB
20	select BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_AUDIO if BR2_PACKAGE_BLUEZ5_UTILS # runtime
21	select BR2_PACKAGE_LIBGLIB2
22	select BR2_PACKAGE_LIBTOOL
23	select BR2_PACKAGE_LIBSNDFILE
24	select BR2_PACKAGE_PULSEAUDIO_ENABLE_ATOMIC
25	help
26	  PulseAudio is a sound system for POSIX OSes, meaning that it
27	  is a proxy for your sound applications. It allows you to do
28	  advanced operations on your sound data as it passes between
29	  your application and your hardware. Things like transferring
30	  the audio to a different machine, changing the sample format
31	  or channel count and mixing several sounds into one are
32	  easily achieved using a sound server.
33
34	  http://pulseaudio.org
35
36if BR2_PACKAGE_PULSEAUDIO
37
38config BR2_PACKAGE_PULSEAUDIO_DAEMON
39	bool "start as a system daemon"
40	help
41	  PulseAudio can be started as a system daemon. This is not the
42	  recommended way of using PulseAudio unless you are building a
43	  headless system.
44
45endif
46
47comment "pulseaudio needs a toolchain w/ wchar, threads, dynamic library"
48	depends on BR2_USE_MMU
49	depends on BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC
50	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
51