Audacity forces re-initialization of audio devices, corrupting connection status for USB-DAC

since the previous topic has been locked; Starting Audacity kills sound - #10 by D.Dave

For me, the suggested solution does not work.
Audacity is already set to ALSA: pulse

Discussions marked as solved are closed if there are no further comments for 15 days

Please post response to this command to show your system information

inxi -Fazy

When Audacity is launched the audio capture source is usually inactive
Clicking the recording level control Click to Start Monitoring activates the ALSA plug-in for recording in PulseAudio
(screenshot in previous topic shows Recording tab pavucontrol --tab=2 )

But the ALSA plug-in for audio playback is activated automatically when playback is started in Audacity

Screenshot_2021-05-27_09-36-27

The default sink will be used by PulseAudio for audio playback unless the user selects a different device in pavucontrol

Use this command to check which device is set as the default sink

pacmd dump | grep default-sink

set-default-sink alsa_output.usb-KORG_INC._KAOSS_DJ-00.analog-surround-40

(this is without starting audacity.)

System:

Kernel: 5.10.36-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
root=UUID=45ed8835-a939-47a7-b966-39377ad7ee37 rw ipv6.disable=1 quiet
apparmor=1 security=apparmor udev.log_priority=3 ipv6.disable=1
Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm4 vt: 7
dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASRock model: X470 Taichi serial:
UEFI-[Legacy]: American Megatrends v: P4.20 date: 07/22/2020
CPU:
Info: 8-Core model: AMD Ryzen 7 3800X bits: 64 type: MT MCP arch: Zen 2
family: 17 (23) model-id: 71 (113) stepping: 0 microcode: 8701021 cache:
L2: 4 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 124857
Speed: 2231 MHz min/max: 2200/3900 MHz boost: enabled Core speeds (MHz):
1: 2231 2: 1989 3: 2003 4: 3672 5: 2200 6: 2200 7: 2199 8: 2200 9: 2010
10: 3672 11: 2200 12: 2200 13: 2200 14: 2200 15: 2126 16: 2024
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP:
conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GP104 [GeForce GTX 1080] driver: nvidia v: 460.80
alternate: nouveau,nvidia_drm bus-ID: 0e:00.0 chip-ID: 10de:1b80
class-ID: 0300
Display: x11 server: X.Org 1.20.11 driver: loaded: nvidia display-ID: :0.0
screens: 1
Screen-1: 0 s-res: 6400x1440 s-dpi: 96 s-size: 1693x381mm (66.7x15.0")
s-diag: 1735mm (68.3")
Monitor-1: DVI-D-0 res: 1920x1080 hz: 60 dpi: 102
size: 477x268mm (18.8x10.6") diag: 547mm (21.5")
Monitor-2: HDMI-0 res: 1920x1080 hz: 60 dpi: 102
size: 477x268mm (18.8x10.6") diag: 547mm (21.5")
Monitor-3: DP-4 res: 2560x1440 hz: 60 dpi: 109 size: 598x336mm (23.5x13.2")
diag: 686mm (27")
OpenGL: renderer: GeForce GTX 1080/PCIe/SSE2 v: 4.6.0 NVIDIA 460.80
direct render: Yes
Audio:
Device-1: NVIDIA GP104 High Definition Audio driver: snd_hda_intel v: kernel
bus-ID: 0e:00.1 chip-ID: 10de:10f0 class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: ASRock driver: snd_hda_intel
v: kernel bus-ID: 10:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Focusrite-Novation Launchpad Mini type: USB driver: snd-usb-audio
bus-ID: 1-2.2.2:10 chip-ID: 1235:0036 class-ID: 0103
Device-4: KORG KAOSS DJ type: USB driver: hid-generic,snd-usb-audio,usbhid
bus-ID: 1-2.2.3:12 chip-ID: 0944:0301 class-ID: 0300
Sound Server-1: ALSA v: k5.10.36-2-MANJARO running: yes
Sound Server-2: JACK v: 0.125.0 running: no
Sound Server-3: PulseAudio v: 14.2 running: yes
Sound Server-4: PipeWire v: 0.3.28 running: yes
Network:
Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
v: kernel port: e000 bus-ID: 08:00.0 chip-ID: 8086:24fb class-ID: 0280
IF: wlp8s0 state: down mac:
Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: kernel
port: c000 bus-ID: 0a:00.0 chip-ID: 8086:1539 class-ID: 0200
IF: enp10s0 state: up speed: 1000 Mbps duplex: full mac:
IF-ID-1: virbr0 state: down mac:
Bluetooth:
Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 1-9:6 chip-ID: 8087:0aa7 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: see --recommends
Drives:
Local Storage: total: 15.89 TiB used: 1.69 TiB (10.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: PM961 NVMe 512GB
size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 rotation: SSD serial: rev: CXY74D1Q temp: 35.9 C
scheme: MBR
ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST4000VN008-2DR166
size: 3.64 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
rotation: 5980 rpm serial: rev: SC60 scheme: GPT
ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST4000VN008-2DR166
size: 3.64 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
rotation: 5980 rpm serial: rev: SC60
ID-4: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST4000VN008-2DR166
size: 3.64 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
rotation: 5980 rpm serial: rev: SC60
ID-5: /dev/sdd maj-min: 8:48 vendor: Seagate model: ST4000VN008-2DR166
size: 3.64 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
rotation: 5980 rpm serial: rev: SC60
ID-6: /dev/sde maj-min: 8:64 vendor: SanDisk model: SSD PLUS 480GB
size: 447.14 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
rotation: SSD serial: rev: 00RL scheme: GPT
ID-7: /dev/sdf maj-min: 8:80 vendor: SanDisk model: SSD PLUS 480GB
size: 447.14 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
rotation: SSD serial: rev: 00RL scheme: GPT
Partition:
ID-1: / raw-size: 476.93 GiB size: 468.45 GiB (98.22%)
used: 440.58 GiB (94.1%) fs: ext4 dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 54.5 C mobo: 0 C gpu: nvidia temp: 49 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 30%
Info:
Processes: 432 Uptime: 2d 14h 17m wakeups: 2 Memory: 31.28 GiB
used: 20.62 GiB (65.9%) Init: systemd v: 247 tool: systemctl Compilers:
gcc: 10.2.0 alt: 9 clang: 11.1.0 Packages: 2051 pacman: 1964 lib: 502
flatpak: 49 snap: 38 Shell: Bash v: 5.1.8 running-in: xfce4-terminal
inxi: 3.3.04