<!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 écrit :
<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>
CPU0 CPU1 <br>
0: 89731 89923 IO-APIC-edge timer<br>
1: 151 113 IO-APIC-edge i8042<br>
8: 0 0 IO-APIC-edge rtc0<br>
9: 12 11 IO-APIC-fasteoi acpi<br>
12: 42277 41891 IO-APIC-edge i8042<br>
14: 7056 7085 IO-APIC-edge libata<br>
15: 1376 2002 IO-APIC-edge libata<br>
16: 11532 11641 IO-APIC-fasteoi uhci_hcd:usb3, nvidia<br>
18: 0 0 IO-APIC-fasteoi yenta<br>
19: 18782 18903 IO-APIC-fasteoi ehci_hcd:usb1,
uhci_hcd:usb7<br>
20: 8615 8284 IO-APIC-fasteoi ehci_hcd:usb2,
uhci_hcd:usb5<br>
21: 1 2 IO-APIC-fasteoi uhci_hcd:usb4, ohci1394<br>
22: 0 0 IO-APIC-fasteoi uhci_hcd:usb6<br>
23: 0 0 IO-APIC-fasteoi sdhci:slot0<br>
220: 18041 18081 PCI-MSI-edge eth0<br>
NMI: 0 0 <br>
LOC: 92078 94169 <br>
ERR: 0<br>
MIS: 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>
1047 FF 95 - 135 0.0 S< IRQ-8 rtc0<br>
417 FF 88 - 128 0.6 S< IRQ-20 ehci_hcd:usb2,
uhci_hcd:usb5<br>
425 FF 87 - 127 0.0 S< IRQ-21 uhci_hcd:usb4,
ohci1394<br>
426 FF 86 - 126 0.0 S< IRQ-22 uhci_hcd:usb6<br>
5 FF 50 - 90 0.0 S< softirq-high/0<br>
6 FF 50 - 90 0.1 S< softirq-timer/0<br>
7 FF 50 - 90 0.0 S< softirq-net-tx/<br>
8 FF 50 - 90 0.0 S< softirq-net-rx/<br>
9 FF 50 - 90 0.0 S< softirq-block/0<br>
10 FF 50 - 90 0.3 S< softirq-tasklet<br>
11 FF 50 - 90 0.0 S< softirq-sched/0<br>
12 FF 50 - 90 0.0 S< softirq-hrtimer<br>
13 FF 50 - 90 0.0 S< softirq-rcu/0<br>
18 FF 50 - 90 0.0 S< softirq-high/1<br>
19 FF 50 - 90 0.0 S< softirq-timer/1<br>
20 FF 50 - 90 0.0 S< softirq-net-tx/<br>
21 FF 50 - 90 0.0 S< softirq-net-rx/<br>
22 FF 50 - 90 0.0 S< softirq-block/1<br>
23 FF 50 - 90 0.0 S< softirq-tasklet<br>
24 FF 50 - 90 0.0 S< softirq-sched/1<br>
25 FF 50 - 90 0.0 S< softirq-hrtimer<br>
26 FF 50 - 90 0.0 S< softirq-rcu/1<br>
78 FF 50 - 90 0.0 S< IRQ-9 acpi<br>
388 FF 50 - 90 0.0 S< IRQ-18 yenta<br>
394 FF 50 - 90 0.1 S< IRQ-12 i8042<br>
395 FF 50 - 90 0.0 S< IRQ-1 i8042<br>
454 FF 50 - 90 0.1 S< IRQ-14 libata<br>
455 FF 50 - 90 0.0 S< IRQ-15 libata<br>
1032 FF 50 - 90 0.3 S< IRQ-220 PCI-MSI-edge
eth0<br>
1093 FF 50 - 90 0.0 S< IRQ-23 sdhci:slot0<br>
416 FF 35 - 75 0.1 S< IRQ-19 ehci_hcd:usb1,
uhci_hcd:usb7<br>
424 FF 35 - 75 0.3 S< IRQ-16 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"><hitmuri@no-log.org></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> => Site dédié à 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>