Re: Fedora 12 & CCRMA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK, so after swapping out my soundcard for an old soundblaster Live!, I can run jack and Ardour with the alsa driver. But that's not the way to do real work. My testing was interrupted by real life, and the need to purchase a 6pin - 6pin firewire cable, so that I could plug my saffire interface into the desktop.
  Finally getting back to it today, and of course, it doesn't 'just work'.
Jack aborts soon after starting, with a 'unable to create port' message.

[rtg@angel ~]$ dmesg | grep 1394
ohci1394 0000:00:0c.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[16] MMIO=[cffef000-cffef7ff] Max Packet=[2048] IR/IT contexts=[4/8]
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[005042b514305c8f]
ieee1394: Node added: ID:BUS[0-01:1023]  GUID[00130e0100031242]
ieee1394: raw1394: /dev/raw1394 device initialized

Here's an excerpt from lshw:
 *-firewire
             description: FireWire (IEEE 1394)
             product: TSB12LV26 IEEE-1394 Controller (Link)
             vendor: Texas Instruments
             physical id: c
             bus info: pci@0000:00:0c.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: ohci bus_master cap_list
configuration: driver=ohci1394 latency=64 maxlatency=4 mingnt=3 resources: irq:16 memory:cffef000-cffef7ff memory:cffe4000-cffe7fff

Here's the contents of the qjackctl messages window:


jackdmp 1.9.4
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2009 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 60
libffado 2.0.0 built Jan 21 2010 16:27:49
firewire ERR: FFADO: Error creating virtual device
Cannot attach audio driver
JackServer::Open() failed with -1
no message buffer overruns
Failed to start server
17:17:04.825 JACK was stopped with exit status=255.
17:17:04.828 Post-shutdown script...
17:17:04.832 killall jackd
jackd: no process killed
17:17:05.342 Post-shutdown script terminated with exit status=256.
17:17:06.197 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started


When I saw the ffado message 'cannot attach audio driver', I thought it might be a faulty firewire card, so I swapped it for another one, also based on the TI TSB12LV26. I got the same error.

I find it quite annoying that qjackctl then goes into an 18 second retry loop, popping up the same error box which prevents me from scrolling thru the messages window and reading the messages until I acknowledge it, then it gives me only 18 seconds to browse until it annoys me again. If I wanted it to try again, I would have pushed the 'start' button again! Grrr.


Hmmm, ffado-diag seems to tell me I have permission problems:

[rtg@angel ~]$ ffado-diag


FFADO diagnostic utility 0.1
============================
(C) 2008 Pieter Palmers
/snip/
IOError: [Errno 13] Permission denied: '/dev/raw1394'

[root@angel ~]# ls -al /dev/raw1394
crw-rw----. 1 root root 171, 0 2010-05-19 16:55 /dev/raw1394

Should I add myself to the 'root' group, or should I change the group ownership of that device to something else?

Anyway, here's ffado-diag run as root:

[root@angel ~]# ffado-diag


FFADO diagnostic utility 0.1
============================
(C) 2008 Pieter Palmers


=== CHECK ===
 Base system...
  kernel version............ 2.6.31.12-1.rt20.1.fc12.ccrma.i686.rtPAE
FIXME: implement test for RT kernel
   RT patched............... False
  old 1394 stack present.... False
  old 1394 stack loaded..... False
  old 1394 stack active..... True
  new 1394 stack present.... False
  new 1394 stack loaded..... False
  new 1394 stack active..... False
  /dev/raw1394 node present. True
  /dev/raw1394 permissions.. True
 Prerequisites (dynamic at run-time)...
   gcc................ sh: gcc: command not found
   g++................ sh: g++: command not found
   PyQt............... sh: pyuic: command not found
   jackd.............. no message buffer overruns
     path............. /usr/bin/jackd
