snd_pcm_avail_delay report

Bug #668078 reported by Stanislaw Pitucha
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Got these messages in user.log, so I'm reporting them :)

Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: snd_pcm_avail_delay() returned strange values: delay 0 is less than avail 16.
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: snd_pcm_dump():
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: Soft volume PCM
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: Control: PCM Playback Volume
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: min_dB: -51
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: max_dB: 0
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: resolution: 256
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: Its setup is:
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: stream : CAPTURE
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: access : MMAP_INTERLEAVED
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: format : S16_LE
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: subformat : STD
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: channels : 2
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: rate : 44100
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: exact rate : 44100 (44100/1)
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: msbits : 16
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: buffer_size : 88192
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: period_size : 44096
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: period_time : 999909
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: tstamp_mode : ENABLE
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: period_step : 1
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: avail_min : 87310
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: period_event : 0
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: start_threshold : -1
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: stop_threshold : 6205960286516543488
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: silence_threshold: 0
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: silence_size : 0
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: boundary : 6205960286516543488
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: Slave: Hardware PCM card 0 'HDA Intel' device 0 subdevice 0
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: Its setup is:
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: stream : CAPTURE
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: access : MMAP_INTERLEAVED
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: format : S16_LE
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: subformat : STD
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: channels : 2
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: rate : 44100
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: exact rate : 44100 (44100/1)
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: msbits : 16
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: buffer_size : 88192
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: period_size : 44096
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: period_time : 999909
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: tstamp_mode : ENABLE
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: period_step : 1
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: avail_min : 87310
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: period_event : 0
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: start_threshold : -1
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: stop_threshold : 6205960286516543488
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: silence_threshold: 0
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: silence_size : 0
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: boundary : 6205960286516543488
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: appl_ptr : 87320
Oct 28 18:11:37 walker pulseaudio[1498]: alsa-util.c: hw_ptr : 87320

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: alsa-base 1.0.23+dfsg-1ubuntu4
ProcVersionSignature: Ubuntu 2.6.35-23.36-generic 2.6.35.7
Uname: Linux 2.6.35-23-generic x86_64
NonfreeKernelModules: wl
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: viraptor 1653 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfbd00000 irq 47'
   Mixer name : 'Intel IbexPeak HDMI'
   Components : 'HDA:111d7605,10280447,00100105 HDA:80862804,80860101,00100000'
   Controls : 22
   Simple ctrls : 11
Date: Thu Oct 28 23:30:01 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitecture: all
ProcEnviron:
 LANG=en_GB.utf8
 SHELL=/bin/bash
SourcePackage: alsa-driver
dmi.bios.date: 05/10/2010
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A04
dmi.board.name: 0WXY9J
dmi.board.vendor: Dell Inc.
dmi.board.version: A04
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: A04
dmi.modalias: dmi:bvnDellInc.:bvrA04:bd05/10/2010:svnDellInc.:pnInspironN5010:pvrA04:rvnDellInc.:rn0WXY9J:rvrA04:cvnDellInc.:ct8:cvrA04:
dmi.product.name: Inspiron N5010
dmi.product.version: A04
dmi.sys.vendor: Dell Inc.

Revision history for this message
Stanislaw Pitucha (viraptor-gmail) wrote :
Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 668078] Re: snd_pcm_avail_delay report

Can you reproduce this symptom using the latest daily build of the sound
drivers? Please see https://wiki.ubuntu.com/Audio

Revision history for this message
Stanislaw Pitucha (viraptor-gmail) wrote :

I'll check as soon as there is one released for 2.6.35-23-generic. Last one seems to be for 2.6.35-22

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

according to HDA specification

Input Delay is a 4-bit value representing the number of samples between when the sample is
received as an analog signal at the pin and when the digital representation is transmitted on the
High Definition Audio Link. This may be a “typical” value. If this is 0, the widgets along the
critical path should be queried, and each individual widget must report its individual delay.

Does PA developer mean HDA driver is still broken ?

alsa: work around slightly broken _delay implementations

Use snd_pcm_avail_delay() in pa_alsa_safe_delay() so that we can check the delay value against the avail value and patch it up when it looks invalid. Only do this for capture.

http://git.0pointer.de/?p=pulseaudio.git;a=commit;h=f29acfd0e0413a9bd126782763ee2dcf10357546

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for alsa-driver (Ubuntu) because there has been no activity for 60 days.]

Changed in alsa-driver (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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