Hdmi surround output?

I’ve just installed Manjaro on my new Acer Swift Go 16, and was positively surprised that mostly everything seems to just work out of the box, even the hdmi stereo sound output was plug & play, even auto-switching the sound output.

Though now I’d like to output surround sound via that HDMI connection, but it only shows me 2 audio profiles for all output & input(?) devices:

  • “Play HiFi quality music”
  • “Off”
    What I consider very strange, is that if I change that profile from the sensible default value (“Play HiFi quality music”) to “Off” on any of my audio devices to “Off”, it is synchronized to all other devices.

I’ve found this related seeming thread:

But this hdajackretask shows me a ton of pins:
0x04, 0x06, 0x08, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f
Since there’s a lot of possible combinations of those I’d love to have some more knowledge of what that is supposed to do and if there’s some specific strategy that could improve my odds rather than trying random pins…

I’ve tried the “apply” button once, but it made the sound stop and showed a “device busy” error.

I suggest you check the sink Ports in the HiFi Profile

pactl list sinks

If response shows only stereo sink ports and no surround ports the onboard audio codec
probably supports stereo output only over HDMI

IMO if audio codec does not support surround audio there is not likely to be any way to retask the audio codec pins to support it

But If you want to keep trying to retask pins in hdajackretask I suggest you use alsa-info.sh to get detailed information about audio device

Apply now in hdajackretask will fail with device busy error if any software audio servers are running (e.g. PulseAudio). But Install boot override usually works if user has root privileges to create the override

1 Like

okey, thanks for your explanations!

I’ve uploaded the output of pactl list sinks here.
I don’t see any hint of possible surround sound output in there, do you?
Also, here’s my output from alsa-info.sh

I gotta check if the Windows 11 that this notebook came with can do surround output. Will report back once I’ve tried that. I always thought outputting digital surround sound streams is not something that requires specific hardware…

UPDATE: on a first quick try I didn’t manage to get any sound output from Windows 11 via HDMI, gotta do more research on this… :sweat_smile:

UPDATE2: on my second try I managed to make Windows 11 output surround sound, so it’s not a hardware limitation.

UPDATE3: so one Windows update later, which also updated my devices firmware, after repairing the Manjaro UEFI boot-loader and trying to overwrite all those pins in hdajackretask with the Install boot override button the output from alsa-info.sh looks a little different, but sadly I don’t see any difference in the audio config UI or my Manjaro sound output.

before speculating about ANY software/manjaro/linux issues MAKE sure that your physical hdmi-cable DOES allow the extended audio feautures. there are too many different cable-configurations and even if your cable provides the video and standard audio signal it’s not guaranteed that your cable-display configuration enable the surround-option.
in your case: it should be minimum a hdmi-cable rev. 2.0B that enables multiple audio-channels. there are some cables rev. 1.4 that enable the so called “3D”-sound but this 3D-… is not standarized and it’s a gamble if it works or not.

High Definition Multimedia Interface – Wikipedia (sorry it’s the german site, search for “hdmi cable standards” at the net)

1 Like

thank you for your reply @Olli!

Yes, I know that HDMI is very picky when it comes to shielding and the general noise level of the surround electromagnetic fields.

But since it’s no problem to output 4k60fps signals with my setup, and the surround sound output works fine using Windows 11 (after doing some research how to coax that joke of an OS to do so…) I doubt my current problem is hardware related.

so you’re using windos11-linux dual boot ? if so make sure that the “fast-boot” option in windows is disabled.
another helpful info is to provide the mandatory

inxi --admin --verbosity=7 --filter --no-host --width

that shows more info about your hardware and modules (including audio)

1 Like
# inxi --admin --verbosity=7 --filter --no-host --width
System:
  Kernel: 6.1.44-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.1-x86_64
    root=UUID=92930ddc-23c0-40a0-afc5-d146b6596093 rw rootflags=subvol=@ quiet
    cryptdevice=UUID=c05186f7-c442-4f3f-af21-98ef470e4248:luks-c05186f7-c442-4f3f-af21-98ef470e4248
    root=/dev/mapper/luks-c05186f7-c442-4f3f-af21-98ef470e4248 splash
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.7 tk: Qt v: 5.15.10 wm: kwin_x11 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Acer product: Swift SFG16-71 v: V1.04 serial: <filter>
  Mobo: RPL model: Lionfish_RTH v: V1.04 serial: <filter> UEFI: Insyde
    v: 1.04 date: 04/27/2023
Battery:
  ID-1: BAT1 charge: 65.0 Wh (100.0%) condition: 65.0/65.2 Wh (99.8%)
    volts: 13.3 min: 11.7 model: COSMX KT0030B003 AP22ABN type: Li-ion
    serial: <filter> status: full cycles: 3
Memory:
  System RAM: total: 32 GiB available: 31.04 GiB used: 9.3 GiB (30.0%)
    igpu: 64 MiB
  Array-1: capacity: 32 GiB slots: 8 modules: 8 EC: None
    max-module-size: 4 GiB note: est.
  Device-1: Controller0-ChannelA type: LPDDR5 detail: synchronous size: 4 GiB
    speed: spec: 6400 MT/s actual: 4800 MT/s volts: curr: 0.5 width (bits):
    data: 16 total: 16 manufacturer: SK Hynix part-no: H9JCNNNFA5MLYR-N6E
    serial: N/A
  Device-2: Controller0-ChannelB type: LPDDR5 detail: synchronous size: 4 GiB
    speed: spec: 6400 MT/s actual: 4800 MT/s volts: curr: 0.5 width (bits):
    data: 16 total: 16 manufacturer: SK Hynix part-no: H9JCNNNFA5MLYR-N6E
    serial: N/A
  Device-3: Controller0-ChannelC type: LPDDR5 detail: synchronous size: 4 GiB
    speed: spec: 6400 MT/s actual: 4800 MT/s volts: curr: 0.5 width (bits):
    data: 16 total: 16 manufacturer: SK Hynix part-no: H9JCNNNFA5MLYR-N6E
    serial: N/A
  Device-4: Controller0-ChannelD type: LPDDR5 detail: synchronous size: 4 GiB
    speed: spec: 6400 MT/s actual: 4800 MT/s volts: curr: 0.5 width (bits):
    data: 16 total: 16 manufacturer: SK Hynix part-no: H9JCNNNFA5MLYR-N6E
    serial: N/A
  Device-5: Controller1-ChannelA type: LPDDR5 detail: synchronous size: 4 GiB
    speed: spec: 6400 MT/s actual: 4800 MT/s volts: curr: 0.5 width (bits):
    data: 16 total: 16 manufacturer: SK Hynix part-no: H9JCNNNFA5MLYR-N6E
    serial: N/A
  Device-6: Controller1-ChannelB type: LPDDR5 detail: synchronous size: 4 GiB
    speed: spec: 6400 MT/s actual: 4800 MT/s volts: curr: 0.5 width (bits):
    data: 16 total: 16 manufacturer: SK Hynix part-no: H9JCNNNFA5MLYR-N6E
    serial: N/A
  Device-7: Controller1-ChannelC type: LPDDR5 detail: synchronous size: 4 GiB
    speed: spec: 6400 MT/s actual: 4800 MT/s volts: curr: 0.5 width (bits):
    data: 16 total: 16 manufacturer: SK Hynix part-no: H9JCNNNFA5MLYR-N6E
    serial: N/A
  Device-8: Controller1-ChannelD type: LPDDR5 detail: synchronous size: 4 GiB
    speed: spec: 6400 MT/s actual: 4800 MT/s volts: curr: 0.5 width (bits):
    data: 16 total: 16 manufacturer: SK Hynix part-no: H9JCNNNFA5MLYR-N6E
    serial: N/A
