[Bug 285914] New: Sound hangs on CPU frequency change

https://bugzilla.novell.com/show_bug.cgi?id=285914 Summary: Sound hangs on CPU frequency change Product: openSUSE 10.3 Version: Alpha 5 Platform: x86-64 OS/Version: openSUSE 10.2 Status: NEW Severity: Normal Priority: P5 - None Component: Sound AssignedTo: tiwai@novell.com ReportedBy: ray@openland.cz QAContact: qa@suse.de Found By: --- First of all I must say, that I am using openSUSE 10.2, but I have selected openSUSE 10.3 product, because I am using latest kernel from HEAD repository. Hardware Environment: Asus A6Km Software Environment: e.g. Amarok audio player Problem Description: I have Asus A6Km with AMD Turion 3200+. It has Realtek ALC650 integrated sound card and is working fine. Recently, I bought Creative Sound Blaster Live! 5.1 24-bit External for this laptop, because I have already one connected to my desktop computer (openSUSE 10.2 x86) and works fine too. However, when I connect Sound Blaster to my laptop, sound hangs randomly. I spent lot of time finding the reason, because there was nothing in logs, dmesg etc. Finally I found, that it is caused by CPU frequency scaling. When CPU speed is changed, than sound hangs - to reboot help only disconnection of Sound Blaster. When I fix CPU frequency, than Sound Blaster works like the other one in my desktop computer - fine. I found only two refs describing similar/same problem: http://www.linuxforums.org/forum/linux-laptops/63126-sound-problems-cpu-step... http://alsa.opensrc.org/Tascam_US-224 Steps to reproduce: 1) Connect Sound Blaster Live! 5.1 24-bit External 2) start some audio output with your favorite player 3) wait on frequency change 4) Sound hangs 5) For successful reboot, it is necessary to disconnect Sound Blaster Hope, you can help me. If you will need any other info, just ask me. I also submit bug to Alsa bugzilla (ID: 0003097) month ago and kernel bugzilla (ID: 8648), but there were no response. I am not sure whether this is sound subsystem related issue or USB subsystem issue (my laptop has SIS chipset, which is not so often used like others). May be I am absolutely wrong putting this bug report to this bugzilla, so if anyone from Novell staff decide, that this report is not related to this bugzilla, but only to kernel/alsa bugzilla, feel free to close it. -- Configure bugmail: https://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=285914#c1 Takashi Iwai <tiwai@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ray@openland.cz --- Comment #1 from Takashi Iwai <tiwai@novell.com> 2007-06-21 04:07:44 MST --- What do you mean "hangs"? Is it the lock-up, or some process is blocked? Any chance via alt+sysrq+t to see the tasks? -- Configure bugmail: https://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=285914#c2 Jiri Stavinoha <ray@openland.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|ray@openland.cz | --- Comment #2 from Jiri Stavinoha <ray@openland.cz> 2007-06-21 04:18:25 MST --- I mean that sound stop playing. All running or newly opened applications are ok, except audio player which is freezed (also opening other audio player and playing music is impossible of course). When I want to reboot my machine to reinitialize kernel, I must disconnect Sound Blaster or it does not complete shutdown process. I am using KDE and KDE Guard (when I press Ctrl+Esc) show all running tasks. Thanks for the help. -- Configure bugmail: https://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=285914#c3 --- Comment #3 from Jiri Stavinoha <ray@openland.cz> 2007-06-21 04:57:31 MST --- Created an attachment (id=147615) --> (https://bugzilla.novell.com/attachment.cgi?id=147615) dmesg output when sound hangs -- Configure bugmail: https://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=285914#c4 Takashi Iwai <tiwai@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ray@openland.cz --- Comment #4 from Takashi Iwai <tiwai@novell.com> 2007-06-22 04:11:06 MST --- Thanks. I guess it's a problem in communication with the usb device. But to be sure, could you check whether this happens without OSS emulation? Set up the output driver to use ALSA instead of OSS, and you can unload snd-pcm-oss module to remove the OSS emulation. -- Configure bugmail: https://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=285914#c5 Jiri Stavinoha <ray@openland.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|ray@openland.cz | --- Comment #5 from Jiri Stavinoha <ray@openland.cz> 2007-06-22 05:41:31 MST --- I removed snd-pcm-oss module and also configured Amarok output to Alsa, but now Amarok's backend (xine) can not play anything: "xine can not initialize sound driver" (translated from czech). I also try to disable OSS completely in /etc/sysconfig/sound, but same error occurred. My setup is following: freezer:/home/jirka # cat /etc/modprobe.conf.local # # please add local extensions to this file # options snd-usb-audio enable=1,1 index=1,3 vid=0x041E,0x174F pid=0x3040,0xA311 options snd-intel8x0 enable=1 index=2 options saa7134-alsa enable=1 index=4 # second usb device is webcamera's microphone integrated to my laptop) freezer:/home/jirka # cat /etc/modprobe.d/sound # uniq.unknown_key:USB Audio alias snd-card-1 snd-usb-audio # 1sCg.3+YSAxKuAqF:AC'97 Sound Controller alias snd-card-2 snd-intel8x0 alias snd-card-3 snd-usb-audio alias snd-card-4 saa7134-alsa saa7134-alsa is for my hybrid Lifeview TV/DVB card in PCMCIA. Problem with Sound Blaster remain when Lifeview is removed. First sound device has index 1 instead of 0, because snd-usb-audio does not accept index 0 (may be bug?, it also can not be disabled with enable=0). I also forgot to mention, that I am using custom ACPI DSDT which fixes USB issues (laptop was hanging on boot when any USB device was connected). On the other hand, all other USB devices are working fine with my DSDT (mouse, USB HDD, phone etc.). -- Configure bugmail: https://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=285914#c6 Takashi Iwai <tiwai@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ray@openland.cz --- Comment #6 from Takashi Iwai <tiwai@novell.com> 2007-06-22 06:31:37 MST --- No idea about xine. The index=0 and enable=0 options work for me. Currently you have way too many devices. For better analysis, please reduce the devices, connect only one usb-audio, for example, and disable other audio devices. Then, try to reproduce the problem with much simpler program such as aplay. -- Configure bugmail: https://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=285914#c7 --- Comment #7 from Jiri Stavinoha <ray@openland.cz> 2007-06-22 06:57:04 MST --- index=0 and enable=0 works for me too on my desktop computer, where only one USB audio device is connected. But in my laptop's lid, as I mention above, is integrated USB webcamera with microphone and I can not disconnect it! Therefore, I have two USB devices connected (webcamera and Sound Blaster) and setup for this two devices is not working correctly. This line for modprobe: options snd-usb-audio enable=1,0 index=1,3 vid=0x041E,0x174F pid=0x3040,0xA311 does not disable USB webcamera's microphone as expected. Also, index=0 is not accepted. I test this issue when my TV card Lifeview was removed from PCMCIA slot - there are no other devices for disconnections. I does not try aplay when OSS emulation was disabled yet, I will test it soon (but when OSS was enabled it did not work too). -- Configure bugmail: https://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=285914#c8 Jiri Stavinoha <ray@openland.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|ray@openland.cz | --- Comment #8 from Jiri Stavinoha <ray@openland.cz> 2007-06-22 07:32:16 MST --- Bad news. I was writing that everything seem to work correctly, but suddenly, sound hangs again, when Amarok was playing (I found that it can be configured hw,1.0 as aplay with -Dhw1,0 - my previous report with xine malfunction was wrong): dmesg: ALSA sound/usb/usbmixer.c:1722: status interrupt: c0 03 ALSA sound/usb/usbmixer.c:1707: memory change in unknown unit 3 -- Configure bugmail: https://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=285914#c9 --- Comment #9 from Takashi Iwai <tiwai@novell.com> 2007-06-22 08:17:42 MST --- These messages are non-critical but warnings. Surely it should be debugged, but it's not directly related with the hang. Any other apps that trigger the same problem? Amarok uses threads, and I feel it might be some races between threads... -- Configure bugmail: https://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=285914#c10 --- Comment #10 from Jiri Stavinoha <ray@openland.cz> 2007-06-22 08:45:08 MST --- aplay has same problem :( -- Configure bugmail: https://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=285914#c11 --- Comment #11 from Jiri Stavinoha <ray@openland.cz> 2007-06-22 08:52:35 MST --- I was thinking about it and there may be two different issues. 1) hang on CPU frequency change - it looks like you fix it by disabling OSS emulation 2) random hang - caused by bad driver for my USB webcamera's microphone, because its microphone is not working correctly (is detected by snd-usb-audio but not correctly working) It is bad situation, because, as I wrote previously, snd-usb-audio can not be disabled only for one device with enable=1,0 when two USB audio devices are connected due to unknown bug (it disable both devices/leave both devices untouched - I don't remember exactly). -- Configure bugmail: https://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=285914#c12 --- Comment #12 from Takashi Iwai <tiwai@novell.com> 2007-06-22 09:33:36 MST --- Please check /sys/module/snd_usb_audio/parameters/* whether the values are really passed there. Looking at the source code, the enable option may not work properly in the case multiple vid/pid option is given due to some thinkos. But, index option should work, at least... -- Configure bugmail: https://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=285914#c13 --- Comment #13 from Jiri Stavinoha <ray@openland.cz> 2007-06-22 09:48:58 MST --- jirka@freezer:~> cat /sys/module/snd_usb_audio/parameters/async_unlink Y jirka@freezer:~> cat /sys/module/snd_usb_audio/parameters/device_setup 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 jirka@freezer:~> cat /sys/module/snd_usb_audio/parameters/enable Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y jirka@freezer:~> cat /sys/module/snd_usb_audio/parameters/id <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> jirka@freezer:~> cat /sys/module/snd_usb_audio/parameters/index 1,3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 jirka@freezer:~> cat /sys/module/snd_usb_audio/parameters/nrpacks 8 jirka@freezer:~> cat /sys/module/snd_usb_audio/parameters/pid 12352,41745,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 jirka@freezer:~> cat /sys/module/snd_usb_audio/parameters/vid 1054,5967,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 All this info was obtained when Sound Blaster was connected, OSS emulation disabled and configuration was same as I wrote in one of my previous post. -- Configure bugmail: https://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=285914 User tiwai@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=285914#c14 Takashi Iwai <tiwai@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ray@openland.cz --- Comment #14 from Takashi Iwai <tiwai@novell.com> 2008-10-31 01:25:12 MDT --- Does it happen with the later distro version? -- Configure bugmail: https://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=285914 User tiwai@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=285914#c15 Takashi Iwai <tiwai@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|ray@openland.cz | Resolution| |NORESPONSE --- Comment #15 from Takashi Iwai <tiwai@novell.com> 2008-12-09 00:08:16 MST --- Resolved as NORESPONSE. -- Configure bugmail: https://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=285914 User hans@schwimmbeck.de added comment https://bugzilla.novell.com/show_bug.cgi?id=285914#c16 Hans Schwimmbeck <hans@schwimmbeck.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Version|Alpha 5 |Final Platform|x86-64 |x86 Component|Sound |Sound CC| |hans@schwimmbeck.de Resolution|NORESPONSE | Product|openSUSE 10.3 |openSUSE 11.1 OS/Version|openSUSE 10.2 |openSUSE 11.1 --- Comment #16 from Hans Schwimmbeck <hans@schwimmbeck.de> 2009-03-30 16:49:43 MDT --- I have to reopen this bug, because I have similar issues with my USB sound card. I refer to Bug 409042 which I reported 9 months ago and was resolved by a kernel update. Hardware is still the same Eizo monitor HD2441W with builtin USB Audio DAC idVendor=08bb, idProduct=2704 Burr-Brown from TI, CPU is a AMD BE-2400 on a Foxconn A7DA-S mainbord Northbridge AMD 790GX Southbridge AMD SB750. OS is openSUSE 11.1 with stock kernel 2.6.27.19-3.2-pae. I had very rare sound problems on 11.1 with this usb sound card which I now can reproduce. When listening to a music disc and starting a kernel compilation the sound stops with the following error message: -------- kernel: ALSA sound/usb/usbaudio.c:1347: 4:1:1: usb_set_interface failed. -------- Sound resumes only after a reboot. After installing cpufreq I tried out different governors instead of the default ondemand governor. With both performance and powersave governor sound is fine. In my understanding they force the CPU frequency to the highest/lowest possible value. Setting a fixed CPU frequency by -------- cpufreq-set -g userspace cpufreq-set -f 2.0GHz -------- also resolves the issue. So obviously frequency switching as occurring when a CPU demanding task like compilation starts causes the problem. I am running the CPU now at fixed 2.0GHz, which seems to be an acceptable compromise between power comsumption an performance, but a working ondemand governor would be a desirable solution. I have to add that the same issue appears with Debian Lenny, my "playing ground", where I tried out different kernels up to 2.6.29 with the same results. Nevertheless I post the bug here, because SUSE/openSUSE is my productive system since 7.something. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com