0

I can't get SPDIF output working on my HTPC which used as media player. On volume control I've set the output, but no sound coming out. Also tried to set output to SPDIF on Kodi, with no success. I've working audio from 3.5 MM jack via headphones, but my speakers require an optical output. On my desktop PC with Windows 10 works perfectly fine (So there's no sound card issue).

I guess I'm using Pulseaudio, but I don't really know the relationship between Pulse and ALSA (if there's any).

My setup:

OS: Lubuntu 18.10 X64

USB Sound card: Sound Blaster Omni Surround 5.1

Pulseaudio version: 12.2

Is there any black magic, which needed to get working SPDIF output with an USB sound card?

Info about installed playback devices:

**** List of PLAYBACK Hardware Devices ****

card 0: PCH [HDA Intel PCH], device 0: CX20642 Analog [CX20642 Analog]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 1: S51 [SB Omni Surround 5.1], device 0: USB Audio [USB Audio]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 1: S51 [SB Omni Surround 5.1], device 1: USB Audio [USB Audio #1]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 1: S51 [SB Omni Surround 5.1], device 2: USB Audio [USB Audio #2]

Subdevices: 1/1

Subdevice #0: subdevice #0

Thanks in advance!

Edit: Tried to switch Audio device via PACMD, but still no success. I don't get it, what's wrong out there.

2 sink(s) available.
index: 0
    name: <alsa_output.pci-0000_00_1b.0.hdmi-surround-extra1>
    driver: <module-alsa-card.c>
    flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE
    priority: 9030
    volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB,   rear-left: 65536 / 100% / 0,00 dB,   rear-right: 65536 / 100% / 0,00 dB,   front-center: 65536 / 100% / 0,00 dB,   lfe: 65536 / 100% / 0,00 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: 0
    sample spec: s16le 6ch 44100Hz
    channel map: front-left,front-right,rear-left,rear-right,front-center,lfe
                 Surround 5.1
    used by: 0
    linked by: 0
    configured latency: 0,00 ms; range is 0,50 .. 123,81 ms
    card: 0 <alsa_card.pci-0000_00_1b.0>
    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 Intel PCH"
            alsa.long_card_name = "HDA Intel PCH at 0xf7c30000 irq 31"
            alsa.driver_name = "snd_hda_intel"
            device.bus_path = "pci-0000:00:1b.0"
            sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
            device.bus = "pci"
            device.vendor.id = "8086"
            device.vendor.name = "Intel Corporation"
            device.product.id = "1e20"
            device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
            device.form_factor = "internal"
            device.string = "hdmi:0,1"
            device.buffering.buffer_size = "65520"
            device.buffering.fragment_size = "32760"
            device.access_mode = "mmap+timer"
            device.profile.name = "hdmi-surround-extra1"
            device.profile.description = "Digital Surround 5.1 (HDMI 2)"
            device.description = "Built-in Audio Digital Surround 5.1 (HDMI 2)"
            alsa.mixer_name = "Conexant CX20642"
            alsa.components = "HDA:14f150a2,173411d8,00100100 HDA:80862806,80860101,00100000"
            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 = "LG TV"
    active port: <hdmi-output-1>
  * index: 1
        name: <alsa_output.usb-Creative_Technology_Ltd_SB_Omni_Surround_5.1_0000000v-00.iec958-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9048
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 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: 2
        sample spec: s16le 2ch 48000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 1
        configured latency: 0,00 ms; range is 0,50 .. 2000,00 ms
        card: 1 <alsa_card.usb-Creative_Technology_Ltd_SB_Omni_Surround_5.1_0000000v-00>
        module: 23
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "USB Audio"
                alsa.id = "USB Audio"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "SB Omni Surround 5.1"
                alsa.long_card_name = "Creative Technology Ltd SB Omni Surround 5.1 at usb-0000:00:1a.0-1.2, high spee"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:00:1a.0-usb-0:1.2:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/sound/card1"
                udev.id = "usb-Creative_Technology_Ltd_SB_Omni_Surround_5.1_0000000v-00"
                device.bus = "usb"
                device.vendor.id = "041e"
                device.vendor.name = "Creative Technology, Ltd"
                device.product.id = "322c"
                device.product.name = "SB Omni Surround 5.1"
                device.serial = "Creative_Technology_Ltd_SB_Omni_Surround_5.1_0000000v"
                device.string = "iec958:1"
                device.buffering.buffer_size = "384000"
                device.buffering.fragment_size = "192000"
                device.access_mode = "mmap+timer"
                device.profile.name = "iec958-stereo"
                device.profile.description = "Digital Stereo (IEC958)"
                device.description = "SB Omni Surround 5.1 Digital Stereo (IEC958)"
                alsa.mixer_name = "USB Mixer"
                alsa.components = "USB041e:322c"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        ports:
                iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

        active port: <iec958-stereo-output>

I don't get it why so hard to setup a simple thing. Seems not I'm the only one who have this issue (or similar) On my TV there's a SPDIF output, so I can use my home speakers (HTPC connected with HDMI) , but I want to listen music when the TV is turned off (That's the reason, why I bought a sound card)

closed as off-topic by guiverc, karel, Kulfy, Eric Carvalho, Eliah Kagan Aug 14 at 12:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Lubuntu 18.10 reached EOL earlier this month (2018-October release + 9 months of supported life has passed), thus it's off-topic here, you're not getting security updates, and you should release-upgrade to 19.04 asap. fyi: If new to Ubuntu, LTS releases have 5 years of support (3 for flavors like Lubuntu), so if you don't like release-upgrading every 6-9 months stick to LTS; however for Lubuntu the last LTS used LXDE thus was different to modern Lubuntu; it did however come with 3 years of support being a official flavor LTS. – guiverc Jul 28 at 12:44
0

My USB SBHifi (?) was not selectable recently. Sometimes I had to select a HDMI sound output then select SB... last night I could not even get that to work. what did work was a gnome tweak that had a lot more sound output options, and the correct one was there. https://extensions.gnome.org/extension/906/sound-output-device-chooser/ it has settings under power key, tweaks .

  • I have LXDE installed, but maybe I'll try to find other GUI based mixer for my OS. So thanks for the advice. – SudoSu Jul 29 at 6:38
  • and tonight with similar problem and my trick did not work I discovered that the Logitech speaker unit was not powered on.... so no sound... until I turned it on. This is called in Networking 101 as Layer 1, the physical layer. – pierrely Jul 31 at 11:26
  • I tried switching Audio devices VIA command line tool (pacmd) It shows the active device is the IEC958 plug of my USB sound card, but still no sound. Original post editied... – SudoSu Aug 6 at 17:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.