flags............ Package jack was not found in the pkg-config search path.
Perhaps you should add the directory containing `jack.pc'
to the PKG_CONFIG_PATH environment variable
No package 'jack' found
libraw1394......... Package libraw1394 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libraw1394.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libraw1394' found
flags............ Package libraw1394 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libraw1394.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libraw1394' found
libavc1394......... Package libavc1394 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavc1394.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavc1394' found
flags............ Package libavc1394 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavc1394.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavc1394' found
libiec61883........ Package libiec61883 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libiec61883.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libiec61883' found
flags............ Package libiec61883 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libiec61883.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libiec61883' found
libxml++-2.6....... Package libxml++-2.6 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml++-2.6.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml++-2.6' found
flags............ Package libxml++-2.6 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml++-2.6.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml++-2.6' found
dbus-1............. Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
flags............ Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
 Prerequisites (static at compile-time)...
   gcc................ gcc (GCC) 4.4.2 20091222 (Red Hat 4.4.2-20)
   g++................ g++ (GCC) 4.4.2 20091222 (Red Hat 4.4.2-20)
   PyQt............... sh: pyuic: command not found
jackd.............. could not open driver .so '/usr/lib/jack/jack_firewire.so': libffado.so: cannot open shared object file: No such file or directory
     path............. /usr/bin/jackd
flags............ Package jack was not found in the pkg-config search path.
   libraw1394......... 2.0.4
     flags............  -lraw1394
   libavc1394......... 0.5.3
     flags............  -lavc1394 -lrom1394 -lraw1394
   libiec61883........ 1.2.0
     flags............  -liec61883 -lraw1394
   libxml++-2.6....... 2.26.0
flags............ -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lxml++-2.6 -lxml2 -lglibmm-2.4 -lgobject-2.0 -lsigc-2.0 -lglib-2.0
   dbus-1............. 1.2.16
flags............ -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -L/lib -ldbus-1 -lpthread -lrt
 Hardware...
   Host controllers:
00:0c.0 FireWire (IEEE 1394) [0c00]: Texas Instruments TSB12LV26 IEEE-1394 Controller (Link) [104c:8020] (prog-if 10 [OHCI])
	Subsystem: Texas Instruments Device [104c:8010]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (750ns min, 1000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 16
	Region 0: Memory at cffef000 (32-bit, non-prefetchable) [size=2K]
	Region 1: Memory at cffe4000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 1
Flags: PMEClk- DSI- D1- D2+ AuxCurrent=0mA PME(D0-,D1-,D2+,D3hot+,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: ohci1394
	Kernel modules: ohci1394

   CPU info:
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 10
model name	: mobile AMD Athlon(tm) MP-M 2100+
stepping	: 0
cpu MHz		: 1600.098
cache size	: 512 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow up
bogomips	: 3200.19
clflush size	: 32
power management: ts fid vid

 Configuration...
  IRQ information
Hardware Interrupts:
--------------------
IRQ 0: PID: None, count: [146], Sched None (priority None), drivers: ['timer'] IRQ 1: PID: None, count: [4518], Sched None (priority None), drivers: ['i8042'] IRQ 3: PID: None, count: [2], Sched None (priority None), drivers: [''] IRQ 4: PID: None, count: [2], Sched None (priority None), drivers: [''] IRQ 7: PID: None, count: [0], Sched None (priority None), drivers: ['parport0'] IRQ 8: PID: None, count: [0], Sched None (priority None), drivers: ['rtc0'] IRQ 9: PID: None, count: [0], Sched None (priority None), drivers: ['acpi'] IRQ 12: PID: None, count: [32988], Sched None (priority None), drivers: ['i8042'] IRQ 14: PID: None, count: [11193], Sched None (priority None), drivers: ['pata_sis'] IRQ 15: PID: None, count: [45612], Sched None (priority None), drivers: ['pata_sis'] IRQ 16: PID: None, count: [3928], Sched None (priority None), drivers: ['radeon', 'ohci1394'] IRQ 17: PID: None, count: [33981], Sched None (priority None), drivers: ['sata_sil'] IRQ 18: PID: None, count: [111], Sched None (priority None), drivers: ['EMU10K1'] IRQ 19: PID: None, count: [8033], Sched None (priority None), drivers: ['eth0'] IRQ 20: PID: None, count: [0], Sched None (priority None), drivers: ['ohci_hcd:usb2'] IRQ 21: PID: None, count: [0], Sched None (priority None), drivers: ['ohci_hcd:usb3'] IRQ 23: PID: None, count: [199414], Sched None (priority None), drivers: ['ehci_hcd:usb1']

Software Interrupts:
--------------------


=== REPORT ===
FireWire kernel drivers:
[PASS] Kernel drivers statically linked into the kernel.
[PASS] /dev/raw1394 node present and accessible.

...I tried `chgrp audio /dev/raw1394`, because I had earlier added myself to the 'audio' group at the suggestion of jackd 0.118.

Lo and Behold! I can run ffado-diag as my own user. qjackctl will start jack. Ardour will open my 'test' session, and play the one track there, and after about ten minutes of playing around, not a single xrun!

--
Rick Green

"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
                                  -Benjamin Franklin

"As for our common defense, we reject as false the choice between our
safety and our ideals."
                               -President Barack Obama 20 Jan 2009
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux