Re: 2.6.34-rc1: regression: ^Z no longer stops sound

Previous thread: [PATCH 0/5] Assorted patches for firmware loader by Dmitry Torokhov on Sunday, March 14, 2010 - 12:49 am. (10 messages)

Next thread: HID: N-trig MTM Driver fix And cleanup patch 7 - comments by micki on Sunday, March 14, 2010 - 1:22 am. (2 messages)
From: Pavel Machek
Date: Sunday, March 14, 2010 - 12:58 am

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
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--

From: Bill Davidsen
Date: Sunday, March 14, 2010 - 2:20 pm

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?

-- 
Bill Davidsen <davidsen@tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

--

From: Pavel Machek
Date: Tuesday, March 23, 2010 - 6:59 am

From: Clemens Ladisch
Date: Tuesday, March 23, 2010 - 7:08 am

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
--

From: Bill Davidsen
Date: Wednesday, March 24, 2010 - 9:47 am

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.

-- 
Bill Davidsen <davidsen@tmr.com>
  "We can't solve today's problems by using the same thinking we
   used in creating them." - Einstein

--

From: Takashi Iwai
Date: Monday, March 15, 2010 - 12:27 am

At Sun, 14 Mar 2010 08:58:31 +0100,

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
--

From: Jaroslav Kysela
Date: Monday, March 15, 2010 - 12:46 am

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 <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

--

From: Maciej Rutecki
Date: Saturday, March 20, 2010 - 12:55 pm

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!
-- 
Maciej Rutecki
http://www.maciek.unixy.pl
--

From: Pavel Machek
Date: Saturday, March 27, 2010 - 12:51 pm

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
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--

Previous thread: [PATCH 0/5] Assorted patches for firmware loader by Dmitry Torokhov on Sunday, March 14, 2010 - 12:49 am. (10 messages)

Next thread: HID: N-trig MTM Driver fix And cleanup patch 7 - comments by micki on Sunday, March 14, 2010 - 1:22 am. (2 messages)