You are not logged in.

#1 2020-05-09 19:53:57

kamelie1706
Member
Registered: 2014-02-19
Posts: 139

HDMI / Pulseaudio / Alsa - Only Stereo

Hi,

This is the file I am trying to play and listen
mediainfo

Audio #1
ID                                       : 2
Format                                   : MLP FBA 16-ch
Format/Info                              : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : A_TRUEHD
Duration                                 : 2 h 19 min
Bit rate mode                            : Variable
Bit rate                                 : 3 218 kb/s
Maximum bit rate                         : 5 004 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb
Sampling rate                            : 48.0 kHz
Frame rate                               : 1 200.000 FPS (40 SPF)
Compression mode                         : Lossless
Stream size                              : 3.15 GiB (16%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 2 h 19 min
Bit rate mode                            : Constant
Bit rate                                 : 448 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 448 MiB (2%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : No
Forced                                   : No

sudo fuser -v /dev/snd/*

/dev/snd/controlC0:  xxxx       836 F.... pulseaudio
/dev/snd/controlC1:  xxxx       836 F.... pulseaudio

aplay -lL

surround21
    2.1 Surround output to Front and Subwoofer speakers
surround40
    4.0 Surround output to Front and Rear speakers
surround41
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50
    5.0 Surround output to Front, Center and Rear speakers
surround51
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
null
    Discard all samples (playback) or generate zero samples (capture)
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PulseAudio Sound Server)
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=4
    HDA NVidia, HDMI 4
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=5
    HDA NVidia, HDMI 5
    HDMI Audio Output
usbstream:CARD=NVidia
    HDA NVidia
    USB Stream Output
sysdefault:CARD=Generic
    HD-Audio Generic, ALC1220 Analog
    Default Audio Device
front:CARD=Generic,DEV=0
    HD-Audio Generic, ALC1220 Analog
    Front speakers
surround21:CARD=Generic,DEV=0
    HD-Audio Generic, ALC1220 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
    HD-Audio Generic, ALC1220 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
    HD-Audio Generic, ALC1220 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
    HD-Audio Generic, ALC1220 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
    HD-Audio Generic, ALC1220 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
    HD-Audio Generic, ALC1220 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0
    HD-Audio Generic, ALC1220 Digital
    IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
sysdefault:CARD=SC8820
    Default Audio Device
usbstream:CARD=SC8820
    SC-8820
    USB Stream Output
**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: NVidia [HDA NVidia], périphérique 3: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: NVidia [HDA NVidia], périphérique 7: HDMI 1 [HDMI 1]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: NVidia [HDA NVidia], périphérique 8: HDMI 2 [HDMI 2]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: NVidia [HDA NVidia], périphérique 9: HDMI 3 [HDMI 3]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: NVidia [HDA NVidia], périphérique 10: HDMI 4 [HDMI 4]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: NVidia [HDA NVidia], périphérique 11: HDMI 5 [HDMI 5]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: Generic [HD-Audio Generic], périphérique 0: ALC1220 Analog [ALC1220 Analog]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: Generic [HD-Audio Generic], périphérique 1: ALC1220 Digital [ALC1220 Digital]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0

pacmd list-cards

2 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_09_00.1>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf6080000 irq 132"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:09:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "1aeb"
                device.product.name = "TU116 High Definition Audio Controller"
                device.string = "0"
                device.description = "TU116 High Definition Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Sortie Digital Stereo (HDMI) (priority 5900, available: no)
                output:hdmi-surround: Sortie Digital Surround 5.1 (HDMI) (priority 800, available: no)
                output:hdmi-surround71: Sortie Digital Surround 7.1 (HDMI) (priority 800, available: no)
                output:hdmi-stereo-extra1: Sortie Digital Stereo (HDMI 2) (priority 5700, available: unknown)
                output:hdmi-stereo-extra2: Sortie Digital Stereo (HDMI 3) (priority 5700, available: no)
                output:hdmi-surround-extra2: Sortie Digital Surround 5.1 (HDMI 3) (priority 600, available: no)
                output:hdmi-surround71-extra2: Sortie Digital Surround 7.1 (HDMI 3) (priority 600, available: no)
                output:hdmi-stereo-extra3: Sortie Digital Stereo (HDMI 4) (priority 5700, available: no)
                output:hdmi-surround-extra3: Sortie Digital Surround 5.1 (HDMI 4) (priority 600, available: no)
                output:hdmi-surround71-extra3: Sortie Digital Surround 7.1 (HDMI 4) (priority 600, available: no)
                output:hdmi-stereo-extra4: Sortie Digital Stereo (HDMI 5) (priority 5700, available: no)
                output:hdmi-surround-extra4: Sortie Digital Surround 5.1 (HDMI 5) (priority 600, available: no)
                output:hdmi-surround71-extra4: Sortie Digital Surround 7.1 (HDMI 5) (priority 600, available: no)
                output:hdmi-stereo-extra5: Sortie Digital Stereo (HDMI 6) (priority 5700, available: no)
                output:hdmi-surround-extra5: Sortie Digital Surround 5.1 (HDMI 6) (priority 600, available: no)
                output:hdmi-surround71-extra5: Sortie Digital Surround 7.1 (HDMI 6) (priority 600, available: no)
                off: Éteint (priority 0, available: unknown)
        active profile: <output:hdmi-stereo-extra1>
        sinks:
                alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1/#12: TU116 High Definition Audio Controller Digital Stereo (HDMI 2)
        sources:
                alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1.monitor/#17: Monitor of TU116 High Definition Audio Controller Digital Stereo (HDMI 2)
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "2963
        "
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
    index: 1
        name: <alsa_card.pci-0000_0c_00.3>
        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 0xf6800000 irq 134"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:0c:00.3"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0c:00.3/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "1457"
                device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
                device.string = "1"
                device.description = "Family 17h (Models 00h-0fh) HD Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Entrée Stéréo analogique (priority 65, available: no)
                output:analog-stereo: Sortie Stéréo analogique (priority 6500, available: no)
                output:analog-stereo+input:analog-stereo: Duplex stéréo analogique (priority 6565, available: no)
                output:analog-surround-21: Sortie Surround analogique 2.1 (priority 1300, available: no)
                output:analog-surround-21+input:analog-stereo: Sortie Surround analogique 2.1 + Entrée Stéréo analogique (priority 1365, available: no)
                output:analog-surround-40: Sortie Surround analogique 4.0 (priority 1200, available: no)
                output:analog-surround-40+input:analog-stereo: Sortie Surround analogique 4.0 + Entrée Stéréo analogique (priority 1265, available: no)
                output:analog-surround-41: Sortie Surround analogique 4.1 (priority 1300, available: no)
                output:analog-surround-41+input:analog-stereo: Sortie Surround analogique 4.1 + Entrée Stéréo analogique (priority 1365, available: no)
                output:analog-surround-50: Sortie Surround analogique 5.0 (priority 1200, available: no)
                output:analog-surround-50+input:analog-stereo: Sortie Surround analogique 5.0 + Entrée Stéréo analogique (priority 1265, available: no)
                output:analog-surround-51: Sortie Surround analogique 5.1 (priority 1300, available: no)
                output:analog-surround-51+input:analog-stereo: Sortie Surround analogique 5.1 + Entrée Stéréo analogique (priority 1365, available: no)
                output:iec958-stereo: Sortie Stéréo numérique (IEC958) (priority 5500, available: unknown)
                output:iec958-stereo+input:analog-stereo: Sortie Stéréo numérique (IEC958) + Entrée Stéréo analogique (priority 5565, available: no)
                off: Éteint (priority 0, available: unknown)
        active profile: <output:iec958-stereo>
        sinks:
                alsa_output.pci-0000_0c_00.3.iec958-stereo/#13: Family 17h (Models 00h-0fh) HD Audio Controller Stéréo numérique (IEC958)
        sources:
                alsa_output.pci-0000_0c_00.3.iec958-stereo.monitor/#18: Monitor of Family 17h (Models 00h-0fh) HD Audio Controller Stéréo numérique (IEC958)
        ports:
                analog-input-front-mic: Microphone avant (priority 8500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-rear-mic: Microphone arrière (priority 8200, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-linein: Entrée ligne (priority 8100, latency offset 0 usec, available: no)
                        properties:

                analog-output-lineout: Sortie ligne (priority 9000, latency offset 0 usec, available: no)
                        properties:

                analog-output-headphones: Casque audio (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
                iec958-stereo-output: Sortie numérique (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

pacmd list-sinks

2 sink(s) available.
  * index: 12
        name: <alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1>
        driver: <module-alsa-card.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9030
        volume: front-left: 43546 /  66% / -10,65 dB,   front-right: 43546 /  66% / -10,65 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 17
        sample spec: s16le 2ch 48000Hz
        channel map: front-left,front-right
                     Stéréo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 1837,33 ms
        card: 0 <alsa_card.pci-0000_09_00.1>
        module: 7
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "HDMI 1"
                alsa.id = "HDMI 1"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "7"
                alsa.card = "0"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf6080000 irq 132"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:09:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "1aeb"
                device.product.name = "TU116 High Definition Audio Controller"
                device.string = "hdmi:0,1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo-extra1"
                device.profile.description = "Digital Stereo (HDMI 2)"
                device.description = "TU116 High Definition Audio Controller Digital Stereo (HDMI 2)"
                alsa.mixer_name = "Nvidia GPU 99 HDMI/DP"
                alsa.components = "HDA:10de0099,104386bb,00100100"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "2963
        "
        active port: <hdmi-output-1>
    index: 13
        name: <alsa_output.pci-0000_0c_00.3.iec958-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME LATENCY 
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9038
        volume: front-left: 45421 /  69% / -9,55 dB,   front-right: 45421 /  69% / -9,55 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 18
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stéréo
        used by: 0
        linked by: 0
        fixed latency: 100,14 ms
        card: 1 <alsa_card.pci-0000_0c_00.3>
        module: 8
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC1220 Digital"
                alsa.id = "ALC1220 Digital"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "1"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xf6800000 irq 134"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:0c:00.3"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0c:00.3/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "1457"
                device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
                device.string = "iec958:1"
                device.buffering.buffer_size = "17664"
                device.buffering.fragment_size = "2944"
                device.access_mode = "mmap"
                device.profile.name = "iec958-stereo"
                device.profile.description = "Stéréo numérique (IEC958)"
                device.description = "Family 17h (Models 00h-0fh) HD Audio Controller Stéréo numérique (IEC958)"
                alsa.mixer_name = "Realtek ALC1220"
                alsa.components = "HDA:10ec1168,10438723,00100101"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                iec958-stereo-output: Sortie numérique (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

        active port: <iec958-stereo-output>

pacmd list-sink-inputs

0 sink input(s) available.

Using:
- NVVIDIA 1650 graphic card hdmi out for the sound to Sony MDR - HW700
- Pulseaudio
- VLC

Both streams (dolby atmos/7.1 and dolby digital 5.1) output only 2ch/stereo from pulseaudio on the nvidia hdmi.
The stereo input is confirmed by the Sony device.

In pavucontrol/configuration, I can see many 5.1/7.1 output but all marked as "unavailable"

speaker-test -c 6 : seems to work consistently

There is no way in Linux to output 5.1 or 7.1 due to maybe license issues?

Thx for help

Last edited by kamelie1706 (2020-05-09 20:40:36)

Offline

#2 2020-05-09 20:35:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 9,710

Re: HDMI / Pulseaudio / Alsa - Only Stereo

Under the 'Output devices' tab of pavucontrol, you should be able to enable pass through of AC-3 audio streams in the extended dropdown (even though the device is still marked as "stereo"). Given that you directly listen to just this file, digital passthrough including the 5.1 channel layout should work.

Maybe post

pacmd list-cards
pacmd list-sinks
pacmd list-sink-inputs

during playback as well.

Offline

#3 2020-05-09 20:42:58

kamelie1706
Member
Registered: 2014-02-19
Posts: 139

Re: HDMI / Pulseaudio / Alsa - Only Stereo

Thx,

Tried, but did not see any change. Do I need to restart pulsaudio?
Added all inputs in the first post.

Offline

#4 2020-05-09 20:47:04

kamelie1706
Member
Registered: 2014-02-19
Posts: 139

Re: HDMI / Pulseaudio / Alsa - Only Stereo

My bad ... the 5.1 works but not the dolby atmos 7.1.

Offline

Board footer

Powered by FluxBB