[Bug 631319] New: intel_hda: sound stutters, aplay buffer underruns, alsa wakes for no reason
http://bugzilla.novell.com/show_bug.cgi?id=631319 http://bugzilla.novell.com/show_bug.cgi?id=631319#c0 Summary: intel_hda: sound stutters, aplay buffer underruns, alsa wakes for no reason Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Sound AssignedTo: tiwai@novell.com ReportedBy: jslaby@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=383026) --> (http://bugzilla.novell.com/attachment.cgi?id=383026) pulseaudio -v output I have the three issues in summary, but I don't know if they are relative to each other. When I run wine, the sound played in games stutter and effects are played with delays. If I try to play with aplay, sometimes I get underruns like: underrun!!! (at least 494,491 ms long) Status: state : XRUN trigger_time: 1281894363.393273000 tstamp : 0.000000 delay : 0 avail : 5482 avail_max : 22050 underrun!!! (at least 495,794 ms long) Status: state : XRUN trigger_time: 1281894363.896136000 tstamp : 0.000000 delay : 0 avail : 5482 avail_max : 22050 underrun!!! (at least 493,886 ms long) Status: state : XRUN trigger_time: 1281894364.401600000 tstamp : 0.000000 delay : 0 avail : 5482 avail_max : 22050 Dmesgs says: [60023.911007] CE: hpet increased min_delta_ns to 128142 nsec [60026.921175] CE: hpet increased min_delta_ns to 192213 nsec [60076.712008] pulseaudio[13943]: segfault at 7f8e06c3f110 ip 00007f8e06c3f110 sp 00007fffc1e07c18 error 4 in pulse-shm-492800760[7f8e07265000+4001000] [61486.633938] hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj. [61656.184323] hrtimer: interrupt took 3104637 ns pulseaudio sometimes says: ALSA woke us up to write new data to the device, but there was actually nothing to write! I have it only in Czech from logs: alsa-sink.c: ALSA nás probudila z důvodu zápisu nových dat na zařízení, ale ve skutečnosti nebylo co zapisovat. alsa-sink.c: S největší pravděpodobností se jedná o chybu v ovladači ALSA "snd_hda_intel". Nahlaste prosím tento problém vývojářům ALSA. alsa-sink.c: Probudilo nás nastavení POLLOUT - nicméně následné snd_pcm_avail() vrátilo 0 či jinou hodnotu < min_avail. ratelimit.c: 60 events suppressed ratelimit.c: 30 events suppressed This was 3 seconds after "IRQ timing workaround" was activated above. Then there are hundreds of "events suppressed" All the other information are hopefully in alsa-info: http://www.alsa-project.org/db/?f=2b8f40d47bc5a0ba3499ab5fdf2d8aa8ebe980f8 Note that there is PA: Running - No, but the info was probably taken while the PA process was not alive. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=631319
http://bugzilla.novell.com/show_bug.cgi?id=631319#c1
--- Comment #1 from Jiri Slaby
When I run wine, the sound played in games stutter and effects are played with delays.
Note that this happens with $ unset ALSA_CONFIG_PATH $ wine game.exe too. I.e. when wine uses ALSA (/dev/snd/*) directly. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=631319
http://bugzilla.novell.com/show_bug.cgi?id=631319#c2
Takashi Iwai
http://bugzilla.novell.com/show_bug.cgi?id=631319
http://bugzilla.novell.com/show_bug.cgi?id=631319#c3
Jiri Slaby
Possibly due to the recent change of PCM core to check the buffer updating in a more strict manner.
I can't say whether this is a regression. It might be possible. I'm encountering the problems for several months already (post-11.2 vanillas and then factory to 11.3 kernels).
I don't know which messages are suppressed. The BDL workaround warning is shown only once, and the others are from PulseAudio.
Sorry for the confusion, the ratelimit messages are from PA. And follows the POLLOUT error.
# echo 4 > /proc/asound/card0/pcm0p/xrun_debug
If I do this, the sound is OK. The background music is played well. There is a problem when music is mixed with an audio effect. Then I hear a scramble rather than the effect while the music is still playing. But this is a separate issue, I guess. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=631319
https://bugzilla.novell.com/show_bug.cgi?id=631319#c4
Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=631319
https://bugzilla.novell.com/show_bug.cgi?id=631319#c5
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=631319
https://bugzilla.novell.com/show_bug.cgi?id=631319#c6
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=631319
https://bugzilla.novell.com/show_bug.cgi?id=631319#c
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=631319
http://bugzilla.novell.com/show_bug.cgi?id=631319#c7
--- Comment #7 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com