CPU:
  Info: model: 13th Gen Intel Core i7-13700H socket: U3E1 bits: 64
    type: MST AMCP arch: Raptor Lake gen: core 13 level: v3 note: check
    built: 2022+ process: Intel 7 (10nm) family: 6 model-id: 0xBA (186)
    stepping: 2 microcode: 0x4119
  Topology: cpus: 1x cores: 14 mt: 6 tpc: 2 st: 8 threads: 20 smt: enabled
    cache: L1: 1.2 MiB desc: d-8x32 KiB, 6x48 KiB; i-6x32 KiB, 8x64 KiB
    L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB desc: 1x24 MiB
  Speed (MHz): avg: 1869 high: 2900 min/max: 400/4800:5000:3700
    base/boost: 4356/5000 scaling: driver: intel_pstate governor: powersave
    volts: 1.3 V ext-clock: 100 MHz cores: 1: 942 2: 2900 3: 1176 4: 2900
    5: 1349 6: 2900 7: 1245 8: 2900 9: 795 10: 2900 11: 1284 12: 2900 13: 1128
    14: 1146 15: 524 16: 790 17: 2900 18: 905 19: 2900 20: 2900
    bogomips: 116780
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_lbr arch_perfmon art avx avx2 avx_vnni bmi1 bmi2
    bts clflush clflushopt clwb cmov constant_tsc cpuid cpuid_fault cx16 cx8
    de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est f16c flexpriority
    flush_l1d fma fpu fsgsbase fsrm fxsr gfni hfi ht hwp hwp_act_window
    hwp_epp hwp_notify hwp_pkg_req ibpb ibrs ibrs_enhanced ibt ida intel_pt
    invpcid lahf_lm lm mca mce md_clear mmx monitor movbe movdir64b movdiri
    msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pclmulqdq pdcm pdpe1gb pebs
    pge pku pln pni popcnt pse pse36 pts rdpid rdrand rdseed rdtscp rep_good
    sdbg sep serialize sha_ni smap smep smx ss ssbd sse sse2 sse4_1 sse4_2
    ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer
    tsc_known_freq umip vaes vme vmx vnmi vpclmulqdq vpid waitpkg x2apic
    xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
    filling, PBRSB-eIBRS: SW sequence
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Raptor Lake-P [Iris Xe Graphics]
    vendor: Acer Incorporated ALI driver: i915 v: kernel arch: Gen-13
    process: Intel 7 (10nm) built: 2022+ ports: active: HDMI-A-1,eDP-1
    empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 0000:00:02.0 chip-ID: 8086:a7a0
    class-ID: 0300
  Device-2: Chicony ACER QHD User Facing driver: hid-generic,usbhid,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-6:2
    chip-ID: 04f2:b7a0 class-ID: fe01 serial: <filter>
  Display: server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
    compositor: kwin_x11 driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 7296x2464 s-dpi: 96 s-size: 1929x651mm (75.94x25.63")
    s-diag: 2036mm (80.15") monitors: <missing: xrandr>
  Monitor-1: HDMI-A-1 model: Pioneer VSX-924 serial: <filter> built: 2013
    res: 3840x2160 dpi: 61 gamma: 1.2 size: 1600x900mm (62.99x35.43")
    diag: 1836mm (72.3") ratio: 16:9 modes: max: 3840x2160 min: 720x400
  Monitor-2: eDP-1 model: Samsung 0x418d built: 2022 res: 3200x2000 dpi: 236
    gamma: 1.2 size: 344x215mm (13.54x8.46") diag: 406mm (16") ratio: 16:10
    modes: 3200x2000
  API: OpenGL v: 4.6 Mesa 23.1.5 renderer: Mesa Intel Graphics (RPL-P)
    direct-render: Yes
Audio:
  Device-1: Intel vendor: Acer Incorporated ALI driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 0000:00:1f.3
    chip-ID: 8086:51ca class-ID: 0401
  API: ALSA v: k6.1.44-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.77 status: n/a (root, process) with: wireplumber
    status: active tools: pw-cli,wpctl
  Server-3: PulseAudio v: 16.1 status: active (root, process)
    with: pulseaudio-alsa type: plugin tools: pacat,pactl,pavucontrol
Network:
  Device-1: Intel vendor: Rivet Networks driver: iwlwifi v: kernel port: N/A
    bus-ID: 0000:00:14.3 chip-ID: 8086:51f1 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 3-10:4 chip-ID: 8087:0033 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
  Device-1: luks-c05186f7-c442-4f3f-af21-98ef470e4248 maj-min: 254:0
    type: LUKS dm: dm-0 size: 835.41 GiB
  Components:
  p-1: nvme0n1p5 maj-min: 259:5 size: 835.41 GiB
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller Intel
    driver: vmd v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:a77f rev:
    class-ID: 0104
Drives:
  Local Storage: total: 953.87 GiB used: 152.97 GiB (16.0%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: WD PC
    SN740 SDDQNQD-1T00-1014 size: 953.87 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 73101100 temp: 53.9 C scheme: GPT
  SMART: yes health: PASSED on: 35 hrs cycles: 58
    read-units: 6,804,702 [3.48 TB] written-units: 1,161,187 [594 GB]
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 835.41 GiB size: 835.41 GiB (100.00%)
    used: 152.91 GiB (18.3%) fs: btrfs block-size: 4096 B dev: /dev/dm-0
    maj-min: 254:0 mapped: luks-c05186f7-c442-4f3f-af21-98ef470e4248 label: N/A
    uuid: 92930ddc-23c0-40a0-afc5-d146b6596093
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
    used: 58.9 MiB (23.0%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:1 label: ESP uuid: 1A09-67D8
  ID-3: /home raw-size: 835.41 GiB size: 835.41 GiB (100.00%)
    used: 152.91 GiB (18.3%) fs: btrfs block-size: 4096 B dev: /dev/dm-0
    maj-min: 254:0 mapped: luks-c05186f7-c442-4f3f-af21-98ef470e4248 label: N/A
    uuid: 92930ddc-23c0-40a0-afc5-d146b6596093
  ID-4: /var/cache raw-size: 835.41 GiB size: 835.41 GiB (100.00%)
    used: 152.91 GiB (18.3%) fs: btrfs block-size: 4096 B dev: /dev/dm-0
    maj-min: 254:0 mapped: luks-c05186f7-c442-4f3f-af21-98ef470e4248 label: N/A
    uuid: 92930ddc-23c0-40a0-afc5-d146b6596093
  ID-5: /var/log raw-size: 835.41 GiB size: 835.41 GiB (100.00%)
    used: 152.91 GiB (18.3%) fs: btrfs block-size: 4096 B dev: /dev/dm-0
    maj-min: 254:0 mapped: luks-c05186f7-c442-4f3f-af21-98ef470e4248 label: N/A
    uuid: 92930ddc-23c0-40a0-afc5-d146b6596093
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: N/A label: N/A uuid: N/A
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 117.19 GiB fs: ntfs label: Acer
    uuid: 6EDE09EFDE09AFFF
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 1024 MiB fs: ntfs label: Recovery
    uuid: CCB00A38B00A2A12
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 1 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 2-0:1 info: super-speed hub ports: 3 rev: 3.1
    speed: 20 Gb/s (2.33 GiB/s) lanes: 2 mode: 3.2 gen-2x2 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 3-3:6 info: Samsung Galaxy series misc. (MTP mode) type: still
    imaging,abstract (modem),CDC-data driver: cdc_acm interfaces: 3 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 04e8:6860
    class-ID: 0a00 serial: <filter>
  Device-2: 3-6:2 info: Chicony ACER QHD User Facing type: video,HID
    driver: hid-generic,usbhid,uvcvideo interfaces: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 500mA
    chip-ID: 04f2:b7a0 class-ID: fe01 serial: <filter>
  Device-3: 3-9:3 info: FPC L:0000 FW:1425037 type: <vendor specific>
    driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1
    mode: 1.1 power: 100mA chip-ID: 10a5:a305 class-ID: 0000
  Device-4: 3-10:4 info: Intel type: bluetooth driver: btusb interfaces: 2
    rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 8087:0033 class-ID: e001
  Hub-4: 4-0:1 info: super-speed hub ports: 4 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  Src: /sys System Temperatures: cpu: 40.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Processes: 442 Uptime: 46m wakeups: 5588 Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 15.0.7
  Packages: pm: pacman pkgs: 1310 libs: 387 tools: pamac pm: flatpak pkgs: 0
  Shell: Bash (su) v: 5.1.16 running-in: konsole inxi: 3.3.29

please install pavucontrol from the package-manager. start it and check
in pavucontrol the option configuration the internal profil. can you reach 5.1-sound. if so try it and report

1 Like

I have pavucontrol installed already. Where in it should I be able to switch to 5.1 (or 7.1) sound output?

On it’s last tab “Configuration” it shows me the same 2 profiles for the only item “sof-hda-dsp” the KDE-native audio config tool also shows:

  • Play HiFi quality Music
  • Off

I believe the above list should contain different profiles for stereo and various surround profiles instead.

On the “Output Devices” Tab I have 3 HDMI / DisplayPort Outputs shown, of which #1 = 3rd one listed seems to represent the physical HDMI output my my laptop has. It shows a drop-down “Port” that only has the one entry repeating it’s name with “(plugged in)” appended.
On the right end of the window above that drop-down I have 3 buttons for:

  • muting
  • unlocking separate left & right channel volume control
  • setting as default output.

can you post a image of it ?

1 Like

the second image is the profile of the “Play Hifi quality Music” ?

Yes, it is.

If surround audio works in Windows, the codec pin configurations can be obtained from a virtual Windows environment and applied to audio codec using ALSA tool hda-verb

How to sniff verbs from a Windows sound driver · ryanprescott/realtek-verb-tools Wiki · GitHub

GitHub - Conmanx360/QemuHDADump: Dumps HDA verbs from the CORB buffer of a virtual machine. Useful for reverse engineering drivers on different operating systems.

1 Like

a virtual Windows environment

What does this mean? Something like Windows running in a VM within Linux? Or the other way round like WSL?
I’ve opened the How-To guide you’ve linked and what environment this guide expects. Since he’s using apt-get I guess something debian based - But I’m unsure if that’s meant to be debian / ubuntu within WSL or as the Host-OS?

UPDATE: okey since he’s installing qemu inside the debian-based system, I guess that it’s meant to use Linux as native host OS and windows as the virtual machine’s OS.

Since we’re using Manjaro our package names differ in some cases, which includes qemu. What should I install to get this running?

UPDATE2: Since my laptop came with Windows11, I’m unsure if a virtual Windows10 that this guide suggests to use would be able to talk to my sound card, and even more, make it output surround sound.

Therefore I guess I should first try if I can make it work with Windows11. As the VM-Environment I guess I should start with the Manjaro included package quemu-dekstop. I’m unsure if that 4 year old “jcs-hda-dma” quemu fork the guide is suggesting to use adds anything essential for being able to allow the virtual windows to directly access the physical sound card and sniff the communication to be able to replicate this feature for linux afterwards.

attention windows11 in a linux-vm isn’t easy.

Okey, thanks for the warning.

So you would suggest to try with Windows10, and hope it does share the ability to talk to that sound-card and also make it output surround sound?

may you try this (for testing). create a file
/etc/modprobe.d/test.conf and insert

options snd-sof-pci tplg_filename=sof-hda-generic-2ch-pdm1.tplg

reboot and check again. please report

https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html

well that succeeded in making the integrated stereo microphone non functional :wink:

HDMI functionality seems unchanged, still working stereo sound output, but I can’t see any way to make it output surround sound.