On 05/03/2012 12:51 AM, Rui Nuno Capela wrote:
I'm using:
rtirq-20111007-1.fc14.ccrma.i686
seems to be the latest.
> i believe the newer rtirq already addresses the above: the only irq line
----
# IRQ thread service names
# (space separated list, from higher to lower priority).
RTIRQ_NAME_LIST="rtc snd usb i8042"
----
>> Note that in all other cases other than soundcards rtirq looks for the
Ah, yes, right! But see below for why this fails.
When searching for "snd" it finds this:
# grep irq /proc/asound/cards | sed 's/\(.*\) at .* irq \(.*\)/\2 \1/'
44 HDA Intel
16 HDA NVidia
From that information it eventually then calls (output of bash -x):
+ rtirq_exec_num start snd HDA-Intel 75 16
+ ACTION=start
+ NAME1=snd
+ NAME2=HDA-Intel
+ PRI2=75
+ IRQ=16
++ echo :rtc:
++ sed 's/ /:/g'
++ grep :snd:
+ '[' -n '' ']'
++ echo :8:
++ grep :16:
+ '[' -z '' ']'
++ ps -eo pid,comm
++ egrep -i IRQ.16.HDA-Inte
++ awk '{print $1}'
This is where it fails, it tries to match irq number and name and fails.
Why? Because there is no fixed relationship between what is in
/proc/asound/cards and the names of the irq processes themselves. In
this particular case ps gives (with beautiful truncation added):
12665 irq/16-snd_hda_
which has nothing to do with (not case sensitive):
"hda-inte"
which is what rtirq searches for (and this is the best it can do with
the information it has). Then it falls back to "2.6.31 compatibility"
mode which only searches for irq number and then all three irq processes
are elevated in priority.
The failure is because there is (as I pointed out) no fixed greppable
relationship between the textual information found in /proc/asound/cards
and the names of the processes that service the interrupts - I have
looked at the relevant kernel code and the names of the processes are
arbitrary strings. It may work in some cases if the names match, but it
does not in the generic case. It certainly does not work for
snd_hda_intel in my machine. I believe others are seeing the same problem.
I'd love to find a way to reliably map from the information you get from
/proc/asound/cards to the pid of the right irq process...
-- Fernando
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.