Skip to content

Pulse audio is suspended inside docker #166

@sblandford

Description

@sblandford

Describe the bug
On Kubuntu 24.04 on an Asus Zenbook the pulse audio output is silent and reported as "suspended=yes" from inside the docker-wine but is OK on the host desktop. In winecfg all the host devices are visible in the Audio tab however the "Test Sound" button is silent no matter what output device is selected.

To Reproduce
Steps to reproduce the behavior:

  1. ./docker-wine
  2. pacat -vv /dev/urandom

Expected behavior

simonb@simon-zenbookux363eaux371ea:~$ pacat -vv /dev/urandom
Opening a playback stream with sample specification 's16le 2ch 44100Hz' and channel map 'front-left,front-right'.
Connection established.
Stream successfully created.
Buffer metrics: maxlength=4194304, tlength=352800, prebuf=349276, minreq=3528
Using sample spec 's16le 2ch 44100Hz', channel map 'front-left,front-right'.
Connected to device alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.2 (index: 122, suspended: no).
Stream started.
^CGot signal, exiting.cy: 2021967 usec. 

Actual behavior

wineuser@simon-zenbookux363eaux371ea:~$ pacat -vv /dev/urandom
Opening a playback stream with sample specification 's16le 2ch 44100Hz' and channel map 'front-left,front-right'.
Connection established.
Stream successfully created.
Buffer metrics: maxlength=4194304, tlength=352800, prebuf=349276, minreq=3528
Using sample spec 's16le 2ch 44100Hz', channel map 'front-left,front-right'.
Connected to device alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink (index: 8, suspended: yes).
^CGot signal, exiting.cy: 2000000 usec.   

Screenshots
N/A

Desktop (please complete the following information):

  • Kubuntu 24.04 with all current updates applied
  • Docker version 24.0.7, build 24.0.7-0ubuntu4

Additional context
Sound card information reported by host desktop

simonb@simon-zenbookux363eaux371ea:~$ pactl list cards
Card #118
        Name: alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic
        Driver: alsa
        Owner Module: n/a
        Properties:
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.card.longname = "ASUSTeKCOMPUTERINC.-ZenBookUX363EA_UX371EA-1.0-UX363EA"
                api.alsa.card.name = "sof-hda-dsp"
                api.alsa.path = "hw:0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.api = "alsa"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
                device.description = "Tiger Lake-LP Smart Sound Technology Audio Controller"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic"
                device.nick = "sof-hda-dsp"
                device.plugged.usec = "105632409"
                device.product.id = "0xa0c8"
                device.product.name = "Tiger Lake-LP Smart Sound Technology Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                media.class = "Audio/Device"
                factory.id = "14"
                client.id = "35"
                object.id = "33"
                object.serial = "118"
                object.path = "alsa:pcm:0"
                alsa.card = "0"
                alsa.card_name = "sof-hda-dsp"
                alsa.long_card_name = "ASUSTeKCOMPUTERINC.-ZenBookUX363EA_UX371EA-1.0-UX363EA"
                alsa.driver_name = "snd_soc_skl_hda_dsp"
                alsa.mixer_name = "Realtek ALC294"
                alsa.components = "HDA:80862812,80860101,00100000 HDA:10ec0294,1043135f,00100004 cfg-dmics:2"
                alsa.id = "sofhdadsp"
                device.string = "0"
        Profiles:
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
                HiFi: Play HiFi quality Music (sinks: 4, sources: 2, priority: 8000, available: yes)
                pro-audio: Pro Audio (sinks: 5, sources: 3, priority: 1, available: yes)
        Active Profile: HiFi
        Ports:
                [Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 700, latency offset: 0 usec, availability group: HDMI/DP,pcm=5, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=5"
                                device.icon_name = "video-display"
                                card.profile.port = "0"
                        Part of profile(s): HiFi
                [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 600, latency offset: 0 usec, availability group: HDMI/DP,pcm=4, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=4"
                                device.icon_name = "video-display"
                                card.profile.port = "1"
                        Part of profile(s): HiFi
                [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 500, latency offset: 0 usec, availability group: HDMI/DP,pcm=3, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=3"
                                device.icon_name = "video-display"
                                card.profile.port = "2"
                        Part of profile(s): HiFi
                [Out] Headphones: Headphones (type: Headphones, priority: 200, latency offset: 0 usec, availability group: Headphone, availability unknown)
                        Properties:
                                port.type = "headphones"
                                port.availability-group = "Headphone"
                                device.icon_name = "audio-headphones"
                                card.profile.port = "3"
                        Part of profile(s): HiFi
                [In] Mic2: Headphones Stereo Microphone (type: Mic, priority: 200, latency offset: 0 usec, availability group: Mic, availability unknown)
                        Properties:
                                port.type = "mic"
                                port.availability-group = "Mic"
                                device.icon_name = "audio-input-microphone"
                                card.profile.port = "4"
                        Part of profile(s): HiFi
                [In] Mic1: Digital Microphone (type: Mic, priority: 100, latency offset: 0 usec, availability unknown)
                        Properties:
                                port.type = "mic"
                                device.icon_name = "audio-input-microphone"
                                card.profile.port = "5"
                        Part of profile(s): HiFi

Reported from inside docker-wine

wineuser@simon-zenbookux363eaux371ea:~$ pactl list cards
Card #1
        Name: alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic
        Driver: module-alsa-card.c
        Owner Module: 21
        Properties:
                alsa.card = "0"
                alsa.card_name = "sof-hda-dsp"
                alsa.long_card_name = "ASUSTeKCOMPUTERINC.-ZenBookUX363EA_UX371EA-1.0-UX363EA"
                alsa.driver_name = "snd_soc_skl_hda_dsp"
                device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a0c8"
                device.product.name = "Tiger Lake-LP Smart Sound Technology Audio Controller"
                device.string = "0"
                device.description = "Tiger Lake-LP Smart Sound Technology Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                HiFi: Play HiFi quality Music (sinks: 4, sources: 2, priority: 40768, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: HiFi
        Ports:
                [Out] HDMI3: HDMI / DisplayPort 3 Output (priority: 700, latency offset: 0 usec, not available)
                        Part of profile(s): HiFi
                [Out] HDMI2: HDMI / DisplayPort 2 Output (priority: 600, latency offset: 0 usec, not available)
                        Part of profile(s): HiFi
                [Out] HDMI1: HDMI / DisplayPort 1 Output (priority: 500, latency offset: 0 usec, not available)
                        Part of profile(s): HiFi
                [Out] Headphones: Headphones (priority: 200, latency offset: 0 usec)
                        Part of profile(s): HiFi
                [In] Mic2: Headphones Stereo Microphone (priority: 200, latency offset: 0 usec)
                        Part of profile(s): HiFi
                [In] Mic1: Digital Microphone (priority: 100, latency offset: 0 usec)
                        Part of profile(s): HiFi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions