summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorHenrik Enquist <henrik.enquist@gmail.com>2026-10-21 09:46:45 +0200
committerTakashi Iwai <tiwai@suse.de>2026-10-21 14:55:53 +0200
commitc3bde2beacbcb40790f0e3c3f909f9e16bbced9c (patch)
tree23f70a7562f4bbc52504c24f5ab079ecf24f0a32 /scripts/Makefile.thinlto
parentc338e77291d6b1b6aee6d45b3cc523f97199a011 (diff)
downloadlinux-c3bde2beacbcb40790f0e3c3f909f9e16bbced9c.tar.gz
linux-c3bde2beacbcb40790f0e3c3f909f9e16bbced9c.zip
ALSA: aloop: Update the PCM Slave controls for a matching playback
The "PCM Slave" format, rate, channels and access controls report the parameters of the playback side of a cable. loopback_check_format() updates them when a playback starts, but returns early when a capture is open and its parameters match. The controls then keep the module defaults, or the parameters of an earlier stream. A playback that joins an open capture with the same parameters is the normal case without notify, where it is constrained to the capture's parameters, and also with notify whenever the player happens to use them. An application that reads the controls to find the playback's parameters, for example to reopen the capture side at the right rate after a restart, then gets the wrong values. Only skip the capture stop when the parameters match, and update the controls in every case. A value event is still sent only for a control whose value changes. Reproducer: arecord -D hw:Loopback,1,0 -r 44100 -f S16_LE -c 2 /dev/null & aplay -D hw:Loopback,0,0 -t raw -r 44100 -f S16_LE -c 2 /dev/zero & amixer -c Loopback cget "iface=PCM,name='PCM Slave Rate',device=1" Before: the control reports 48000, the module default. After: it reports 44100. Fixes: 597603d615d2 ("ALSA: introduce the snd-aloop module for the PCM loopback") Cc: stable@vger.kernel.org Signed-off-by: Henrik Enquist <henrik.enquist@gmail.com> Link: https://patch.msgid.link/20261021-aloop-slave-controls-v1-1-62297727177f@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions