problems with M-Audio Audiophile 2496 and Jack

I recently purchased an M-Audio Audiophile 2496 to record my keyboard playing. Before, I used the onboard via chip which did its job. With the onboard card I was able to run jack+ardour and amarok/firefox+“a youtube video” simultaneously without any problems. But no with the maudio I have the problem that Jack always tells me that the device is already in use. See:

jackd 0.116.1
Copyright 2001-2005 Paul Davis and others.
jackd 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 compiled with System V SHM support.
loading driver …
apparent rate = 48000
creating alsa driver … hw:2|hw:2|32|2|48000|0|0|nomon|hwmeter|-|32bit
control device hw:2
the playback device “hw:2” is already in use. Please stop the application using it and run JACK again
cannot load driver module alsa
20:32:41.439 JACK was stopped successfully.
20:32:41.440 Post-shutdown script…
20:32:41.440 killall jackd
jackd: no process killed
20:32:41.851 Post-shutdown script terminated with exit status=256.
20:32:43.422 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.

I haven’t found any other advice than to kill all apps which could use the device, which works but is a weak workaround. Cause I usually fire up ardour, checkout some music on youtube, and let the music inspire me. If something good came out I just click record in ardour and that’s it.

But now I always have to shutdown everything, start jack+ardour, shutdown everything, start firefox… I spent some time searching in various forums, docs, howto’s,… but haven’t came across a solution.

Hope you guys can help me out.

That’s the output:

