You are not logged in.

#1 2023-10-22 07:14:30

miro279
Member
Registered: 2010-10-02
Posts: 156

[SOLVED] Sound broken after connection of external USB soundcard

I have connected a class compliant external USB sounddevice to my laptop recently (which worked fine). The problem is, after disconnection of the device, my internal soundcard stopped working. I used a audient ID4 device with jack as a input for an electric guitar to ardour... The jack server is usually not running though.
I can get it to work temporarily by deselecting the playback device in KDEs control center and selecting it again. It only works for the next audio stream I'm playing thereafter, for the second I'll have to repeat the process to make it work again.
I'm unsure if the device "Renoir Radeon High Definition Audio Controller" was disabled before I plugged the external device, this actually is my integrated audio hardware but it is not selectable here. Another option to make it work (for the next stream) is to use the "Force Restart" Button in Cadence which also seems to restart the audio device. Ussually I cadence not running though.
Playing a video via youtube i.e. results in the video not playing at all (not even without sound).
Making it work via the deselection/reselection process as described above it is working via the "Family 17th/19th HD Audio Controller" Line.
To me it seems this is not a issue with the soundserver but more low-level (ALSA or even below that).
Are there any experts around to help me debug the issue?
Thanks in advance!

Last edited by miro279 (2023-10-24 19:13:36)

Offline

#2 2023-10-22 10:41:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,175

Re: [SOLVED] Sound broken after connection of external USB soundcard

Check logs and generally what you've setup as the default/fallback device from the server's perspective. During the issue what do you get from

sudo fuser -v /dev/snd/*
pactl list cards
pactl list sinks
pactl list sink-inputs
systemctl --user status pulseaudio pipewire{,-pulse} wireplumber

Offline

#3 2023-10-22 19:43:49

miro279
Member
Registered: 2010-10-02
Posts: 156

Re: [SOLVED] Sound broken after connection of external USB soundcard

[miro@delllaptop ~]$ sudo fuser -v /dev/snd/*
[sudo] password for miro: 
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  miro        860 F.... pipewire
                     miro        865 F.... wireplumber
                     miro        978 F.... pulseaudio
/dev/snd/controlC1:  miro        860 F.... pipewire
                     miro        865 F.... wireplumber
                     miro        978 F.... pulseaudio
/dev/snd/controlC2:  miro        860 F.... pipewire
                     miro        865 F.... wireplumber
                     miro        978 F.... pulseaudio
/dev/snd/seq:        miro        860 F.... pipewire
[miro@delllaptop ~]$ pactl list cards
Card #0
        Name: alsa_card.pci-0000_03_00.1
        Driver: module-alsa-card.c
        Owner Module: 6
        Properties:
                alsa.card = "0"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd05c8000 irq 78"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "1637"
                device.product.name = "Renoir Radeon High Definition Audio Controller"
                device.string = "0"
                device.description = "Renoir Radeon High Definition Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                HiFi: Play HiFi quality Music (sinks: 2, sources: 0, priority: 8000, available: no)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: off
        Ports:
                [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 1200, latency offset: 0 usec, not available)
                        Part of profile(s): HiFi
                [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 1100, latency offset: 0 usec, not available)
                        Part of profile(s): HiFi

Card #1
        Name: alsa_card.pci-0000_03_00.6
        Driver: module-alsa-card.c
        Owner Module: 8
        Properties:
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd05c0000 irq 79"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "1"
                device.description = "Family 17h/19h HD Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                HiFi: Play HiFi quality Music (sinks: 1, sources: 2, priority: 40768, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: HiFi
        Ports:
                [Out] Speaker: Speaker (type: Speaker, priority: 100, latency offset: 0 usec, availability unknown)
                        Part of profile(s): HiFi
                [Out] Headphones: Headphones (type: Headphones, priority: 200, latency offset: 0 usec, availability group: Headphone Mic, not available)
                        Part of profile(s): HiFi
                [In] Headset: Headset Mono Microphone (type: Headset, priority: 300, latency offset: 0 usec, availability group: Headphone Mic, not available)
                        Part of profile(s): HiFi
                [In] Mic2: Headphones Stereo Microphone (type: Mic, priority: 200, latency offset: 0 usec, availability group: Headphone Mic, not available)
                        Part of profile(s): HiFi
                [In] Mic1: Digital Microphone (type: Mic, priority: 100, latency offset: 0 usec, availability unknown)
                        Part of profile(s): HiFi
[miro@delllaptop ~]$ pactl list sinks
Sink #0
        State: SUSPENDED
        Name: alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink
        Description: Family 17h/19h HD Audio Controller Speaker + Headphones
        Driver: module-alsa-card.c
        Sample Specification: s32le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 8
        Mute: no
        Volume: front-left: 26852 /  41% / -23,25 dB,   front-right: 26852 /  41% / -23,25 dB
                balance 0,00
        Base Volume: 65536 / 100% / 0,00 dB
        Monitor Source: alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.resolution_bits = "32"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC3204 Analog"
                alsa.id = "ALC3204 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd05c0000 irq 79"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "_ucm0003.hw:Generic_1"
                device.buffering.buffer_size = "1411328"
                device.buffering.fragment_size = "705664"
                device.access_mode = "mmap+timer"
                device.profile.name = "HiFi: hw:Generic_1: sink"
                device.profile.description = "Speaker + Headphones"
                alsa.mixer_device = "_ucm0003.hw:Generic_1"
                device.description = "Family 17h/19h HD Audio Controller Speaker + Headphones"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                [Out] Speaker: Speaker (type: Speaker, priority: 100, availability unknown)
                [Out] Headphones: Headphones (type: Headphones, priority: 200, availability group: Headphone Mic, not available)
        Active Port: [Out] Speaker
        Formats:
                pcm

pactl list sink-inputs does not return anything.

[miro@delllaptop ~]$ systemctl --user status pulseaudio pipewire{,-pulse} wireplumber
Unit pipewire-pulse.service could not be found.
● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; preset: enabled)
     Active: active (running) since Sun 2023-10-22 21:18:56 CEST; 5min ago
TriggeredBy: ● pulseaudio.socket
   Main PID: 978 (pulseaudio)
      Tasks: 9 (limit: 8715)
     Memory: 12.6M
        CPU: 120ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pulseaudio.service
             ├─ 978 /usr/bin/pulseaudio --daemonize=no --log-target=journal
             └─1095 /usr/lib/pulse/gsettings-helper

Okt 22 21:18:56 delllaptop systemd[573]: Starting Sound Service...
Okt 22 21:18:56 delllaptop pulseaudio[978]: stat('/etc/pulse/default.pa.d'): No such file or directory
Okt 22 21:18:56 delllaptop systemd[573]: Started Sound Service.
Okt 22 21:18:56 delllaptop pulseaudio[978]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with e>
Okt 22 21:18:56 delllaptop pulseaudio[978]: org.bluez.ProfileManager1.RegisterProfile() failed: org.bluez.Error.NotPermitted: UUID already registered

● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; preset: enabled)
     Active: active (running) since Sun 2023-10-22 21:18:55 CEST; 5min ago
TriggeredBy: ● pipewire.socket
   Main PID: 860 (pipewire)
      Tasks: 4 (limit: 8715)
     Memory: 8.9M
        CPU: 79ms

To be honest I do not understand the current configuration completely. It seems I have both, pulseaudio and pipwire running as soundservers, correct? I also installed jack2 which connects to the pulseaudio server as I understand. How can I check the default/fallback device for both servers (or the one that is important here)? Thanks for your help!

Last edited by miro279 (2023-10-22 19:48:09)

Offline

#4 2023-10-22 21:01:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,175

Re: [SOLVED] Sound broken after connection of external USB soundcard

You're mixing wireplumber and pulseaudio and both will steal devices from each other, because both try to talk the pulse protocol. If you want to stick to pulseaudio as your sound server replace wireplumber with pipewire-media-session, if you want to switch to pipewire as your sound server, replace pulse with pipewire-pulse (and pulseaudio-alsa with pipewire-alsa and pulseaudio-jack with pipewire-jack etc...)

Offline

#5 2023-10-24 19:12:56

miro279
Member
Registered: 2010-10-02
Posts: 156

Re: [SOLVED] Sound broken after connection of external USB soundcard

Thank you! I must have installed some conflicting packages while setting up jack which I needed for the external USB soundcard.. I went the pipewire rout now as pipewire-media-session was marked deprecated by arch already.. I just have to see how I get jack working again as cadence was working with jack2 only.. But I will try this another time!
Thanks for your help!!!

Offline

Board footer

Powered by FluxBB