Subwoofer drops out when playback ends

Bug #1445861 reported by UltyX on 2015-04-19
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Medium
Unassigned

Bug Description

When audio is played in a 5.1 configuration then there is no sound coming from the Subwoofer channel by default.
Functionality of the Subwoofer channel can be temporarily restored by switching the audio profile from 5.1 to stereo and back to 5.1 again.

Changing the line in /etc/pulse/daemon.conf
from
; enable-lfe-remixing = no
to
enable-lfe-remixing = yes

Fixes this issue permanently with my current hardware configuration.

ubuntu-bug wrongly identified the Nvidia HDMI port as the symptomatic card. The actual playback device is the build in Intel HDA ALC1150 audio chipset.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.16.0-34.47-generic 3.16.7-ckt8
Uname: Linux 3.16.0-34-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.7-0ubuntu8.4
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: ulty 2968 F.... pulseaudio
 /dev/snd/controlC1: ulty 2968 F.... pulseaudio
 /dev/snd/pcmC0D0p: ulty 2968 F...m pulseaudio
 /dev/snd/controlC0: ulty 2968 F.... pulseaudio
CurrentDesktop: KDE
Date: Sun Apr 19 06:48:18 2015
InstallationDate: Installed on 2014-10-18 (182 days ago)
InstallationMedia: Kubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:NVidia successful
Symptom_Card: GK104 HDMI Audio Controller - HDA NVidia
Symptom_Jack: Digital Out, HDMI
Symptom_PulsePlaybackTest: PulseAudio playback test successful
Symptom_Type: Only some of outputs are working
Title: [All Series, Nvidia GPU 40 HDMI/DP, Digital Out, HDMI] Playback problem
UpgradeStatus: Upgraded to utopic on 2014-10-25 (175 days ago)
dmi.bios.date: 02/06/2015
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1401
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: X99-A
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1401:bd02/06/2015:svnASUS:pnAllSeries:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnX99-A:rvrRev1.xx:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: All Series
dmi.product.version: System Version
dmi.sys.vendor: ASUS

UltyX (ultyx1) wrote :
Raymond (superquad-vortex2) wrote :

Default sample spec: s16le 2ch 44100Hz
Default channel map: front-left,front-right
Default sink name: alsa_output.pci-0000_01_00.1.hdmi-stereo
Default source name: alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor

 active profile: <output:hdmi-stereo>
 sinks:
  alsa_output.pci-0000_01_00.1.hdmi-stereo/#0: GK104 HDMI Audio Controller Digital Stereo (HDMI)
 sources:
  alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor/#0: Monitor of GK104 HDMI Audio Controller Digital Stereo (HDMI)
 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: no)
   properties:
    device.icon_name = "video-display"
  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"

your hdmi seem not detected

xrandr --verbose

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
tags: added: bios-outdated-1702
UltyX (ultyx1) wrote :
Download full text (12.3 KiB)

xrandr --verbose
Screen 0: minimum 8 x 8, current 3600 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
        Identifier: 0x27e
        Timestamp: 22077747
        Subpixel: unknown
        Clones:
        CRTCs: 0 1 2 3
        Transform: 1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter:
        BorderDimensions: 4
                supported: 4
        Border: 0 0 0 0
                range: (0, 65535)
        SignalFormat: VGA
                supported: VGA
        ConnectorType: DVI-I
        ConnectorNumber: 0
        _ConnectorLocation: 0
DVI-I-1 connected primary 1920x1080+1680+0 (0x282) normal (normal left inverted right x axis y axis) 531mm x 298mm
        Identifier: 0x27f
        Timestamp: 22077747
        Subpixel: unknown
        Gamma: 1.0:1.0:1.0
        Brightness: 1.0
        Clones:
        CRTC: 0
        CRTCs: 0 1 2 3
        Transform: 1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter:
        EDID:
                00ffffffffffff0009d1107f45540000
                2a16010380351e782e48a0a654549f26
                0d5054a56b803168317c4568457c6168
                617c953c0101023a801871382d40582c
                4500132a2100001e000000ff004c4143
                3036373530534c300a20000000fd0038
                901ea021000a202020202020000000fc
                0042656e5120584c32343131540a012a
                02010400fe5b80a07038354030203500
                132a2100001a866f80a0703840403020
                3500132a2100001a8a4d80a070382c40
                30203500132b2100001a057c80587038
                124018203500132b2100001e00000000
                00000000000000000000000000000000
                00000000000000000000000000000000
                000000000000000000000000000000e6
        BorderDimensions: 4
                supported: 4
        Border: 0 0 0 0
                range: (0, 65535)
        SignalFormat: TMDS
                supported: TMDS
        ConnectorType: DVI-I
        ConnectorNumber: 0
        _ConnectorLocation: 0
  1920x1080 (0x280) 148.5MHz +HSync +VSync +preferred
        h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.5KHz
        v: height 1080 start 1084 end 1089 total 1125 clock 60.0Hz
  1920x1080 (0x281) 317.5MHz +HSync +VSync
        h: width 1920 start 1944 end 1976 total 2008 skew 0 clock 158.1KHz
        v: height 1080 start 10...

Raymond (superquad-vortex2) wrote :

seem your BENQ display are connected DVI-I-1 connected primary

not sure why default sink change to non available HDMI when you have both USB audio and onboard analog device available

https://wiki.ubuntu.com/PulseAudio/Log

did you customise default.pa to select any specified sink ?