silentcry@silentcry:~$ ps -e
PID TTY TIME CMD
1 ? 00:00:01 init
2 ? 00:00:00 kthreadd
3 ? 00:00:00 migration/0
4 ? 00:00:00 ksoftirqd/0
5 ? 00:00:00 watchdog/0
6 ? 00:00:00 cpuset
7 ? 00:00:00 events/0
8 ? 00:00:00 work_on_cpu/0
9 ? 00:00:00 khelper
10 ? 00:00:00 kintegrityd/0
11 ? 00:00:00 kblockd/0
12 ? 00:00:00 kacpid
13 ? 00:00:00 kacpi_notify
14 ? 00:00:00 cqueue
15 ? 00:00:01 ata/0
16 ? 00:00:00 ata_aux
17 ? 00:00:00 ksuspend_usbd
18 ? 00:00:00 khubd
19 ? 00:00:00 kseriod
20 ? 00:00:00 kmmcd
21 ? 00:00:00 btaddconn
22 ? 00:00:00 btdelconn
23 ? 00:00:00 pdflush
24 ? 00:00:00 pdflush
25 ? 00:00:01 kswapd0
26 ? 00:00:00 aio/0
27 ? 00:00:00 ecryptfs-kthrea
30 ? 00:00:01 scsi_eh_0
31 ? 00:00:00 scsi_eh_1
32 ? 00:00:00 kstriped
33 ? 00:00:00 kmpathd/0
34 ? 00:00:00 kmpath_handlerd
35 ? 00:00:00 ksnapd
36 ? 00:00:00 kondemand/0
37 ? 00:00:00 krfcommd
636 ? 00:00:00 scsi_eh_2
637 ? 00:00:00 usb-storage
700 ? 00:00:00 kjournald
816 ? 00:00:00 udevd
1478 ? 00:00:00 kgameportd
1928 ? 00:00:00 dhclient3
2103 ? 00:00:00 mount.ntfs-3g
2338 tty4 00:00:00 getty
2339 tty5 00:00:00 getty
2342 tty2 00:00:00 getty
2343 tty3 00:00:00 getty
2344 tty6 00:00:00 getty
2411 ? 00:00:00 acpid
2488 ? 00:00:00 syslogd
2511 ? 00:00:00 dd
2513 ? 00:00:00 klogd
2536 ? 00:00:04 dbus-daemon
2849 ? 00:00:00 exim4
2919 ? 00:00:01 hald
2922 ? 00:00:00 console-kit-dae
2985 ? 00:00:00 hald-runner
3015 ? 00:00:00 hald-addon-inpu
3084 ? 00:00:01 hald-addon-stor
3085 ? 00:00:01 hald-addon-stor
3087 ? 00:00:00 hald-addon-acpi
3105 ? 00:00:00 bluetoothd
3146 ? 00:00:00 kdm
3162 tty7 00:03:19 Xorg
3163 ? 00:00:00 NetworkManager
3167 ? 00:00:00 wpa_supplicant
3169 ? 00:00:00 nm-system-setti
3187 ? 00:00:00 avahi-daemon
3188 ? 00:00:00 avahi-daemon
3211 ? 00:00:00 cupsd
3242 ? 00:00:00 system-tools-ba
3315 ? 00:00:00 atd
3343 ? 00:00:00 cron
3467 ? 00:00:00 timidity
3472 tty1 00:00:00 getty
3475 ? 00:00:00 kdm
3488 ? 00:00:00 dbus-launch
3489 ? 00:00:00 dbus-daemon
3509 ? 00:00:00 x-session-manag
3703 ? 00:00:00 ssh-agent
3704 ? 00:00:00 gpg-agent
3707 ? 00:00:00 dbus-launch
3708 ? 00:00:02 dbus-daemon
3747 ? 00:00:00 kdeinit4
3748 ? 00:00:00 klauncher
3750 ? 00:00:02 kded4
3805 ? 00:00:00 kwrapper4
3806 ? 00:00:00 ksmserver
3808 ? 00:00:12 kwin
3809 ? 00:00:00 kwrited
3813 ? 00:00:01 knotify4
3814 ? 00:00:00 nepomukserver
3815 ? 00:00:33 plasma
3822 ? 00:00:00 kaccess
3830 ? 00:00:00 kxkb
3835 ? 00:00:03 krunner
3841 ? 00:00:00 kmix
3843 ? 00:00:07 konsole
3846 pts/1 00:00:00 bash
3847 pts/2 00:00:00 bash
3848 pts/3 00:00:00 bash
3897 ? 00:00:05 amarok
3935 ? 00:00:38 dolphin
3941 ? 00:00:00 python
3946 ? 00:00:00 python
3947 ? 00:00:03 python
3950 ? 00:00:00 kblueplugd
3955 ? 00:00:00 klipper
3986 ? 00:00:00 python
3987 ? 00:00:00 python
4032 ? 00:00:00 gvfsd
4036 ? 00:00:00 gvfs-hal-volume
4039 ? 00:00:00 gvfs-gphoto2-vo
4053 ? 00:00:00 mount.ntfs-3g
4115 pts/3 00:00:00 make
4118 pts/3 00:00:00 make
4854 ? 00:00:00 kwalletd
9718 pts/3 00:00:01 make
9917 ? 00:01:39 firefox-3.5
9925 ? 00:00:00 gconfd-2
12651 ? 00:00:00 kio_file
14173 ? 00:00:00 kio_file
14978 pts/3 00:00:00 sh
14979 pts/3 00:00:00 c++
14980 pts/3 00:00:09 cc1plus
14984 pts/2 00:00:00 ps

hi,

which distro, which version ?

is not pulseaudio running ?
$ ps -ef|grep pulseaudio ?

Sorry, forgot to add my system specs yesterday. I’m on Kubuntu 9.04. The command from above leads to this output:

silentcry@silentcry:~$ ps -ef|grep pulseaudio
1000 4724 3803 0 22:02 pts/3 00:00:00 grep pulseaudio

I’m pretty sure that pulseaudio is not running (can’t kill such a process), but that line confuses me a bit (linux newbie here :slight_smile: )

pulse does not seems to be up
try to change your default sound device in kde sound settings.

what’s teh ouput of ps -e ?

you can see which program is using your sound devices with this command:

lsof /dev/snd/*

I think lsof means: list open files. It is a very powerful command with lots of other uses.

the pcm (playback and capture) devices are named like this: pcmC0D0p

C0: first sound card (counting from zero)
D0: first device
p: playback device (audio output)
c: capture device (audio input)