2.6.34-rc1: regression: ^Z no longer stops sound
Hi!
In 2.6.33, hitting ^Z stopped mpg123 in a way you'd expect (both on thinkpad and geode notebook).
On 2.6.34-rc1, hit ^Z and sound starts looping.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 7 lines · Pavel Machek
Hi!
In 2.6.33, hitting ^Z stopped mpg123 in a way you'd expect (both on thinkpad and geode notebook).
On 2.6.34-rc1, hit ^Z and sound starts looping.
Pavel
That's not new, I have seen it back as far as 2.6.27.25 doing a suspend in a VM (KVM, no libvirt). But it only happens a few times a year, so I never chased it. I hate to report an occasional problem in an obsolete kernel, and I can't reproduce it.
Does it happen repeatably with the new kernel?
Signature · 3 lines
Bill Davidsen <[email protected]> "We have more to fear from the bungling of the incompetent than from the machinations of the wicked." - from Slashdot
Quoted 6 lines · Bill Davidsen
Quoted 5 lines · Pavel Machek
Hi!
In 2.6.33, hitting ^Z stopped mpg123 in a way you'd expect (both on thinkpad and geode notebook).
Quoted 8 lines
Quoted 2 lines
On 2.6.34-rc1, hit ^Z and sound starts looping.
PavelThat's not new, I have seen it back as far as 2.6.27.25 doing a suspend in a VM (KVM, no libvirt). But it only happens a few times a year, so I never chased it. I hate to report an occasional problem in an obsolete kernel, and I can't reproduce it.
Does it happen repeatably with the new kernel?
It happened reliably so far, yes.
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 7 lines · Pavel Machek
Quoted 6 lines · Bill Davidsen
Quoted 4 lines · Pavel Machek
In 2.6.33, hitting ^Z stopped mpg123 in a way you'd expect (both on thinkpad and geode notebook).
On 2.6.34-rc1, hit ^Z and sound starts looping.
Quoted 8 lines
Quoted 6 lines
That's not new, I have seen it back as far as 2.6.27.25 doing a suspend in a VM (KVM, no libvirt). But it only happens a few times a year, so I never chased it. I hate to report an occasional problem in an obsolete kernel, and I can't reproduce it.
Does it happen repeatably with the new kernel?
It happened reliably so far, yes.
This sounds as if the device has been configured to ignore underruns. What are the contents of /proc/asound/card0/pcm0p/sub0/{sw_params,status} when it's looping, and when it's really suspended?
Regards,
Clemens
Quoted 13 lines · Clemens Ladisch
Quoted 11 lines · Pavel Machek
Quoted 9 lines · Bill Davidsen
Quoted 5 lines · Pavel Machek
In 2.6.33, hitting ^Z stopped mpg123 in a way you'd expect (both on thinkpad and geode notebook).
On 2.6.34-rc1, hit ^Z and sound starts looping.
That's not new, I have seen it back as far as 2.6.27.25 doing a suspend in a VM (KVM, no libvirt). But it only happens a few times a year, so I never chased it. I hate to report an occasional problem in an obsolete kernel, and I can't reproduce it.
Quoted 9 lines
Quoted 4 lines
Quoted 2 lines
Does it happen repeatably with the new kernel?
It happened reliably so far, yes.
This sounds as if the device has been configured to ignore underruns. What are the contents of
/proc/asound/card0/pcm0p/sub0/{sw_params,status}when it's looping, and when it's really suspended?
If you can give me a hint how to read /proc when the machine is suspended, other than waking it up, I'll certainly check the next time I see it.
But after reading your thought on underruns, I think you right. I see from a note I wrote myself that I get this while pushing a wav file over the network to run "play" (from sox) on another machine. Every once in a while it finds a musical phrase it really likes. I had assumed it was a bug in sox, but a bug or mis-configure in the device fits all of the observed cases I've seen.
Signature · 3 lines
Bill Davidsen <[email protected]> "We can't solve today's problems by using the same thinking we used in creating them." - Einstein
At Sun, 14 Mar 2010 08:58:31 +0100,
Quoted 7 lines · Pavel Machek
Hi!
In 2.6.33, hitting ^Z stopped mpg123 in a way you'd expect (both on thinkpad and geode notebook).
On 2.6.34-rc1, hit ^Z and sound starts looping.
Is it an OSS app using the kernel OSS emulation or another backend?
The possible cause is the rewrite of PCM hwptr updater. Jaroslav, could you take a look?
thanks,
Takashi
Quoted 11 lines
At Sun, 14 Mar 2010 08:58:31 +0100,
Quoted 7 lines · Pavel Machek
Hi!
In 2.6.33, hitting ^Z stopped mpg123 in a way you'd expect (both on thinkpad and geode notebook).
On 2.6.34-rc1, hit ^Z and sound starts looping.
Is it an OSS app using the kernel OSS emulation or another backend?
OSS kernel emulation, yes. ... at least I think I'm using it.
Quoted 2 lines
The possible cause is the rewrite of PCM hwptr updater. Jaroslav, could you take a look?
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 5 lines · Pavel Machek
Quoted 5 lines
At Sun, 14 Mar 2010 08:58:31 +0100,
Quoted 3 lines · Pavel Machek
Hi!
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
In 2.6.33, hitting ^Z stopped mpg123 in a way you'd expect (both on thinkpad and geode notebook).
On 2.6.34-rc1, hit ^Z and sound starts looping.
Is it an OSS app using the kernel OSS emulation or another backend?
OSS kernel emulation, yes. ... at least I think I'm using it.
I cannot reproduce this problem here. Could you post the contents of /proc/asound/card0/pcm0p/sub0/status file when you stop the audio process and looping starts?
Thanks,
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
Quoted 8 lines · On niedziela, 14 marca 2010 o 08:58:31 Pavel Machek wrote:
Hi!
In 2.6.33, hitting ^Z stopped mpg123 in a way you'd expect (both on thinkpad and geode notebook).
On 2.6.34-rc1, hit ^Z and sound starts looping.
Pavel
I created a Bugzilla entry at
https://bugzilla.kernel.org/show_bug.cgi?id=15590
for your bug report, please add your address to the CC list in there, thanks!
Signature · 2 lines
Maciej Rutecki http://www.maciek.unixy.pl
Quoted 6 lines · Maciej Rutecki
Quoted 5 lines · On niedziela, 14 marca 2010 o 08:58:31 Pavel Machek wrote:
Hi!
In 2.6.33, hitting ^Z stopped mpg123 in a way you'd expect (both on thinkpad and geode notebook).
Quoted 7 lines
Quoted 3 lines
On 2.6.34-rc1, hit ^Z and sound starts looping.
PavelI created a Bugzilla entry at
https://bugzilla.kernel.org/show_bug.cgi?id=15590
for your bug report, please add your address to the CC list in there, thanks!
It was fixed by patch in
"[for 2.6.34][PATCH] ALSA: pcm_lib - fix xrun functionality" thread. It should already be in sound tree.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html