Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Testing - Trixie] default audio device is incorrectly or not configured

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
mrmazda
Posts: 341
Joined: 2023-06-02 02:22
Has thanked: 9 times
Been thanked: 44 times

[Testing - Trixie] default audio device is incorrectly or not configured

#1 Post by mrmazda »

Code: Select all

# inxi -Sz --vs --zl --hostname
inxi 3.3.31-00 (2023-11-02)
System:
  Host: fi965 Kernel: 6.5.0-5-amd64 arch: x86_64 bits: 64 Desktop: Trinity
    Distro: Debian GNU/Linux trixie/sid
# inxi -Aaz
Audio:
  Device-1: AMD Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000
    Series] vendor: Dell driver: snd_hda_intel v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 8 link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.1
    chip-ID: 1002:aab0 class-ID: 0403
  API: ALSA v: k6.5.0-5-amd64 status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: off with: 1: pipewire-pulse
    status: off 2: wireplumber status: off 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
# lspci -vd 1002:aab0
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series]
        Subsystem: Dell Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series]
        Flags: bus master, fast devsel, latency 0, IRQ 26
        Memory at fbefc000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Legacy Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Capabilities: [150] Advanced Error Reporting
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
# dpkg-query -W | egrep 'alsa|arts|audio|demul|gstr|jack|libde2|libx26|mix|mpv|pavu|puls|sof-|sound|vlc|wire|xdg'|sort
alsa-firmware-loaders   1.2.5-3
alsa-tools      1.2.5-3
alsa-ucm-conf   1.2.10-1
alsa-utils      1.2.10-1.1
firmware-sof-signed     2023.12-1
kmix-trinity    4:14.1.2~pre11-0debian13.0.0+2~a
libarts1c2a-trinity:amd64       4:14.1.2~pre5-0debian13.0.0+2~a
libartsc0-trinity:amd64 4:14.1.2~pre5-0debian13.0.0+2~a
libasound2:amd64        1.2.10-3
libasound2-data 1.2.10-3
libaudio2:amd64 1.9.4-7
libaudiofile1:amd64     0.3.6-6+b1
libcanberra-pulse:amd64 0.30-11
libde265-0:amd64        1.0.15-1
libheif-plugin-libde265:amd64   1.17.4-1
libjack0:amd64  1:0.126.0-2
libpipewire-0.3-0:amd64 1.0.0-3
libpipewire-0.3-common  1.0.0-3
libpipewire-0.3-modules:amd64   1.0.0-3
libpipewire-0.3-modules-x11:amd64       1.0.0-3
libpulse0:amd64 16.1+dfsg1-2+b1
libpulsedsp:amd64       16.1+dfsg1-2+b1
libvlccore9:amd64       1:3.0.20-dmo3
libwebrtc-audio-processing1:amd64       0.3-1+b1
libwireplumber-0.4-0:amd64      0.4.17-1
libx264-164:amd64       4:0.164.3172+gitc1c9931-dmo1
libx265-199:amd64       1:3.5-dmo2
menu-xdg        0.7
pipewire-alsa:amd64     1.0.0-3
pipewire:amd64  1.0.0-3
pipewire-audio  1.0.0-3
pipewire-bin    1.0.0-3
pipewire-media-session  0.4.2-3
pipewire-pulse  1.0.0-3
pipewire-v4l2:amd64     1.0.0-3
pulseaudio-utils        16.1+dfsg1-2+b1
sound-theme-freedesktop 0.8-3
tdemultimedia-tdeio-plugins-trinity     4:14.1.2~pre11-0debian13.0.0+2~a
vlc-plugin-pipewire:amd64       3-2
wireplumber     0.4.17-1
xdg-user-dirs   0.18-1
xdg-utils       1.1.3-4.1
# alsactl info
#
# Sound card
#
- card: 0
  id: HDMI
  name: HDA ATI HDMI
  longname: HDA ATI HDMI at 0xfbefc000 irq 26
  driver_name: HDA-Intel
  mixer_name: ATI R6xx HDMI
  components: HDA:1002aa01,00aa0100,00100300
  controls_count: 14
  pcm:
    - stream: PLAYBACK
      devices:
        - device: 3
          id: HDMI 0
          name: HDMI 0 *
          subdevices:
            - subdevice: 0
              name: subdevice #0
        - device: 7
          id: HDMI 1
          name: HDMI 1
          subdevices:
            - subdevice: 0
              name: subdevice #0
alsactl: rawmidi_device_list:105: snd_ctl_rawmidi_next_device
# aplay -lL
null
    Discard all samples (playback) or generate zero samples (capture)
pipewire
    PipeWire Sound Server
default
    Default ALSA Output (currently PipeWire Media Server)
hw:CARD=HDMI,DEV=3
    HDA ATI HDMI, HDMI 0 *
    Direct hardware device without any conversions
