-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beaglebone usb audio noise #2
Comments
Same here with a XITEL MD-PORT AN1. mpg321 sits at around 5 % with kworker/0:1 at 95 %. Audio is choppy. |
There's another report here: |
Hacking and switching the config from DMA mode to PIO mode cuts the CPU usage to < 1 %. All good. |
hi nzmichaelh, how do you switched the mode? Thanks! |
Just rebuild the kernel with this changed from: CONFIG_MUSB_PIO_ONLY is not set to CONFIG_MUSB_PIO_ONLY=Y Still a mess, as somethings work better, but then others don't.. I thought i also saw a command line bootarg a few week too, but can't find it at the moment.. Regards, |
Robert, thanks for your work! I will wait for a stable solution. Regards. |
Guys, i just pushed out a new version, v3.2.0-psp4, it's a got a few musb fixes.. (both my rtwifi adapters now both work. Previous one would bring the bone down to it's knees.) Care to give it test? The builders are currently chewing on it(1), but it can be built from source.. Regards, 1: http://rcn-ee.homeip.net:81/dl/farm/deb/ edit: opps, spoke to o soon, the one adapter crapped out after a good 10minutes of working perfectly. ;) |
just got time back to this. I compiled the kernel 3.2.0-psp7 and set CONFIG_MUSB_PIO_ONLY=Y. tested and it solves the kworker issue. thanks, robert and nzmichaelh. another discussion of the same issue is here https://groups.google.com/forum/?fromgroups#!msg/beaglebone/WiOl_rA-RW8/aJ5BdzXUzy4J. I recorded my detailed instructions here http://ferryzhou.wordpress.com/2012/04/24/beaglebone-audio-kworker-noise-solution/ |
I am using 3.2.17-psp12 and experience choppy sound as well as heavy cpu load caused by kworker. See: http://groups.google.com/forum/?fromgroups#!searchin/beagleboard/Re:$20[beagleboard]$20Beaglebone$2BUSB$20speakers:$20choppy$20sound.$20Kernel$20update$20helps?/beagleboard/lpjT9PWfh0E/AWZvyFQbK84J Did the PIO_ONLY option make it into the current build? |
Nope, PIO_ONLY mode is not currently on by default.. Your free to use the build script and rebuild the kernel with PIO_ONLY on... I have current use case where DMA/MUSB is needed and currently works, so i can't disable it.. Regards, |
Robert, Do you have any updates or a roadmap on USB DMA issue for AM335x? We are users of BeagleBone (Rev. A5 mostly) and we are also facing problems when we use more than 3 3G USB modems connected to D-Link USB hub. Symptoms that we are facing is unability to establish a PDP context, ~50% packet loss, "busy" messages in dmesg from musb driver and similar. I've also noticed that similar USB related issues are marked as known in the latest release notes (AM335x-PSP 04.06.00.08) by TI, so I'm wondering if some solution is about to come in the meantime and where the is the root cause of the problem (USBSS, CPPI, MUSB). I've also tried to use CONFIG_MUSB_PIO_ONLY=Y and CONFIG_PREEMPT=Y and it does solve the problem for only some time after reboot. Thanks, |
Sorry, i don't work for TI, so i don't know their internal roadmap on this device... But have you tried the "am33x-v3.6" branch to see, if this has been fixed in v3.6 (note no support for most capes yet).. Note your uEnv.txt is going to change as it's this device has been converted from board file based boot to device tree based boot in mainline. I've documented the bootloader needed and the uEnv.txt changes here: Regards, |
We tried am33x-v3.6, but we got a lot of errors from the USB subsystem, so we were not able to test our modems. Yesterday I've also tried linux-am33x.git (v3.2-staging) from arago-project.org, but I was able to see the same symptoms. The reason I've pointed to TI is actually the same Arago project and their kernel tree that you are incorporating most of the patches from, right? Džiugas |
It really depends if the Arago project creates a useful v3.6 based branch... If they do, we will look into it... |
I see. Do you know if there is a workaround to solve the issues with multiple USB devices and BeagleBone? |
Today I've tried to compile and run a kernel from m33x-v3.6 branch (3.6.1-bone0). Let me share the summary (verified only couple of times, therefore it might be not consistent among different runs):
Otherwise, if you are lucky and USB devices work, they seem to work quite stable. That is, at least during short testing time I've not observed disconnections and number of devices does not seem to affect the overall stability. However, if I had 4 USB modems connected and then plugged in ethernet-over-usb dongle, I got SIOCSIFFLAGS: No space left on device while trying to make ethX interface up (as per http://e2e.ti.com/support/embedded/linux/f/354/t/41957.aspx). But having plugged it in first place followed by plugging the modems, no similar error occurred. What is also noticeable, I managed only to reach 4.6 MByte/s throughput on 100 Mbps network with my dongle no matter if it was connected directly to the board's USB port or through the hub. Džiugas |
Any news regarding musb issues? |
iMic is used for beaglebone audio
I installed ubuntu 11.10 r5 on the beaglebone, further installed alsa-utils and run alsamixer to adjust the volume.
line in and line out is connected to iMic.
Here is the problem: if I run the command
arecord | aplay
I can hear the noise (sometimes when system is a little bit busy, say if another ssh remote connected to beaglebone and run top command, anytime the statistics is updated, a noise is shown up).
This problem doesn't happen on beagleboard.
After check with top command. I found the difference is: in beaglebone, if I run aplay a.wav or arecord | alay, a busy kworker is shown up, this kworker consumes more than 90% CPU. In beagleboard, no busy kworker is shown up when aplay is running.
The text was updated successfully, but these errors were encountered: