You are not logged in.

#1 2020-02-12 21:15:04

Dehobago
Member
Registered: 2020-02-12
Posts: 1

Stuttering sound when changing volume with PA @ Digital Surround 5.1

Hello, I've connected my computer with my Dolby/DTS decoder via SPDIF. I'm using the current versions Linux kernel 5.5.3-arch1-1 and pulseaudio 13.0

First I choosed "Digital Stereo (IEC958)" in pavucontrol, that worked fine. But I want to use my 5.1 system, so I made that workaround as described in the wiki including installing dcaenc (AUR). Now I can choose "Digital Surround 5.1 (IEC958/DTS)", which works. But only at this selected output method the sound is stopping for ca. 500ms before playing again with the lower volume. This is for both changing the device volume or the application volume. But not for changing the volume in the application itself.

Would be nice if someone have an idea how to solve this problem.

Last edited by Dehobago (2020-02-12 21:27:14)

Offline

#2 2020-03-07 10:28:43

Neonvieh
Member
Registered: 2015-01-01
Posts: 3

Re: Stuttering sound when changing volume with PA @ Digital Surround 5.1

Hi,

I have a similar problem with my spdif (optical cable) device. Stereo sound works without any artifacts but the audio profile provided by dcaenc (AUR) crackles and has delayed audio. Also if I want to control the volume via (for example) kmix, I can not change it smoothly and the speakers will crackle and pop almost every step. As soon as a video or audio stream is playing, everything is fine and the crackling is gone. However adjusting the volume during an audio stream also creates the problem.

I additionally noticed that my receiver (YAMAHA Natural Sound AV Receiver RX-V365) switches from "DTS" to "PCM" if there is no sound coming from my pc for a extended period. Once the audio stream is started it crackles and switches back to "DTS". However i doubt that this is a receiver side problem since digital surround sound works perfectly.

Partial Output of pacmd list for the device

    index: 1
        name: <alsa_card.pci-0000_00_1b.0>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "1"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7400000 irq 39"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "1c20"
                device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "1"
                device.description = "Built-in Audio"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Analog Stereo Input (priority 15, available: unknown)
                output:analog-stereo: Analog Stereo Output (priority 1500, available: unknown)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 1515, available: unknown)
                output:analog-surround-21: Analog Surround 2.1 Output (priority 1300, available: unknown)
                output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (priority 1315, available: unknown)
                output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: unknown)
                output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 1215, available: unknown)
                output:analog-surround-41: Analog Surround 4.1 Output (priority 1300, available: unknown)
                output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (priority 1315, available: unknown)
                output:analog-surround-50: Analog Surround 5.0 Output (priority 1200, available: unknown)
                output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (priority 1215, available: unknown)
                output:analog-surround-51: Analog Surround 5.1 Output (priority 4300, available: unknown)
                output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (priority 4315, available: unknown)
                output:analog-surround-71: Analog Surround 7.1 Output (priority 1200, available: unknown)
                output:analog-surround-71+input:analog-stereo: Analog Surround 7.1 Output + Analog Stereo Input (priority 1215, available: unknown)
                output:iec958-stereo: Digital Stereo (IEC958) Output (priority 500, available: unknown)
                output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 515, available: unknown)
                output:iec958-dts-surround-51: Digital Surround 5.1 (IEC958/DTS) Output (priority 3300, available: unknown)
                output:iec958-dts-surround-51+input:analog-stereo: Digital Surround 5.1 (IEC958/DTS) Output + Analog Stereo Input (priority 3315, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <output:iec958-dts-surround-51>
        sinks:
                alsa_output.pci-0000_00_1b.0.iec958-dts-surround-51/#0: Built-in Audio Digital Surround 5.1 (IEC958/DTS)
        sources:
                alsa_output.pci-0000_00_1b.0.iec958-dts-surround-51.monitor/#0: Monitor of Built-in Audio Digital Surround 5.1 (IEC958/DTS)
        ports:
                analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
                        properties:

                analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: yes)
                        properties:

                analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
                iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

The stereo sound profile (provided by alsa?) is

output:iec958-stereo: Digital Stereo (IEC958) Output (priority 500, available: unknown)
output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 515, available: unknown)

The profiles provided by dcaenc are

output:iec958-dts-surround-51: Digital Surround 5.1 (IEC958/DTS) Output (priority 3300, available: unknown)
output:iec958-dts-surround-51+input:analog-stereo: Digital Surround 5.1 (IEC958/DTS) Output + Analog Stereo Input (priority 3315, available: unknown)

I followed the steps on the git page but since it's a almost 6 years old Package, I was questioning if it was holding up.

My ~/.asoundrc is

pcm.!default {
    type hw
    card PCH
}

ctl.!default {
    type hw
    card PCH
}

and my /etc/asound.conf is

# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:

<confdir:pcm/dca.conf>

pcm.pulse {
        type pulse
}
ctl.pulse {
        type pulse
}
pcm.!default {
        type pulse
}
ctl.!default {
        type pulse
}

I read that DTS 5.1 Surround wil be supported in Pulseaudio 13, however as it seems it was cut out due to not beeing finished.

Thanks in Advance for your help.

Offline

Board footer

Powered by FluxBB