platform/upstream/pulseaudio.git
2 years agopulsecore/shm: Remove shm_marker struct packing for pa_atomic_t fields 10/268710/2
Marijn Suijten [Wed, 3 Nov 2021 16:40:19 +0000 (17:40 +0100)]
pulsecore/shm: Remove shm_marker struct packing for pa_atomic_t fields

Taking addresses of fields in a packed struct are not guaranteed to be
aligned, resulting in warnings such as:

    ../src/pulsecore/shm.c: In function 'sharedmem_create':
    ../src/pulsecore/shm.c:198:25: error: taking address of packed member of 'struct shm_marker' may result in an unaligned pointer value [-Werror=address-of-packed-member]
      198 |         pa_atomic_store(&marker->pid, (int) getpid());
          |                         ^~~~~~~~~~~~

The struct already has its fields and types laid out in such a way that
the desired packing (without padding) is guaranteed - enforce this with
a `static_assert` to get rid of the unaligned pointer warning.

Change-Id: I012f97f2df3248c0285a3b4f594ae218bc81385e
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/653>

2 years agoalsa-mixer: Set mdev to NULL if there is no mapping 09/268709/2
Igor V. Kovalenko [Fri, 6 Aug 2021 19:26:40 +0000 (22:26 +0300)]
alsa-mixer: Set mdev to NULL if there is no mapping

We check if mapping is NULL but if so we never set mdev, set it to NULL as well.

Fixes: 79cb1369fc4d22966cb65253e9da2ccda2f25b45
Change-Id: I615491e5752f2ad23794b90170fee291525659ce
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/615>

2 years agosink: Remove unused member variable in pa_sink 92/268692/4
Sangchul Lee [Thu, 30 Dec 2021 01:19:01 +0000 (10:19 +0900)]
sink: Remove unused member variable in pa_sink

'origin_avoid_resampling' is removed not used.

Change-Id: I5b80e140777c827ed3a515a0d07b557ce8278189
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
2 years agoalsa-udev: Fix unexpected non-usb udev dectection 56/268656/5
Seungbae Shin [Wed, 29 Dec 2021 04:03:23 +0000 (13:03 +0900)]
alsa-udev: Fix unexpected non-usb udev dectection

Change-Id: I55f2f08456cf905771645b115a46b647d8c39064

2 years agomeson: Fix external module build error 70/268570/6
Seungbae Shin [Mon, 27 Dec 2021 05:45:04 +0000 (14:45 +0900)]
meson: Fix external module build error

Change-Id: Ia1132f15eb741c0eb87e694768a2fe6a2433bcea

2 years agomeson: Fix packaging error 69/268569/5
Seungbae Shin [Mon, 27 Dec 2021 05:30:43 +0000 (14:30 +0900)]
meson: Fix packaging error

- Exclude unsupported module-virtual-surround-sink
- Exclude unused pulseaudio-x11.service
- Enable bluetooth using previous dependancy checks
  (will be reverted to upstream when bluez updated)

Change-Id: I1437e4f4571a59610a35e60d4394d89f229dff9f

2 years agoversion up 15.0 68/268568/4
Seungbae Shin [Mon, 27 Dec 2021 05:26:31 +0000 (14:26 +0900)]
version up 15.0

Change-Id: I79b2f835587a2e711badbd26dece95ce3e87ef36

2 years agoInitial conflict resolving 67/268567/4
Seungbae Shin [Mon, 27 Dec 2021 05:24:16 +0000 (14:24 +0900)]
Initial conflict resolving

Change-Id: Ia4f9d69834edafb1f11d0fd8385aed14b3894459

2 years agoMerge branch 'upstream/15.0' into tizen 66/268566/3
Seungbae Shin [Thu, 30 Dec 2021 07:39:51 +0000 (16:39 +0900)]
Merge branch 'upstream/15.0' into tizen

Change-Id: I2e305cd55adc2de24c0596c0dba83f44859b706b

2 years agoApply meson build 70/268070/15
Seungbae Shin [Wed, 15 Dec 2021 14:55:32 +0000 (23:55 +0900)]
Apply meson build

Change-Id: Ic4a66d67dd67ad7b74aacc7b0b27b7d9eb537836

3 years agoalsa-card: use tizen_usb.conf if profile set is not exist 25/264625/3 accepted/tizen/unified/20211102.024823 submit/tizen/20211013.065833 submit/tizen/20211015.121012 submit/tizen/20211028.130831 submit/tizen/20211101.022230
jungsup lee [Mon, 27 Sep 2021 09:36:39 +0000 (18:36 +0900)]
alsa-card: use tizen_usb.conf if profile set is not exist

[Version] 13.0-37
[Issue Type] Bug fix

Change-Id: Idde4aefcaa8718e26b6119147d2644685c8272b2

3 years agocore, sink-input: dump sink-input info when it exceeds the maximum connection 77/264877/6
Seungbae Shin [Fri, 1 Oct 2021 12:09:58 +0000 (21:09 +0900)]
core, sink-input: dump sink-input info when it exceeds the maximum connection

+ fix minor warning

[Version] 13.0-36
[Issue Type] Debugging

Change-Id: Ia33d4fc0507630576b1305acff64633853a99de3

3 years agoprotocol-native, client: dump current connections on every new incoming connection 84/250484/7
Seungbae Shin [Mon, 28 Dec 2020 07:44:25 +0000 (16:44 +0900)]
protocol-native, client: dump current connections on every new incoming connection

[Version] 13.0-35
[Issue Type] Debugging

Change-Id: I4078d1f7c8da1d4afbe4f472298aaf7f184c62e6

3 years agoAllow permission if the process that setting stream volume is identical to stream... 28/263628/1 accepted/tizen/6.5/unified/20211028.230123 accepted/tizen/unified/20210908.011435 submit/tizen/20210907.093521 submit/tizen_6.5/20211028.163601 tizen_6.5.m2_release
Seungbae Shin [Mon, 6 Sep 2021 11:15:18 +0000 (20:15 +0900)]
Allow permission if the process that setting stream volume is identical to stream creater

[Version] 13.0-34
[Issue Type] Bug fix

Change-Id: I739c602d6e63a4228cc4eaef9a16a27dd2078171

3 years agoloopback: Fix sink latency calculation if source is alsa source with fixed latency 68/262768/3 accepted/tizen/unified/20210903.083034 submit/tizen/20210902.050429
Georg Chini [Mon, 4 Jan 2021 20:08:05 +0000 (21:08 +0100)]
loopback: Fix sink latency calculation if source is alsa source with fixed latency

When an alsa source with fixed latency is used, the actual latency of the source
will only be one fragment size. This is not taken into account when the required
sink latency is calculated.

This patch fixes the issue.

[jungsup4.lee: backport mainline commit 0efae0]

[Version] 13.0-33
[Issue Type] Bug fix

Change-Id: If8b7aa3735c1a2456fa50f55b267180fa2efd1a1
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/451>

3 years agomutex-posix: fix svace defects (SIGN_EXTENSION) 56/262656/1 accepted/tizen/unified/20210819.123206 submit/tizen/20210818.030716
Seungbae Shin [Tue, 17 Aug 2021 09:10:46 +0000 (18:10 +0900)]
mutex-posix: fix svace defects (SIGN_EXTENSION)

[Version] 13.0-32
[Issue Type] Svace

Change-Id: Ibb61bbf8d069f869a695b40fa3c7db29be44c68f

3 years agobuild-sys: Fix a warning related to avahi and config data upstream/15.0 v15.0
Arun Raghavan [Tue, 27 Jul 2021 16:59:58 +0000 (12:59 -0400)]
build-sys: Fix a warning related to avahi and config data

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/608>

3 years agobuild-sys: Fix a warning related to gsettings and config data
Arun Raghavan [Tue, 27 Jul 2021 16:48:32 +0000 (12:48 -0400)]
build-sys: Fix a warning related to gsettings and config data

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/607>

3 years agoUpdate NEWS for 15.0
Arun Raghavan [Tue, 27 Jul 2021 16:42:33 +0000 (12:42 -0400)]
Update NEWS for 15.0

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/606>

3 years agoFix a strict-prototypes warning
Evan Miller [Wed, 7 Jul 2021 16:14:26 +0000 (16:14 +0000)]
Fix a strict-prototypes warning

Some older compilers complain about the empty arg list in
pa_memfd_is_locally_supported.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/603>

