Simultaneous Output delayed

Bug #1405449 reported by Jeb E.
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PulseAudio
Unknown
High
paprefs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Using Simultaneous Output within Pulseaudio Preferences slightly delays one audio output source over the other, maybe only by 1/4 or a second or so, but it's a noticeable amount to create an annoyance and un-unified musical experience. Please fix.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: paprefs 0.9.10-1
ProcVersionSignature: Ubuntu 3.16.0-24.32-generic 3.16.4
Uname: Linux 3.16.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Dec 24 10:51:54 2014
InstallationDate: Installed on 2014-11-08 (46 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
ProcEnviron:
 LANGUAGE=en_US
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: paprefs
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
In , Asomerville52 (asomerville52) wrote :

Setting up simultaneous analog and digital output results in relative lag between the analog and digital outputs on my Nforce2 motherboard with onboard sound.

This is using the example provided in the pulseaudio archlinux wiki, here:

https://wiki.archlinux.org/index.php/PulseAudio/Examples#Simultaneous_HDMI_and_Analog_Output

.. with the following "default.pa" entries:

### Load analog device
load-module module-alsa-sink device=hw:0,2
load-module module-combine-sink sink_name=combined
set-default-sink combined

I can be watching a movie on VLC and a relative delay between analog and digital outputs can develop, so that a sound will come out one set of speakers half a second after they come out the other, making movies unwatchable. A fast way to make the problem occur is to change tracks on Clementine, making use of the crossfade feature, resulting in an element of mixing. The relative lag is non-fixed and sporadic.

This problem does not occur using a custom .asoundrc to setup simultaneous digital and analog output using ALSA without Pulseaudio.

Revision history for this message
In , Raymond (superquad-vortex2) wrote :

post the output of alsa-info. sh

are your card like the first example in your url?

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC889A Analog [ALC889A Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC889A Digital [ALC889A Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

the alsaid driver can play stereo to both device 0 and device 1 at the same time when they are belong to same hda codec

Revision history for this message
Jeb E. (jebeld17) wrote :
Revision history for this message
In , Alexander E. Patrakov (patrakov-gmail) wrote :

*** Bug 88703 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Alexander E. Patrakov (patrakov-gmail) wrote :

*** Bug 87692 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jeb E. (jebeld17) wrote :

Added URL to bug in Launchpad.

Changed in paprefs (Ubuntu):
status: New → Confirmed
Revision history for this message
Jeb E. (jebeld17) wrote :

Changed to Confirmed due to official PulseAudio Bug Report at https://bugs.freedesktop.org/show_bug.cgi?id=64017

Changed in pulseaudio:
importance: Unknown → High
status: Unknown → Confirmed
Revision history for this message
In , Raymond (superquad-vortex2) wrote :

http://git.kernel.org/cgit/linux/kernel/git/tiwai/hda-emu.git/plain/codecs/cs4206-macbook-pro-81?id=HEAD

it is possiblw that analog output has 13 samples delay but digital output has 4 sample delay for those macbook using cs4206

ode 0x02 [Audio Output] wcaps 0xd041d: Stereo Amp-Out
  Control: name="Master Playback Switch", index=0, device=0
  Control: name="Master Playback Volume", index=0, device=0
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x73, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals: [0x68 0x68]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states: D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 13 samples

ode 0x08 [Audio Output] wcaps 0x40611: Stereo Digital
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Control: name="IEC958 Default PCM Playback Switch", index=0, device=0
  Device: name="Cirrus Digital", type="SPDIF", device=1
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x7]: PCM FLOAT AC3
  Power states: D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 4 samples

Revision history for this message
Jeb E. (jebeld17) wrote :

Issue still occurs in Ubuntu 17.10 (x64, Desktop)

Changed in paprefs (Ubuntu):
status: Confirmed → In Progress
status: In Progress → Confirmed
Revision history for this message
In , Gitlab-migration (gitlab-migration) wrote :

-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/151.

Changed in pulseaudio:
status: Confirmed → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.