<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Fernando Lopez-Lezcano a &eacute;crit&nbsp;:
<blockquote cite="mid:1201026030.3375.2.camel@cmn3.stanford.edu"
 type="cite">
  <pre wrap="">On Tue, 2008-01-22 at 13:29 +0100, <a class="moz-txt-link-abbreviated" href="mailto:hitmuri@no-log.org">hitmuri@no-log.org</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Thanks for answering (maybe i could have asked on the linuxmao.org forum
too ;) ) .

I tried to change the rtirq script but it doesn't seem to make any
difference. But while looking at the rt priorities, i noticed that the
highest priority for usb was given to the irq 16 and cat /proc/interrupts
tells me that on irq 16 there's uhci_hcd:usb3 and NVIDIA !!!
When i plug my usb soundcard , it's always on irq 20.
So it looks like the highest priority is given to the graphics card .
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Because it shares the interrupt with the usb controller which may have
an audio card attached...

What do you see in "cat /proc/interrupts" for other interrupts? Do you
perhaps have another usb controller that does not share an interrupt
with the graphics controller?

  </pre>
</blockquote>
cat /proc/interrupts gives me this : <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CPU0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CPU1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp; 0:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 89731&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 89923&nbsp;&nbsp; IO-APIC-edge&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; timer<br>
&nbsp; 1:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 151&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 113&nbsp;&nbsp; IO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bsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 <br>
LOC:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 92078&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 94169 <br>
ERR:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>
MIS:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>
<br>
<br>
Actually the usb controller on which my soundcard is (IRQ 20) isn"t
shared with the graphics controller.<br>
So i tried to set the priorities of the other irq so that the usb
controller with my soundcard gets the highest priority<br>
<br>
I get this with /etc/init.d/rtirq status : <br>
&nbsp;1047 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 95&nbsp;&nbsp; - 135&nbsp; 0.0 S&lt;&nbsp;&nbsp; IRQ-8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rtc0<br>
&nbsp; 417 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 88&nbsp;&nbsp; - 128&nbsp; 0.6 S&lt;&nbsp;&nbsp; IRQ-20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ehci_hcd:usb2,
uhci_hcd:usb5<br>
&nbsp; 425 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 87&nbsp;&nbsp; - 127&nbsp; 0.0 S&lt;&nbsp;&nbsp; IRQ-21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uhci_hcd:usb4,
ohci1394<br>
&nbsp; 426 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 86&nbsp;&nbsp; - 126&nbsp; 0.0 S&lt;&nbsp;&nbsp; IRQ-22&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uhci_hcd:usb6<br>
&nbsp;&nbsp;&nbsp; 5 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-high/0<br>
&nbsp;&nbsp;&nbsp; 6 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.1 S&lt;&nbsp;&nbsp; softirq-timer/0<br>
&nbsp;&nbsp;&nbsp; 7 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-net-tx/<br>
&nbsp;&nbsp;&nbsp; 8 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-net-rx/<br>
&nbsp;&nbsp;&nbsp; 9 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-block/0<br>
&nbsp;&nbsp; 10 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.3 S&lt;&nbsp;&nbsp; softirq-tasklet<br>
&nbsp;&nbsp; 11 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-sched/0<br>
&nbsp;&nbsp; 12 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-hrtimer<br>
&nbsp;&nbsp; 13 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-rcu/0<br>
&nbsp;&nbsp; 18 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-high/1<br>
&nbsp;&nbsp; 19 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-timer/1<br>
&nbsp;&nbsp; 20 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-net-tx/<br>
&nbsp;&nbsp; 21 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-net-rx/<br>
&nbsp;&nbsp; 22 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-block/1<br>
&nbsp;&nbsp; 23 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-tasklet<br>
&nbsp;&nbsp; 24 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-sched/1<br>
&nbsp;&nbsp; 25 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-hrtimer<br>
&nbsp;&nbsp; 26 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; softirq-rcu/1<br>
&nbsp;&nbsp; 78 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50&nbsp;&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50&nbsp;&nbsp; -&nbsp; 90&nbsp; 0.0 S&lt;&nbsp;&nbsp; IRQ-23&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sdhci:slot0<br>
&nbsp; 416 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 35&nbsp;&nbsp; -&nbsp; 75&nbsp; 0.1 S&lt;&nbsp;&nbsp; IRQ-19&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ehci_hcd:usb1,
uhci_hcd:usb7<br>
&nbsp; 424 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 35&nbsp;&nbsp; -&nbsp; 75&nbsp; 0.3 S&lt;&nbsp;&nbsp; IRQ-16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uhci_hcd:usb3, nvidia<br>
<br>
But it doesn't make any changes, still xruns.<br>
<br>
Don't know what to do now, but at least i think i've understood new
things on that sound latency and irq priorities stuff ;) . <br>
<br>
<br>
Flo<br>
<br>
<br>
<br>
<br>
<blockquote cite="mid:1201026030.3375.2.camel@cmn3.stanford.edu"
 type="cite">
  <pre wrap=""></pre>
  <blockquote type="cite">
    <pre wrap="">Is this the problem to solve ?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