3 years agoiochannel: Fix FTBFS on Debian kfreebsd
Laurent Bigonville [Tue, 13 Jul 2021 08:49:01 +0000 (10:49 +0200)]
iochannel: Fix FTBFS on Debian kfreebsd

Fixes: #1233
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/605>

3 years agoalsa-ucm: fix persistent port names with alsa-lib >= 1.2.5
Igor V. Kovalenko [Wed, 30 Jun 2021 19:12:55 +0000 (22:12 +0300)]
alsa-ucm: fix persistent port names with alsa-lib >= 1.2.5

Alsa UCM device string can contain private configuration prefix required to make
correct device open call. Private prefix is dynamically generated by UCM manager
depending on internal state. Since pulseaudio sink/source port names currently
contain device string, these may change between runs breaking volume database
and module arguments referring to sink/source.

Fix this by skipping UCM private prefix available via `_alibpref` key while
creating UCM mapping name. Mapping object will still contain unmodified
device string for device open call.

See also https://github.com/alsa-project/alsa-ucm-conf/issues/104

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/598>

3 years agostream-restore: make version check stricter when dropping old entries
Tanu Kaskinen [Fri, 9 Jul 2021 09:32:27 +0000 (12:32 +0300)]
stream-restore: make version check stricter when dropping old entries

If we increment ENTRY_VERSION in the future, the old code would drop
entries with version 2, but we only want to drop entries with version 1.

This issue was spotted by Igor Kovalenko:
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/298#note_983365

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/604>

3 years agoi18n: Update .pot and .po files
Tanu Kaskinen [Mon, 5 Jul 2021 11:02:03 +0000 (14:02 +0300)]
i18n: Update .pot and .po files

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/602>

3 years agoTranslated using Weblate (Russian)
Alexey Rubtsov [Wed, 30 Jun 2021 12:06:30 +0000 (12:06 +0000)]
Translated using Weblate (Russian)

Currently translated at 98.2% (556 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/ru/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/601>

3 years agomodule-gsettings: Handle I/O hangup
Igor V. Kovalenko [Sun, 4 Jul 2021 06:58:26 +0000 (09:58 +0300)]
module-gsettings: Handle I/O hangup

When child `gsettings-helper` terminates prematurely, unconditionally reading
from child pipe fails in a busy loop until child process is reaped.

Fix this by terminating module upon PA_IO_EVENT_HANGUP or PA_IO_EVENT_ERROR.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/600>

3 years agoalsa-ucm: Log about the correct path value when probing volumes
Alper Nebi Yasak [Tue, 29 Jun 2021 16:30:43 +0000 (19:30 +0300)]
alsa-ucm: Log about the correct path value when probing volumes

These two log messages are most likely intended for the path that was
just tried, but they are mistakenly printing the name of the port's
current path. Fix them.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/594>

3 years agoTranslated using Weblate (Finnish)
Robin Lahtinen [Mon, 28 Jun 2021 19:45:01 +0000 (19:45 +0000)]
Translated using Weblate (Finnish)

Currently translated at 91.1% (516 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/fi/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/597>

3 years agoTranslated using Weblate (Spanish)
Toni Estevez [Sat, 26 Jun 2021 15:50:39 +0000 (15:50 +0000)]
Translated using Weblate (Spanish)

Currently translated at 94.8% (537 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/es/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/597>

3 years agoTranslated using Weblate (Spanish)
Emilio Herrera [Sun, 27 Jun 2021 14:13:35 +0000 (14:13 +0000)]
Translated using Weblate (Spanish)

Currently translated at 94.8% (537 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/es/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/597>

3 years agoTranslated using Weblate (Korean)
simmon [Mon, 21 Jun 2021 09:58:00 +0000 (09:58 +0000)]
Translated using Weblate (Korean)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/ko/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/597>

3 years agobuild-sys: meson: Require bluez dependency if bluez5 feature is enabled
Igor V. Kovalenko [Fri, 18 Jun 2021 17:48:12 +0000 (20:48 +0300)]
build-sys: meson: Require bluez dependency if bluez5 feature is enabled

Build breaks if bluez5 and bluez5-native-headset are both enabled
but bluez headers are not available.

Fix this by changing `bluez5` to Meson feature requiring `bluez` dependency.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/583>

3 years agobuild-sys: meson: require GIO dependency for RTP-GStreamer
Igor V. Kovalenko [Sun, 20 Jun 2021 23:32:41 +0000 (02:32 +0300)]
build-sys: meson: require GIO dependency for RTP-GStreamer

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/584>

3 years agoalsa-sink/source: set volume to hw immediately if ucm_port changing
Hui Wang [Mon, 7 Jun 2021 08:58:36 +0000 (16:58 +0800)]
alsa-sink/source: set volume to hw immediately if ucm_port changing

Recently we found an issue of output volume on speaker and headphone,
they should have their own volume but in practice they share one
output volume.

This issue happens on the laptops which use the ucm2 sof-hda-dsp,
originally the speaker has output volume A while the headphone has the
output volume B, suppose the speaker is the active port at the moment
and the output volume is A, users plug a headphone to the jack and the
headphone becomes the active port, in this process, ucm_set_port()
calls _disdev/_enadev which triggers the io_mixer_callback(), in the
meanwhile, the module_device_restore will restore the headphone's
volume to B, it will call set_volume_cb() to set the volume to B, but
this value is not written to hw immediately, during the time of
waiting for the B to be written to the hw, the io_mixer_callback()
calls get_volume_cb(), it reads hw volume and gets the volume A, then
it overrides the output volume to A, this results in the headphone
gets the volume A instead of B.

If a machine doesn't use the ucm, this issue will not happen since the
set_port_cb() will not trigger the io_mixer_callback(). If the ports
don't belong to the same sink/source, this issue also doesn't happen.

BugLink: http://bugs.launchpad.net/bugs/1930188
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/577>

3 years agowin32: Add DACLs for directories created by system daemon v14.99.2
Patrick Gaskin [Sun, 30 May 2021 19:28:46 +0000 (15:28 -0400)]
win32: Add DACLs for directories created by system daemon

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/549>

3 years agodaemon: Add support for running as a service on win32
Patrick Gaskin [Sun, 30 May 2021 19:28:30 +0000 (15:28 -0400)]
daemon: Add support for running as a service on win32

* Minimal implementation of --system on win32.
* Wrap main with a Windows Service on win32 (with a fallback to
  running it directly).
* Update PA_SYSTEM_{RUNTIME,STATE,CONFIG}_PATH and HOME dynamically
  on Windows (overrides the build config, similar to the existing
  config path replacement logic).

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/549>

3 years agoalsa-mixer: only use switch to mute Front in the Headphone path
Hui Wang [Fri, 28 May 2021 02:25:27 +0000 (10:25 +0800)]
alsa-mixer: only use switch to mute Front in the Headphone path

According to the alsa-info.txt in the pipewire issues of 747 and 1206,
the Front Playback Volume is shared by Headphone and Lineout or
Headphone and Speaker, But Headphone, Lineout or Speaker they all have
independent Playback Switch, change to only use switch to mute the
Lineout or Speaker. This could resolve the issues of 747 and 1206.

BugLink: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1206
BugLink: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/747
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/565>

3 years agowin32: Misc Unix socket fixes
Patrick Gaskin [Sun, 30 May 2021 19:25:10 +0000 (15:25 -0400)]
win32: Misc Unix socket fixes

* Make pa_parse_address recognize Unix socket addresses with
  Windows-style absolute paths.
* Treat WASEINVAL as a stale socket.
* Make HAVE_AF_UNIX in config templates recognize winsock2.h.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/546>

3 years agowin32: Fix environment variables set with pa_{unset,set}_env not taking effect
Patrick Gaskin [Sun, 30 May 2021 19:24:56 +0000 (15:24 -0400)]
win32: Fix environment variables set with pa_{unset,set}_env not taking effect

SetEnvironmentVariable is not visible to getenv.

See https://github.com/curl/curl/issues/4774.
See https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/getenv-wgetenv.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/546>

3 years agowin32: Fix minimum Windows version for inet_{ntop,pton}
Patrick Gaskin [Sun, 30 May 2021 19:24:26 +0000 (15:24 -0400)]
win32: Fix minimum Windows version for inet_{ntop,pton}

https://docs.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-inet_ntop#requirements

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/546>

3 years agogsettings: Emit glib logs on stderr, not stdout
Scott Worley [Mon, 14 Jun 2021 03:11:34 +0000 (20:11 -0700)]
gsettings: Emit glib logs on stderr, not stdout

Having G_MESSAGES_DEBUG=all set in the environment (a normal thing to do
when debugging Gnome troubles) causes gsettings-helper to emit a bunch
of helpful gnome debug logs (which is good), but before this change they
were printed on stdout rather than stderr (which was bad!).  Rather than
going somewhere the user could see, these log messages were being sent
to the pulesaudio server and interpreted as the src/modules/stdin-util.c
protocol.  pulseadio waits to see a '!' message from gsettings-helper
before continuing startup.  With the log messages mixed in messing up
the stdin-util protocol, pulseaudio never saw the '!' message, and so
never completed startup.

This simple fix relies on a recent glib > 2.68 (Mar 2021), so builds
against old versions of glib will still have this problem!  We consider
this good enough until some complains otherwise.

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1222
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/579>

3 years agoalsa-mixer: updated Sennheiser GSX 1200 device ID
Igor V. Kovalenko [Tue, 15 Jun 2021 06:19:09 +0000 (09:19 +0300)]
alsa-mixer: updated Sennheiser GSX 1200 device ID

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/581>

3 years agodoc: link to site documentation for IRC channels
Igor V. Kovalenko [Mon, 14 Jun 2021 15:53:43 +0000 (18:53 +0300)]
doc: link to site documentation for IRC channels

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/580>

3 years agoalsa-profiles: Add NI Komplete Audio 6 profiles
Johannes Wolf [Thu, 27 May 2021 16:39:40 +0000 (18:39 +0200)]
alsa-profiles: Add NI Komplete Audio 6 profiles

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/564>

3 years agocard: handle sticky profile flag
Igor V. Kovalenko [Tue, 15 Dec 2020 21:35:05 +0000 (00:35 +0300)]
card: handle sticky profile flag

New card database entry version 5 for card profile is sticky flag.
New messaging API handlers set-profile-sticky and get-profile-sticky.

When card profile is sticky, always restore it even if it is unavailable,
and prevent switching from it when ports become unavailable.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/568>

3 years agoalsa-mixer: check if mapping is NULL before using it
Igor V. Kovalenko [Mon, 7 Jun 2021 05:53:24 +0000 (08:53 +0300)]
alsa-mixer: check if mapping is NULL before using it

Fix Debian bullseye bug where adding this line makes pulseaudio crash on startup

`load-module module-alsa-sink device=hw:1,0 control=Wave`

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989103

Fixes: dacfcbb09 ("alsa-ucm: use the proper mixer name for ucm pcm sink/source")
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/576>

3 years agoloopback: Fix crash bug 77/259377/5 accepted/tizen/unified/20210624.131839 submit/tizen/20210623.034843
Georg Chini [Mon, 19 Apr 2021 06:19:50 +0000 (08:19 +0200)]
loopback: Fix crash bug

The loopback message may be called after the sink input is already destroyed which causes
a crash. Also memory is leaked because the message object is not correctly freed.

This patch fixes the problems by adding a "dead" flag to the message structure and freeing
the message object on exit.

[jcsing.lee: backport mainline commit 468e3669a for fixing crash]

[Version] 13.0-31
[Issue Type] Bug fix

Change-Id: Id5ce55554fadda9cffeca698685897a88f45c2cb
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/541>

3 years agobuild-sys: meson: check if NEON code can be compiled on arm
garrison [Fri, 4 Jun 2021 22:13:02 +0000 (22:13 +0000)]
build-sys: meson: check if NEON code can be compiled on arm

When Meson SIMD module returns HAVE_NEON=1 on arm host, do extra compile check
to verify compiler can actually handle NEON code.

Related Meson issue #6361 https://github.com/mesonbuild/meson/issues/6361

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/574>

3 years agobuild-sys: meson: check HAVE_MMX and HAVE_SSE before calling initializers
Igor V. Kovalenko [Sat, 5 Jun 2021 09:37:24 +0000 (12:37 +0300)]
build-sys: meson: check HAVE_MMX and HAVE_SSE before calling initializers

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/575>

3 years agojson: remove json from public API
Igor V. Kovalenko [Tue, 1 Jun 2021 19:35:26 +0000 (22:35 +0300)]
json: remove json from public API

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/570>

3 years agotests: fix json test for large numbers
Felipe Sateler [Wed, 2 Jun 2021 00:42:44 +0000 (20:42 -0400)]
tests: fix json test for large numbers

PRIu64 means print a uint64_t, not an unsigned long. This
is warned by the compiler:

warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'long unsigned int'

This causes build failures on some 32-bit archs

https://buildd.debian.org/status/fetch.php?pkg=pulseaudio&arch=i386&ver=14.99.1%2Bdfsg1-2&stamp=1622553415&raw=0

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/571>

3 years agobuild-sys: meson: restore big endian detection
Igor V. Kovalenko [Thu, 3 Jun 2021 06:43:10 +0000 (09:43 +0300)]
build-sys: meson: restore big endian detection

Autotools used AC_C_BIGENDIAN to set WORDS_BIGENDIAN, add Meson implementation.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/572>

3 years agowebrtc: Avoid using dynamic strings as format strings
Ilja van Sprundel [Sun, 23 May 2021 21:10:49 +0000 (21:10 +0000)]
webrtc: Avoid using dynamic strings as format strings

Properly call format functions, dynamic strings shouldn't be passed as
format strings. Instead a format string of "%s" should be used, with the
dynamic string as it's argument.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/563>

3 years agoTranslated using Weblate (Finnish)
Ricky Tigg [Fri, 28 May 2021 13:46:13 +0000 (13:46 +0000)]
Translated using Weblate (Finnish)

Currently translated at 90.9% (515 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/fi/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Danish)
scootergrisen [Fri, 21 May 2021 22:52:52 +0000 (22:52 +0000)]
Translated using Weblate (Danish)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/da/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Danish)
scootergrisen [Fri, 21 May 2021 22:33:37 +0000 (22:33 +0000)]
Translated using Weblate (Danish)

Currently translated at 97.7% (553 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/da/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Ukrainian)
Yuri Chornoivan [Tue, 18 May 2021 11:01:49 +0000 (11:01 +0000)]
Translated using Weblate (Ukrainian)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/uk/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Hebrew)
Yaron Shahrabani [Tue, 11 May 2021 10:53:45 +0000 (10:53 +0000)]
Translated using Weblate (Hebrew)

Currently translated at 29.6% (168 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/he/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Hebrew)
Yaron Shahrabani [Mon, 10 May 2021 05:46:44 +0000 (05:46 +0000)]
Translated using Weblate (Hebrew)

Currently translated at 28.6% (162 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/he/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Swedish)
Anders Jonsson [Mon, 3 May 2021 15:28:27 +0000 (15:28 +0000)]
Translated using Weblate (Swedish)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/sv/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Italian)
Milo Casagrande [Sun, 18 Apr 2021 19:42:14 +0000 (19:42 +0000)]
Translated using Weblate (Italian)

Currently translated at 98.5% (558 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/it/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Danish)
scootergrisen [Thu, 15 Apr 2021 12:23:52 +0000 (12:23 +0000)]
Translated using Weblate (Danish)

Currently translated at 97.3% (551 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/da/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Korean)
simmon [Mon, 12 Apr 2021 05:11:25 +0000 (05:11 +0000)]
Translated using Weblate (Korean)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/ko/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Spanish)
Toni Estevez [Sun, 11 Apr 2021 07:19:23 +0000 (07:19 +0000)]
Translated using Weblate (Spanish)

Currently translated at 91.5% (518 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/es/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Korean)
simmon [Tue, 6 Apr 2021 04:25:12 +0000 (04:25 +0000)]
Translated using Weblate (Korean)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/ko/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Korean)
simmon [Thu, 1 Apr 2021 06:02:28 +0000 (06:02 +0000)]
Translated using Weblate (Korean)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/ko/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Dutch)
Pjotr Vertaalt [Mon, 29 Mar 2021 22:09:17 +0000 (22:09 +0000)]
Translated using Weblate (Dutch)

Currently translated at 99.1% (561 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/nl/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Dutch)
Pjotr Vertaalt [Thu, 25 Mar 2021 20:36:38 +0000 (20:36 +0000)]
Translated using Weblate (Dutch)

Currently translated at 99.1% (561 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/nl/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Korean)
simmon [Thu, 25 Mar 2021 07:51:29 +0000 (07:51 +0000)]
Translated using Weblate (Korean)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/ko/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Hebrew)
Yaron Shahrabani [Thu, 25 Mar 2021 08:05:57 +0000 (08:05 +0000)]
Translated using Weblate (Hebrew)

Currently translated at 27.0% (153 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/he/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Tue, 23 Mar 2021 12:06:02 +0000 (12:06 +0000)]
Translated using Weblate (Swedish)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/sv/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Dutch)
Pjotr Vertaalt [Wed, 24 Mar 2021 08:53:48 +0000 (08:53 +0000)]
Translated using Weblate (Dutch)