control.37 {
  iface CARD
  name 'Line Out Front Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.38 {
  iface CARD
  name 'Line Out Surround Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.39 {
  iface CARD
  name 'Line Out CLFE Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }

UltyX (ultyx1) wrote :

> did you customise default.pa to select any specified sink ?
Not to my knowledge. I only used the default kde device preferences tool to pick my sound card and set it to 5.1 and mark it as most preferred. And I used alsamixer to unmute/set volume on the different channels.

> https://wiki.ubuntu.com/PulseAudio/Log
I set enable-lfe-remixing = yes back to 'no' and then went through the process of reproducing the subwoofer sound drops out bug on my system:
1. Ran the commands:
echo autospawn = no >> ~/.config/pulse/client.conf #use ~/.pulse/client.conf on Ubuntu <= 12.10
killall pulseaudio
LANG=C pulseaudio -vvvv --log-time=1 > ~/pulseverbose.log 2>&1

2. Started Clementine to play some bass heavy audio: Result no subwoofer output
3. Went into device preferences and set my buildin card to stereo output and after about a sec. back to 5.1: Result subwoofer output worked for the still playing song.
4. After playback of the song was ended I tried playing it again: Result no subwoofer output
5. ^c

Raymond (superquad-vortex2) wrote :
Download full text (4.5 KiB)

  51.446| 2.302) D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_1b.0.analog-stereo becomes idle, timeout in 5 seconds.
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] sink-input.c: Have to rewind 15840 bytes on render memblockq.
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] sink-input.c: Have to rewind 31680 bytes on implementor.
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: hwbuf_unused=0
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: setting avail_min=15502
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] sink.c: Requesting rewind due to started move
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: Requested volume: 0: 55% 1: 55%
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: in dB: 0: -15,75 dB 1: -15,75 dB
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: Got hardware volume: 0: 55% 1: 55%
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: in dB: 0: -15,60 dB 1: -15,60 dB
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: Calculated software volume: 0: 99% 1: 99% (accurate-enough=yes)
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: in dB: 0: -0,15 dB 1: -0,15 dB
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] sink.c: Volume not changing
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: Requested to rewind 65536 bytes.
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: Limited to 15428 bytes.
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: before: 3857
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: after: 3857
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: Rewound 15428 bytes.
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] sink.c: Processing rewind...
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] sink.c: latency = 1937
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] source.c: Processing rewind...
( 51.446| 0.000) D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_1b.0.analog-stereo becomes idle, timeout in 5 seconds.
( 51.446| 0.000) D: [pulseaudio] module-rescue-streams.c: No sink inputs to move away.
( 51.446| 0.000) D: [pulseaudio] module-rescue-streams.c: No source outputs to move away.
( 51.446| 0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
( 51.446| 0.000) D: [alsa-sink-ALC1150 Analog] alsa-sink.c: Thread shutting down
( 51.447| 0.000) I: [pulseaudio] sink.c: Freeing sink 3 "alsa_output.pci-0000_00_1b.0.analog-stereo"
( 51.447| 0.000) I: [pulseaudio] source.c: Freeing source 4 "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor"
( 51.447| 0.000) D: [pulseaudio] module-rescue-streams.c: No source outputs to move away.
( 51.447| 0.000) D: [alsa-source-ALC1150 Analog] alsa-source.c: Thread shutting down
( 51.447| 0.000) I: [pulseaudio] source.c: Freeing source 5 "alsa_input.pci-0000_00_1b.0.analog-stereo"
( 51.448| 0.001) D: [pulseaudio] reserve-wrap.c: Successfully acquired reservation lock on device 'Audio0'
( 51.449| 0.000) D: [pulseaudio] reserve-wrap.c: Succes...

Read more...

Changed in alsa-driver (Ubuntu):
importance: Undecided → Medium
status: Incomplete → New
Raymond (superquad-vortex2) wrote :

as you are not using 48000Hz 6 channels

it depend on your HDA controller don't has 128 bytes alignment in period bytes restriction

( 2.009| 0.000) I: [pulseaudio] sink.c: device.vendor.id = "8086"
( 2.009| 0.000) I: [pulseaudio] sink.c: device.vendor.name = "Intel Corporation"
( 2.009| 0.000) I: [pulseaudio] sink.c: device.product.id = "8d20"
( 2.009| 0.000) I: [pulseaudio] sink.c: device.product.name = "Wellsburg HD Audio Controller"
( 2.009| 0.000) I: [pulseaudio] sink.c: device.form_factor = "internal"
( 2.009| 0.000) I: [pulseaudio] sink.c: device.string = "surround51:0"
( 2.009| 0.000) I: [pulseaudio] sink.c: device.buffering.buffer_size = "65520"
( 2.009| 0.000) I: [pulseaudio] sink.c: device.buffering.fragment_size = "32760"
( 2.009| 0.000) I: [pulseaudio] sink.c: device.access_mode = "mmap+timer"
( 2.009| 0.000) I: [pulseaudio] sink.c: device.profile.name = "analog-surround-51"
( 2.009| 0.000) I: [pulseaudio] sink.c: device.profile.description = "Analog Surround 5.1"

Raymond (superquad-vortex2) wrote :

 51.449| 0.000) D: [pulseaudio] alsa-util.c: Maximum hw buffer size is 123 ms
 ( 51.449| 0.000) I: [pulseaudio] alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument
 ( 51.449| 0.000) I: [pulseaudio] alsa-util.c: snd_pcm_hw_params_set_period_size_near() failed: Invalid argument
 ( 51.449| 0.000) I: [pulseaudio] alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument

http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/alsa-util.c?id=3c73e2130fd65e147c487b0b84c1a8b6a8afa04c

UltyX (ultyx1) wrote :

> do you mean this patch still not fix your problem ?
I'm not a developer, so all I can say to the patch is that the description seems to fit. If this patch is present in the pulseaudio package which shipped with ubuntu 14.10 then this patch did not fix the problem.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers