pipewire/spa/plugins/alsa/acp
George Kiagiadakis bb29deb45a acp: avoid copying structure into itself
sync_mixer() calls d->set_volume(d, &d->real_volume);
which makes v and &dev->real_volume point to the same memory area
and valgrind complains:

Source and destination overlap in memcpy(0xcc53e2c, 0xcc53e2c, 260)
   at 0x488CFA0: __GI_memcpy (vg_replace_strmem.c:1121)
   by 0xBB0803F: set_volume (acp.c:1143)
   by 0xBB0EDCB: acp_device_set_port (acp.c:1897)
   by 0xBA9CD87: impl_set_param (alsa-acp-device.c:757)

because the compiler apparently implicitly converts this into a memcpy()
and memcpy(3) explicitly says "The memory areas must not overlap."
2023-12-04 11:19:08 +01:00
..
acp.c acp: avoid copying structure into itself 2023-12-04 11:19:08 +01:00
acp.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
alsa-mixer.c acp: Respect XDG base directory spec when loading configs 2023-11-09 20:36:15 +00:00
alsa-mixer.h Revert "alsa: UCM conflicting devices changes" 2023-04-12 13:05:08 +02:00
alsa-ucm.c alsa: Allow to augment ucm port properties 2023-06-26 19:39:31 +00:00
alsa-ucm.h Revert "alsa: UCM conflicting devices changes" 2023-04-12 13:05:08 +02:00
alsa-util.c Revert "alsa-mixer: allow to re-attach the mixer control element" 2023-04-14 16:32:18 +02:00
alsa-util.h Revert "alsa: UCM conflicting devices changes" 2023-04-12 13:05:08 +02:00
array.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
card.h acp: add option to set Pro Audio channels 2023-01-31 15:59:39 +01:00
channelmap.h acp: don't mix non-AUX and AUX channels 2022-06-02 12:54:04 +02:00
compat.c spa: alsa: fix leaks in get_data_path() 2023-11-10 03:29:49 +01:00
compat.h acp: Respect XDG base directory spec when loading configs 2023-11-09 20:36:15 +00:00
conf-parser.c config.h is a local header, not a system one 2021-06-10 09:04:16 +10:00
conf-parser.h alsa-acp: Add libacp based card device 2020-07-06 12:20:09 +02:00
device-port.h Fix typos 2021-04-30 07:40:20 +00:00
dynarray.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
hashmap.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
idxset.h Revert "alsa: UCM conflicting devices changes" 2023-04-12 13:05:08 +02:00
llist.h alsa-acp: Add libacp based card device 2020-07-06 12:20:09 +02:00
meson.build treewide: meson.build: use dependency variable for SPA 2021-12-28 18:34:06 +01:00
proplist.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
volume.h alsa: get rid of non-portable isinf use 2023-08-31 10:37:22 +00:00