Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have kind of low hopes of getting this fixed judging by lack of results from Googling, but I figured I would try here.
I have an M-Audio Transit soundcard. It is an external, USB card. I essentially use it as a 44.1khz transport to an outboard DAC, but I digress. My point is that the firmware must be loaded before the card works. I have this working via madfuload. I'm using the most recent version (1.2) and kernel 2.6.20-rc4.
My issue comes about during high CPU usage, but not always. I think this may have to do with using a duel core CPU (that is, both cores must be used fully in order to cause the crackling). But not always. For instance, right now, Amarok is updating my 16,000 song DB (from an external NTFS based USB 2.0 SATA drive in an enclosure) and I hear no static. However, resizing a transparent gnome-terminal causes static city.
Using USB for sound is stupid. USB is not designed to handle large amounts of data with little latency. I suggest using PCI sound cards or invest in IEEE-1394 (aka Firewire or i.Link) based sound cards. The crackling is actually caused by the video card and other devices taking control of the bus. This issue has always been a problem since day one of the introduce of sound cards and VGA graphics cards. Right now, I recommend upgrading both ALSA and graphics software to minimize the problem.
Probably it is best to create a bug report at ALSA site stating this issue, so they can find work-arounds.
Until a fix is found, play around with async_unlink and nrpacks for the snd-usb-audio module.
Using USB for sound is stupid. USB is not designed to handle large amounts of data with little latency. I suggest using PCI sound cards or invest in IEEE-1394 (aka Firewire or i.Link) based sound cards. The crackling is actually caused by the video card and other devices taking control of the bus. This issue has always been a problem since day one of the introduce of sound cards and VGA graphics cards. Right now, I recommend upgrading both ALSA and graphics software to minimize the problem.
Probably it is best to create a bug report at ALSA site stating this issue, so they can find work-arounds.
Until a fix is found, play around with async_unlink and nrpacks for the snd-usb-audio module.
While what you say makes sense, you will notice that I'm on a laptop. PCI cards are out of the question. I also have a relatively new laptop which narrows the field because I only have an expresscard slot. So that limits me to firewire if another card is the only solution. Have you seen the prices? $250 would be my minimum cost, which is simply unacceptable.
This issue just doesn't make sense. Vista/Windows XP work fine on a graphical load. What you said makes sense, but if that is true, then should the other OS's have the same problem? Are you sure it is just because the card is USB?
OK, so I've eliminated the problem by disabling the nVidia driver. This is a pretty crappy fix because my CPU usage skyrockets just switching desktops. I would love another work around if at all possible.
It's not necessary to call people names. In addition, your wrong.
First, External amplification is a very good way to process sound without the distortions caused the electronics of a desktop computer.
Second, USB is not slow. USB 2.0 has 320-480 MEGAbits per second of throughput.
Everything that Linux fails to properly support does not default to being junk.
USB is slow compared to IEEE-1394. USB effective speed is a lot slower than 480 Mb. The reason why it is slower, is how USB is designed. USB is mainly controlled by software that makes its speed slower than USB is advertised. Firewire effective speed is a lot closer to what it is advertised. Firewire was designed at the start to handle large amounts of data with little latency, so using it for sound cards will be a lot better than USB.
Sure having audio amplification outside the computer is good, but the box have to use a linear power supply and be separated by the computer by optical connections. Most external sound cards get their power from the computer, so it still has the same problems as internal sound cards.
I did not call anybody names. Re-read the post again. It is not good to use USB for sound.
It is stupid to take pictures with a flash camera! ... Not that I'm calling you stupid, of course.
Please keep posts on-topic. Editorializing by describing something as "stupid" will probably only lead to arguments. I think we all recognize the points that are being made, and Yes, it's understood that calling an action or a decision "stupid" is not equivalent to calling a person "stupid", but a lot of people might not make that distinction, and arguing semantics is not a good use of time.
Either way let's keep this thread focused on the question at hand. Thanks for your cooperation and understanding.
stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s -d 2
- I hear a skip.
See "man stress" after installing it. The first one was the example in the man page, the second I added disk stress. I have only one harddisk, but no problem
Another advice is not to use the desktop kernel version of e.g. Ubuntu for good sound. Server versions often work better. You can always add your programs later (kde/gnome), but you will have a less responsive desktop instead.
In my experiences, it is not the sound driver that fails when the system is stressed, it is the USB driver that fails.
While it is true the USB sound can get distorted, slow down, and ALSA can freeze when then the system has high graphics, I have also seen the USB keyboard and/or mouse halt, in the same conditions.
I suspect a remedy is stopping and starting the USB module.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.