<div dir="ltr"><br><br><div class="gmail_quote">2008/9/25 Pieter Palmers <span dir="ltr"><<a href="mailto:pieterp@joow.be">pieterp@joow.be</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mysth-R wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
2008/9/24 Pieter Palmers <<a href="mailto:pieterp@joow.be" target="_blank">pieterp@joow.be</a> <mailto:<a href="mailto:pieterp@joow.be" target="_blank">pieterp@joow.be</a>>><div class="Ih2E3d"><br>
<br>
Mysth-R wrote:<br>
<br>
<br>
<br>
2008/9/23 Pieter Palmers <<a href="mailto:pieterp@joow.be" target="_blank">pieterp@joow.be</a><br></div>
<mailto:<a href="mailto:pieterp@joow.be" target="_blank">pieterp@joow.be</a>> <mailto:<a href="mailto:pieterp@joow.be" target="_blank">pieterp@joow.be</a><div><div></div><div class="Wj3C7c"><br>
<mailto:<a href="mailto:pieterp@joow.be" target="_blank">pieterp@joow.be</a>>>><br>
<br>
<br>
Mysth-R wrote:<br>
<br>
Hi,<br>
<br>
I've got a strange behaviour with my midi controller and/or<br>
freebob/ffado.<br>
I made a pure data patch, with a midi learn function. So<br>
I can<br>
control everything with my midi controller.<br>
When I use jack with Freebob or ffado (I tested both) and a<br>
Presonus Firebox, I got cracking sounds every time I move<br>
faders, pots from my Midi Controler.<br>
When I use jack with alsa and a poor usb berhinger UCA202 it<br>
works perfectly : no cracking sounds<br>
<br>
<br>
Is your midi controller attached to the Presonus box or is it<br>
a USB<br>
midi controller?<br>
<br>
<br>
I tried with USB and directly attached to the Presonus. My<br>
controller is a Korg microKontrol, but I tried with another<br>
controller too (an EMU I think)<br>
I also tried with Jackd and Jackdmp , cause I am on Gentoo 64bits.<br>
<br>
<br>
Strange...<br>
<br>
<br>
<br>
What settings do you use for jackd?<br>
<br>
<br>
My settings are :<br>
<br>
/usr/bin/jackd -R -dfirewire -r48000 -p256 -n3<br>
<br>
does it happen with higher buffer sizes too?<br>
<br>
try increasing the priority of jackd to 65:<br>
/usr/bin/jackd -R -P65 -dfirewire -r48000 -p256 -n3<br>
<br>
I suspect that it has something to do with the kernel layer since<br>
it's present in both freebob and ffado.<br>
<br>
<br>
Ok I have made some tests<br>
<br>
First test :<br>
priority : 65<br>
frame/period : 4096<br>
Test OK !! :)<br>
<br>
Second test :<br>
Priority : 65<br>
Frame/period : 512<br>
It cracks !<br>
<br>
Last test :<br>
Priority : 65<br>
Frame / period : 1024<br>
Test OK !!<br>
A friend of mine just tell me that my pd patch works find with his config, and freebob : no cracks !<br>
What, in your mind, could be the problem ? software ? hardware ?<br>
</div></div></blockquote>
<br>
You seem to be running a Ricoh 1394 chipset, that can be a problem. I think you're experiencing a hardware issue.<br>
</blockquote><div><br>Yes I got a ricoh but I had too much issues with it. Now I use an ExpressCard with firewire extension, and it has a Texas Instrument chip (see the two last line of the lspci result).<br>Perhpas due to a rate transfer of the Express Card ....<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Also, for me the pd patch crackles without doing anything, but then again I don't know how to use pd properly.<br>
</blockquote><div><br>You can try to run pd with :<br><br>$ pd -rt -jack -alsamidi<br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Greets,<br>
<br>
Pieter<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
on my gentoo I have compiled my own kernel (2.6.25.4-rt5). But on the open suse I took the one from Jacklab (<a href="http://2.6.22.13" target="_blank">2.6.22.13</a> <<a href="http://2.6.22.13" target="_blank">http://2.6.22.13</a>>)<div>
<div></div><div class="Wj3C7c"><br>
<br>
<br>
#################################################<br>
Some more infos :<br>
1- lspci<br>
2- cat /proc/interrupts<br>
3- rtirq<br>
4- limit.conf<br>
<br>
<br>
###############################################"<br>
1- lspci :<br>
<br>
mysthr2@localhost ~ $ sudo lspci<br>
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)<br>
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03)<br>
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)<br>
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)<br>
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)<br>
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)<br>
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)<br>
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)<br>
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)<br>
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)<br>
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)<br>
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)<br>
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)<br>
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 01)<br>
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)<br>
01:00.0 VGA compatible controller: nVidia Corporation GeForce Go 7900 GS (rev a1)<br>
03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)<br>
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller<br>
03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)<br>
03:01.2 System peripheral: Ricoh Co Ltd Device 0843 (rev 01)<br>
03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)<br>
03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)<br>
0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)<br>
0d:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03)<br>
0e:00.0 FireWire (IEEE 1394): Texas Instruments XIO2200(A) IEEE-1394a-2000 Controller (PHY/Link) (rev 01)<br>
mysthr2@localhost ~ $<br>
<br>
<br>
#########################################################<br>
2- cat /proc/interrupts<br>
<br>
CPU0 CPU1 0: 1558526 0 IO-APIC-edge timer<br>
1: 1313 0 IO-APIC-edge i8042<br>
8: 1 0 IO-APIC-edge rtc<br>
9: 2 0 IO-APIC-fasteoi acpi<br>
12: 123 0 IO-APIC-edge i8042<br>
14: 11715 0 IO-APIC-edge ata_piix<br>
15: 97 0 IO-APIC-edge ata_piix<br>
16: 48553 0 IO-APIC-fasteoi nvidia<br>
17: 1495 0 IO-APIC-fasteoi eth0<br>
19: 83 0 IO-APIC-fasteoi ohci1394, ohci1394<br>
20: 6296 0 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb2<br>
21: 106 0 IO-APIC-fasteoi uhci_hcd:usb3, HDA Intel<br>
22: 92 0 IO-APIC-fasteoi uhci_hcd:usb4<br>
23: 0 0 IO-APIC-fasteoi uhci_hcd:usb5<br>
NMI: 0 0 Non-maskable interrupts<br>
LOC: 39497 1450011 Local timer interrupts<br>
RES: 35829 46345 Rescheduling interrupts<br>
CAL: 38 43 function call interrupts<br>
TLB: 259 469 TLB shootdowns<br>
TRM: 0 0 Thermal event interrupts<br>
THR: 0 0 Threshold APIC interrupts<br>
SPU: 0 0 Spurious interrupts<br>
ERR: 0<br>
<br>
##################################################<br>
<br>
3- rtirq :<br>
<br>
#!/bin/sh<br>
#<br>
# Copyright (c) 2004-2007 rncbc aka Rui Nuno Capela.<br>
#<br>
# /etc/conf.d/rtirq<br>
#<br>
# Configuration for IRQ thread tunning,<br>
# for realtime-preempt enabled kernels.<br>
#<br>
# This program is free software; you can redistribute it and/or modify it<br>
# under the terms of the GNU General Public License version 2 or later.<br>
#<br>
<br>
# IRQ thread service names<br>
# (space separated list, from higher to lower priority).<br>
RTIRQ_NAME_LIST="rtc ohci1394 i8042"<br>
<br>
# Highest priority.<br>
RTIRQ_PRIO_HIGH=99<br>
<br>
# Priority decrease step.<br>
RTIRQ_PRIO_DECR=10<br>
<br>
# Whether to reset all IRQ threads to SCHED_OTHER.<br>
RTIRQ_RESET_ALL=0<br>
<br>
# On kernel configurations that support it,<br>
# which services should be NOT threaded<br>
# (space separated list).<br>
RTIRQ_NON_THREADED="rtc ohci1394"<br>
<br>
# Process names which will be forced to the<br>
# highest realtime priority range (99-91)<br>
# (space separated list, from highest to lower priority).<br>
# RTIRQ_HIGH_LIST="softirq-timer"<br>
<br>
<br>
#############################################################"<br>
4- limits.conf<br>
<br>
@audio - rtprio 99<br>
@audio - nice -10<br>
@audio - memlock 1774000<br>
<br>
<br>
###########################################################<br>
<br>
That's all !! :)<br>
Cheers,<br>
<br>
Mysth-R<br>
<br>
-- <br>
* ***************************************************************************************<br>
* {^_^} Mysth-R {^_^}<br>
* <= Aide Auditive =><br>
*<br>
* <a href="http://myspace.com/mysthr" target="_blank">http://myspace.com/mysthr</a><br>
* <a href="http://myspace.com/aideauditive" target="_blank">http://myspace.com/aideauditive</a><br>
* <a href="http://mysthr.free.fr/Joomla" target="_blank">http://mysthr.free.fr/Joomla</a> => Site dédié à l'audio sous Fedora/PlanetCCRMA.<br>
* ***************************************************************************************<br>
</div></div></blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>* ***************************************************************************************<br>* {^_^} Mysth-R {^_^}<br>* <= Aide Auditive =><br>*<br>* <a href="http://myspace.com/mysthr">http://myspace.com/mysthr</a><br>
* <a href="http://myspace.com/aideauditive">http://myspace.com/aideauditive</a><br>* <a href="http://mysthr.free.fr/Joomla">http://mysthr.free.fr/Joomla</a> => Site dédié à l'audio sous Fedora/PlanetCCRMA.<br>* ***************************************************************************************<br>
</div>