hw:CARD=HDMI,DEV=7
    HDA ATI HDMI, HDMI 1
    Direct hardware device without any conversions
plughw:CARD=HDMI,DEV=3
    HDA ATI HDMI, HDMI 0 *
    Hardware device with all software conversions
plughw:CARD=HDMI,DEV=7
    HDA ATI HDMI, HDMI 1
    Hardware device with all software conversions
hdmi:CARD=HDMI,DEV=0
    HDA ATI HDMI, HDMI 0 *
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
    HDA ATI HDMI, HDMI 1
    HDMI Audio Output
dmix:CARD=HDMI,DEV=3
    HDA ATI HDMI, HDMI 0 *
    Direct sample mixing device
dmix:CARD=HDMI,DEV=7
    HDA ATI HDMI, HDMI 1
    Direct sample mixing device
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0 *]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
# aplay -lL
null
    Discard all samples (playback) or generate zero samples (capture)
pipewire
    PipeWire Sound Server
default
    Default ALSA Output (currently PipeWire Media Server)
hw:CARD=HDMI,DEV=3
    HDA ATI HDMI, HDMI 0 *
    Direct hardware device without any conversions
hw:CARD=HDMI,DEV=7
    HDA ATI HDMI, HDMI 1
    Direct hardware device without any conversions
plughw:CARD=HDMI,DEV=3
    HDA ATI HDMI, HDMI 0 *
    Hardware device with all software conversions
plughw:CARD=HDMI,DEV=7
    HDA ATI HDMI, HDMI 1
    Hardware device with all software conversions
hdmi:CARD=HDMI,DEV=0
    HDA ATI HDMI, HDMI 0 *
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
    HDA ATI HDMI, HDMI 1
    HDMI Audio Output
dmix:CARD=HDMI,DEV=3
    HDA ATI HDMI, HDMI 0 *
    Direct sample mixing device
dmix:CARD=HDMI,DEV=7
    HDA ATI HDMI, HDMI 1
    Direct sample mixing device
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0 *]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
# wpctl status
Could not connect to PipeWire
# pw-cli list-objects Device
Error: "failed to connect: Host is down"
# aplay /usr/local/share/sound/alsa/test.wav
aplay: main:834: audio open error: Host is down
# aplay -D hdmi:0,0 /usr/local/share/sound/alsa/test.wav
Playing WAVE '/usr/local/share/sound/alsa/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
#
Simply "aplay" <filename> fails, as the error output suggests, while aplay -D hdmi:0,0 <filename> succeeds.
  1. $SUBJECT How/where is the determining config required to be configured/reconfigured so that -D hdmi:0,0 is not required for aplay to just work, to make hdmi:0,0, by whatever (PCM?) alias(es) might be applicable, the default sound device?
  2. Is Pulseaudio still required (ignoring what particular DE apps may require, e.g. Firefox and Plasma)? Can it not yet be entirely dispensed with in favor of Pipewire? If not, is there a Debian-specific forum I can participate in to help get it to that point?
  3. The "could not connect" and "host is down" errors seem to be a Debian exclusive. IOW, these two errors happen as a matter of course with multiple PCs here using Bookworm and Trixie, but equivalent configurations on same PCs running Mageia, Fedora and/or openSUSE produce considerable expected output. What's not happening to cause these routine failures in Debian?
For example, this is expected output from openSUSE Leap 15.5:

Code: Select all

# wpctl status
PipeWire 'pipewire-0' [0.3.64, root@fi965, cookie:1359577515]
 └─ Clients:
        31. WirePlumber                         [0.3.64, root@fi965, pid:1170]
        32. WirePlumber [export]                [0.3.64, root@fi965, pid:1170]
        44. wpctl                               [0.3.64, root@fi965, pid:2964]

Audio
 ├─ Devices:
 │      38. Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series] [alsa]
 │
 ├─ Sinks:
 │  *   39. Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series] Digital Stereo (HDMI) [vol: 0.78]
 │
 ├─ Sink endpoints:
 │
 ├─ Sources:
 │
 ├─ Source endpoints:
 │
 └─ Streams:

Video
 ├─ Devices:
 │
 ├─ Sinks:
 │
 ├─ Sink endpoints:
 │
 ├─ Sources:
 │
 ├─ Source endpoints:
 │
 └─ Streams:

Settings
 └─ Default Configured Node Names:
# pw-cli list-objects Device
        id 38, type PipeWire:Interface:Device/3
                object.serial = "38"
                factory.id = "14"
                client.id = "32"
                device.api = "alsa"
                device.description = "Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series]"
                device.name = "alsa_card.pci-0000_01_00.1"
                device.nick = "HDA ATI HDMI"
                media.class = "Audio/Device"
#

Post Reply