It may be, hard to know for shure. 

-- Fernando


  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">2008/1/22, <a class="moz-txt-link-abbreviated" href="mailto:hitmuri@no-log.org">hitmuri@no-log.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:hitmuri@no-log.org">&lt;hitmuri@no-log.org&gt;</a>:
      </pre>
      <blockquote type="cite">
        <pre wrap="">Hi everyone,

i have posted this on the planet ccrma list before, but i don't think
it's
a distribution problem. I get xruns when using a m-audio fast track pro
usb soundcard  at 44100Hz, frames/period=64 (same with 128, i need low
latency) ,periods/buffer=2 with my new laptop when i have for example
freewheeling, tapeutape and jack-rack running (xruns seem to appear when
the dsp load rises, i've got none when using tapeutape alone for
example).
Some of them were related to the latest ccrma kernel, and they
disappeared
with a previous one. For the other ones, i have 4 ideas :

1) latency timer :
doing lspci, all the latencies show 0 , even when i set them to antoher
value with setpci. But with dmesg, i can see that at startup they are
set
to 64.
Fernando Lopez-Lezcano told me that on some hardware latency timer
couldn't be changed and that 64 could be enough actually.
(forgot to say that the usb irq isn't shared)

So it looks like i can't do anything for that.

2) rtc :
At startup i have a message from udev : Node Symlink... node /dev/rtc
already exists , link to /dev/rtc0 will not overwrite it.
        </pre>
      </blockquote>
      <pre wrap="">

I got this message too, but I don't know if there is any impact on the
sound
system.

3) soundcard power
      </pre>
      <blockquote type="cite">
        <pre wrap="">The fast track pro can be powered by usb or by an external power supply.
Mine is usb powered for now. Is this a problem ?

4) rtirq
I noticed that in the rtirq script , i have these lines:
RTIRQ_NAME_LIST="rtc snd usb i8042"
RTIRQ_NON_THREADED="rtc snd"
Do they need to be changed when using a usb soundcard ?
        </pre>
      </blockquote>
      <pre wrap="">
If your sound card works with USB, you can write this :

RTIRQ_NAME_LIST="rtc usb i8042"
RTIRQ_NON_THREADED="rtc usb"


Then you restart the script  and echo his status

$ sudo /etc/init.d/rtirq restart
$ /etc/init.d/rtirq status

You will see the priority on each IRQ. Then you have to connect your sound
card on the USB port wich has the best priority.


If anyone has an idea on that...
      </pre>
      <blockquote type="cite">
        <pre wrap="">Sorry it was quite long !!

Thanks

Flo
        </pre>
      </blockquote>
      <pre wrap="">
Hope this help you,
cheers,

Mysth-R


--
*
***************************************************************************************
*  {^_^} Mysth-R {^_^}
*
* <a class="moz-txt-link-freetext" href="http://myspace.com/mysthr">http://myspace.com/mysthr</a>
* <a class="moz-txt-link-freetext" href="http://myspace.com/aideauditive">http://myspace.com/aideauditive</a>
* <a class="moz-txt-link-freetext" href="http://mysthr.free.fr">http://mysthr.free.fr</a>  =&gt; Site d&eacute;di&eacute; &agrave; l'audio sous Fedora/PlanetCCRMA.
*
***************************************************************************************

      </pre>
    </blockquote>
    <pre wrap="">_______________________________________________
Linux-audio-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linux-audio-user@lists.linuxaudio.org">Linux-audio-user@lists.linuxaudio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user">http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
<br>
</body>
</html>