Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm running Ubuntu 12.04 and have a native instruments audio 2 dj sound card.

When I listen to music or watch a video, sound disappears(video stops then too) and I have to plug out and plug in the soundcard to have sound again.

The message I managed to find is snd-usb-caiaq log: Unable to find an output urb to use

share|improve this question
    
After you plug in your device again how long does it take before the audio stops once more? –  John S Gruber Jul 4 '12 at 3:34
add comment

1 Answer

Looking at the source for the latest kernel sound/usb/caiaq/audio.c, in the read_completed function, we can see the message being emitted by the caiaq usb kernel module. At the top of the module we can see that 32 urb buffers are defined.

This message is sent if all of these buffers are marked in-use. I think it makes sense that replugging the device would recreate these buffers.

This suggests a memory leak type of bug in this code or in related code within this Linux driver module.

Two suggestions:

  • Report this as a bug against the Linux kernel. Please see How do I report a bug?.

  • Try this with an updated mainline kernel. See this for updated instructions. You'll want the latest Linus' tree. I'll mention that proprietary drivers can complicate this process. Report the results of using the update mainline kernel in the above bug report.

A URB is a USB request block, and it's an analog to an IP packet. A buffer holds these packets for sending and receiving. Some quite technical information is here. Frames of sound samples are the typical payload for these request blocks.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.