Problem with Ardour and RayDAT

I have problems with configuration RME RayDAT with ardour.

My aplay -L:

$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default:CARD=Default
RME RayDAT_3255a2, RME RayDAT
Default Audio Device
sysdefault:CARD=Default
RME RayDAT_3255a2, RME RayDAT
Default Audio Device
dmix:CARD=Default,DEV=0
RME RayDAT_3255a2, RME RayDAT
Direct sample mixing device
dsnoop:CARD=Default,DEV=0
RME RayDAT_3255a2, RME RayDAT
Direct sample snooping device
hw:CARD=Default,DEV=0
RME RayDAT_3255a2, RME RayDAT
Direct hardware device without any conversions
plughw:CARD=Default,DEV=0
RME RayDAT_3255a2, RME RayDAT
Hardware device with all software conversions

When I starter ardour3 in ubuntu 12.04 appear this error:
jack server is not running or cannot be started.
When I do qjackctl appear:

ERROR: control open “/dev/dsp” (No such file or directory)
Thu Jun 20 11:57:58 2013: ERROR: control open “/dev/dsp” (No such file or directory)
Thu Jun 20 11:57:58 2013: creating alsa driver … /dev/dsp|/dev/dsp|1024|2|48000|1|1|nomon|swmeter|-|32bit
Thu Jun 20 11:57:58 2013: ERROR: control open “/dev/dsp” (No such file or directory)
Thu Jun 20 11:57:58 2013: Using ALSA driver running on card 0 -
Thu Jun 20 11:57:58 2013: ERROR: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Thu Jun 20 11:57:58 2013: ERROR: Cannot initialize driver
Thu Jun 20 11:57:58 2013: ERROR: JackServer::Open failed with -1
Thu Jun 20 11:57:58 2013: ERROR: Failed to open server
Thu Jun 20 11:57:59 2013: Saving settings to “/home/dirha/.config/jack/conf.xml” …
11:58:00.892 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 = Ficheiro ou directoria inexistente
Cannot connect to server request channel
jack server is not running or cannot be started.

Thanks,
jmiguel

@jmiguel: why on earth are you telling JACK to use "/dev/dsp". If you are using qjackctl, it should use "default" by default, and you should/could substitute hw:SOMENAME for that as outlined in the JACK FAQ here: http://jackaudio.org/device_naming and in the picture marked "Telling JACK which device to use" on this page: http://jackaudio.org/pulseaudio_and_jack (not that your issue has anything to do with PulseAudio - I'm just using that picture). QJackctl should also have the RayDAT in the pulldown/popdown device selector just to the right edge of the red circle.

"/dev/dsp" comes from the world the OSS audio API and has been deprecated on Linux for over a decade.

@paul:
I´m sorry, it was /dev/dsp because I was doing a test to verify if it worked.

My output of cat /proc/asound/cards:

cat /proc/asound/cards
0 [Default ]: HDSPM - RME RayDAT_3255a2
RME RayDAT S/N 0x3255a2 at 0xc3100000, irq 16

The hypotheses configuration on the image are:
hw:0
hw:0,0
(default)
plughw:0
/dev/audio
/dev/dsp
https://www.dropbox.com/s/gmqxjcgaoetrual/display_0.jpg

Changing the input device or output device to hw: 0 or default always gives the same error:

Thu Jun 20 17:20:38 2013: JACK server starting in realtime mode with priority 10
Thu Jun 20 17:20:38 2013: ERROR: Cannot lock down 107335194 byte memory area (Cannot allocate memory)
Thu Jun 20 17:20:38 2013: ERROR: cannot register object path “/org/freedesktop/ReserveDevice1/Audio0”: A handler is already registered for /org/freedesktop/ReserveDevice1/Audio0
Thu Jun 20 17:20:38 2013: ERROR: Failed to acquire device name : Audio0 error : A handler is already registered for /org/freedesktop/ReserveDevice1/Audio0
Thu Jun 20 17:20:38 2013: ERROR: Audio device hw:0 cannot be acquired…
Thu Jun 20 17:20:38 2013: ERROR: Cannot initialize driver
Thu Jun 20 17:20:38 2013: ERROR: JackServer::Open failed with -1
Thu Jun 20 17:20:38 2013: ERROR: Failed to open server
Thu Jun 20 17:20:39 2013: Saving settings to “/home/user/.config/jack/conf.xml” …
17:20:40.755 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 = Ficheiro ou directoria inexistente
Cannot connect to server request channel
jack server is not running or cannot be started

Thanks,
jmiguel

You’ve got problems with PulseAudio and JACK interacting. See the JACK FAQ and then, if necessary, your distribution’s PulseAudio maintainers.

Now I disable the PulseAudio.

If I execute “sudo jackd -R -d alsa” I get this output:

jackdmp 1.9.9.5
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2012 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
Home directory /home/user_name not ours.
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
audio_reservation_init
Acquire audio card Audio0
creating alsa driver … hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
Using ALSA driver HDSPM running on card 0 - RME RayDAT S/N 0x3255a2 at 0xc3100000, irq 16
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 16 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 16 periods for playback

And I can execute well sudo ardour3
But I can’t get output audio with board RayDAT connected with OctoPre MKII Dynamic.
How I configure the channel of output?

Note: If use the qjackctl I get an error, so I gave up using.

Thanks,
jmiguel