Currently translated at 98.9% (560 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/nl/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Dutch)
Pjotr Vertaalt [Mon, 22 Mar 2021 19:39:13 +0000 (19:39 +0000)]
Translated using Weblate (Dutch)

Currently translated at 97.5% (552 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/nl/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Dutch)
Pjotr Vertaalt [Mon, 22 Mar 2021 18:00:58 +0000 (18:00 +0000)]
Translated using Weblate (Dutch)

Currently translated at 97.5% (552 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/nl/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Korean)
simmon [Fri, 19 Mar 2021 18:25:46 +0000 (18:25 +0000)]
Translated using Weblate (Korean)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/ko/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Italian)
Milo Casagrande [Thu, 18 Mar 2021 10:29:19 +0000 (10:29 +0000)]
Translated using Weblate (Italian)

Currently translated at 97.8% (554 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/it/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Norwegian Nynorsk)
Karl Ove Hufthammer [Wed, 10 Mar 2021 19:59:00 +0000 (19:59 +0000)]
Translated using Weblate (Norwegian Nynorsk)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/nn/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Turkish)
Oğuz Ersen [Tue, 9 Mar 2021 10:14:28 +0000 (10:14 +0000)]
Translated using Weblate (Turkish)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/tr/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Finnish)
Ricky Tigg [Tue, 9 Mar 2021 13:14:08 +0000 (13:14 +0000)]
Translated using Weblate (Finnish)

Currently translated at 90.9% (515 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/fi/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Polish)
Piotr Drąg [Tue, 9 Mar 2021 15:55:30 +0000 (15:55 +0000)]
Translated using Weblate (Polish)

Currently translated at 100.0% (566 of 566 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/pl/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoTranslated using Weblate (Hebrew)
Yaron Shahrabani [Mon, 8 Mar 2021 08:42:31 +0000 (08:42 +0000)]
Translated using Weblate (Hebrew)

Currently translated at 26.0% (147 of 564 strings)

Translation: pulseaudio/pulseaudio
Translate-URL: https://translate.fedoraproject.org/projects/pulseaudio/pulseaudio/he/
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/573>

3 years agoalsa-mixer: prevent double-free on decibel fixes object key
Igor V. Kovalenko [Tue, 1 Jun 2021 17:27:03 +0000 (20:27 +0300)]
alsa-mixer: prevent double-free on decibel fixes object key

When decibel fixes object is cloned, there is only a shallow copy of `key`
string member of original object. This may lead to double-free crash reported in
pipewire tracker https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1125

Fix this by doing a deep copy of `key` string to maintain correct ownership.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/569>

3 years agoChange HAL configuration path 13/259113/1 accepted/tizen/unified/20210608.131345 submit/tizen/20210604.030216
Seungbae Shin [Tue, 1 Jun 2021 07:51:30 +0000 (16:51 +0900)]
Change HAL configuration path

Followings configurations are moved to HAL directory

/usr/share/pulseaudio/ to /hal/share/pulseaudio/
/etc/pulse/ to /hal/etc/pulse/

[Version] 13.0-30
[Issue Type] New HAL

Change-Id: I2aa68e3c18176058c68110689adff7d07648fd99

3 years agoDon't link libpulsecommon with GLib and GTK
Felipe Sateler [Wed, 19 May 2021 04:15:29 +0000 (00:15 -0400)]
Don't link libpulsecommon with GLib and GTK

This was the behaviour with the autotools build.

Fixes #1210

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/559>

3 years agoudev: fix match expression to Focusrite Saffire Pro i/o series for ignorance
Takashi Sakamoto [Sun, 30 May 2021 04:09:44 +0000 (13:09 +0900)]
udev: fix match expression to Focusrite Saffire Pro i/o series for ignorance

It seems that in sound context environment variable is not available for
match expression.

This commit utilizes walkthrough to refer to attributes in fw node. The
combination of vendor, model, units is enough to match the node since
the attributes of fw unit doesn't have vendor.

Fix: 37358e42c49a ("alsa: Suppress udev detection of sound card for some units on IEEE 1394 bus")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/566>

3 years agoalsa-mixer: Add support for usb audio in the Dell dock WD19
Igor V. Kovalenko [Wed, 19 May 2021 17:57:52 +0000 (20:57 +0300)]
alsa-mixer: Add support for usb audio in the Dell dock WD19

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/562>

3 years agobluetooth: aptX: Improve error message for when aptX element is not found
Sanchayan Maity [Wed, 19 May 2021 13:55:08 +0000 (19:25 +0530)]
bluetooth: aptX: Improve error message for when aptX element is not found

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/561>

3 years agobluetooth: ldac: Fix missing check for RTP LDAC payloader element
Sanchayan Maity [Wed, 19 May 2021 08:07:37 +0000 (13:37 +0530)]
bluetooth: ldac: Fix missing check for RTP LDAC payloader element

While at it, improve the error message to include the name of the
element which was not found.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/560>

3 years agobuild-sys: meson: make doxygen optional
Igor V. Kovalenko [Tue, 18 May 2021 21:52:56 +0000 (00:52 +0300)]
build-sys: meson: make doxygen optional

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/558>

3 years agobuild-sys: meson: only require libltdl if daemon is built
Igor V. Kovalenko [Tue, 18 May 2021 16:47:32 +0000 (19:47 +0300)]
build-sys: meson: only require libltdl if daemon is built

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/557>

3 years agobuild-sys: Fix a couple of meson warnings v14.99.1
Arun Raghavan [Mon, 17 May 2021 20:03:28 +0000 (16:03 -0400)]
build-sys: Fix a couple of meson warnings

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/556>

3 years agobuild-sys: Bump libpulse soversion
Arun Raghavan [Mon, 17 May 2021 15:32:35 +0000 (11:32 -0400)]
build-sys: Bump libpulse soversion

Lots of changes, particularly related to the messaging API.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/555>

3 years agoApply 3 suggestion(s) to 1 file(s)
Jason Nader [Sat, 13 Mar 2021 23:49:44 +0000 (23:49 +0000)]
Apply 3 suggestion(s) to 1 file(s)

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/430>

3 years agoApply 1 suggestion(s) to 1 file(s)
Jason Nader [Mon, 1 Feb 2021 10:06:21 +0000 (10:06 +0000)]
Apply 1 suggestion(s) to 1 file(s)

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/430>

3 years agoApply 1 suggestion(s) to 1 file(s)
Jason Nader [Mon, 1 Feb 2021 10:06:06 +0000 (10:06 +0000)]
Apply 1 suggestion(s) to 1 file(s)

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/430>

3 years agoApply 1 suggestion(s) to 1 file(s)
Jason Nader [Mon, 1 Feb 2021 10:06:04 +0000 (10:06 +0000)]
Apply 1 suggestion(s) to 1 file(s)

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/430>

3 years agopactl: add `get-(source|sink)-mute` commands
Klaas van Schelven [Mon, 18 Jan 2021 12:55:29 +0000 (13:55 +0100)]
pactl: add `get-(source|sink)-mute` commands

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/430>

3 years agopactl: add `get_source_volume` command
Jason Nader [Thu, 10 Dec 2020 04:58:20 +0000 (13:58 +0900)]
pactl: add `get_source_volume` command

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/430>

3 years agopactl: add `get_default_source` command
Jason Nader [Thu, 10 Dec 2020 04:49:53 +0000 (13:49 +0900)]
pactl: add `get_default_source` command

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/430>

3 years agopactl: add `get-sink-volume` command
Jason Nader [Tue, 8 Dec 2020 04:55:31 +0000 (13:55 +0900)]
pactl: add `get-sink-volume` command

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/430>