List Info

Thread: Problem with ALSA driver




Problem with ALSA driver
user name
2006-05-31 11:16:39
I've tested the current SVN version of jackd with my
on-board sound 
device, and I've noticed that it doesn't work. At least
not for all devices.
For hw:0 it doesn't work. For hw:2 (= spdif out only) it
works.
logs and test setup info are included.

I've also tested 0.102.9 on my laptop, which also has an
snd_intel8x0 
handled card. It runs FC5+planetccrma, with an rdt kernel
(not the rrt 
like the desktop does) and alsa 1.0.11. This setup does
work.

switching back to 0.102.0 doesn't resolve the problem, so I
suspect it 
is not a (new) jackd problem.
However I can use hw:0 without a problem in other programs.

Pieter


$ jackd --verbose -R -dalsa -dhw:0,0
getting driver descriptor from /usr/lib/jack/jack_alsa.so
getting driver descriptor from /usr/lib/jack/jack_dummy.so
getting driver descriptor from
/usr/lib/jack/jack_portaudio.so
getting driver descriptor from /usr/lib/jack/jack_oss.so
getting driver descriptor from /usr/lib/jack/jack_freebob.so
jackd 0.102.9
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.
server `default' registered
loading driver ..
creating alsa driver ... 
hw:0,0|hw:0,0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2
periods
ALSA: final selected sample format for capture: 16bit
little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 16bit
little-endian
ALSA: use 2 periods for playback
registered builtin port type 32 bit float mono audio
registered builtin port type 8 bit raw midi
clock source = system clock via gettimeofday
new client: alsa_pcm, id = 1 type 1  0x8070aa8 fd = -1
new buffer size 1024
registered port alsa_pcm:capture_1, offset = 4096
registered port alsa_pcm:capture_2, offset = 8192
registered port alsa_pcm:playback_1, offset = 0
registered port alsa_pcm:playback_2, offset = 0
registered port alsa_pcm:playback_3, offset = 0
registered port alsa_pcm:playback_4, offset = 0
registered port alsa_pcm:playback_5, offset = 0
registered port alsa_pcm:playback_6, offset = 0
++ jack_rechain_graph():
client alsa_pcm: internal client, execution_order=0.
-- jack_rechain_graph()
14758 waiting for signals
jackd watchdog: timeout - killing jackd
Aborted

--------------------------------

[ppalmerslocalhost jack-svn]$  jackd --verbose -R -dalsa
-dhw:0,2
getting driver descriptor from /usr/lib/jack/jack_alsa.so
getting driver descriptor from /usr/lib/jack/jack_dummy.so
getting driver descriptor from
/usr/lib/jack/jack_portaudio.so
getting driver descriptor from /usr/lib/jack/jack_oss.so
getting driver descriptor from /usr/lib/jack/jack_freebob.so
jackd 0.102.9
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.
server `default' registered
loading driver ..
creating alsa driver ... 
hw:0,2|hw:0,2|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
ALSA: Cannot open PCM device alsa_pcm for capture. Falling
back to 
playback-only mode
configuring for 48000Hz, period = 1024 frames, buffer = 2
periods
ALSA: final selected sample format for playback: 16bit
little-endian
ALSA: use 2 periods for playback
14765 waiting for signals
registered builtin port type 32 bit float mono audio
registered builtin port type 8 bit raw midi
clock source = system clock via gettimeofday
new client: alsa_pcm, id = 1 type 1  0x8070aa8 fd = -1
new buffer size 1024
registered port alsa_pcm:playback_1, offset = 0
registered port alsa_pcm:playback_2, offset = 0
++ jack_rechain_graph():
client alsa_pcm: internal client, execution_order=0.
-- jack_rechain_graph()
load = 0.0258 max usecs: 11.000, spare = 21322.000
load = 0.0387 max usecs: 11.000, spare = 21322.000
jack main caught signal 2
starting server engine shutdown
stopping driver
unloading driver
freeing shared port segments
stopping server thread
stopping watchdog thread
last xrun delay: 0.000 usecs
max delay reported by backend: 41.000 usecs
freeing engine shared memory
max usecs: 11.000, engine deleted
no message buffer overruns
cleaning up shared memory
cleaning up files
unregistering server `default'

--------------------------------
jackd build information:
./configure --prefix=/usr --with-default-tmpdir=/dev/shm
--enable-optimize

--------------------------------
hardware info:
$ cat /proc/asound/cards
0 [nForce2        ]: NFORCE - NVidia nForce2
                     NVidia nForce2 with ALC658D at
0xe0081000, irq 18

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: nForce2 [NVidia nForce2], device 0: Intel ICH
[NVidia nForce2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: nForce2 [NVidia nForce2], device 2: Intel ICH -
IEC958 [NVidia 
nForce2 - IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: nForce2 [NVidia nForce2], device 0: Intel ICH
[NVidia nForce2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: nForce2 [NVidia nForce2], device 1: Intel ICH - MIC
ADC [NVidia 
nForce2 - MIC ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

--------------------------------
OS info:
Fedora Core 4 + planetccrma
alsa 1.0.10 (upgrading to  1.0.11 didn't help)
kernel 2.6.14-0.10.rrt.rhfc4.ccrma

--------------------------------

Here is stderr output for a debug build w/o optimizations:
./configure --enable-debug --prefix=/usr --disable-optimize 


$ jackd --verbose -R -d alsa -d"hw:0" 2> log
jackd 0.102.9
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

creating alsa driver ...
hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
Aborted

$ cat log
getting driver descriptor from /usr/lib/jack/jack_alsa.so
getting driver descriptor from /usr/lib/jack/jack_dummy.so
getting driver descriptor from
/usr/lib/jack/jack_portaudio.so
getting driver descriptor from /usr/lib/jack/jack_oss.so
getting driver descriptor from /usr/lib/jack/jack_freebob.so
JACK compiled with System V SHM support.
server `default' registered
jack:17521:1149072686271301 engine.c:jack_get_fifo_fd:3258: 
/tmp/jack-500/default/jack-ack-fifo-17521-0
jack:17521:1149072686271374 engine.c:jack_get_fifo_fd:3302:
opened 
engine->fifo[0] == 5
(/tmp/jack-500/default/jack-ack-fifo-17521-0)
loading driver ..
jack:17521:1149072686284702
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686284730
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686284753
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686284769
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
configuring for 48000Hz, period = 1024 frames, buffer = 2
periods
ALSA: final selected sample format for capture: 16bit
little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 16bit
little-endian
ALSA: use 2 periods for playback
jack:17521:1149072686287991
engine.c:jack_server_thread:1417: start while
registered builtin port type 32 bit float mono audio
registered builtin port type 8 bit raw midi
clock source = system clock via gettimeofday
new client: alsa_pcm, id = 1 type 1  0x805d598 fd = -1
new buffer size 1024
jack:17521:1149072686339271
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686339310
engine.c:jack_deliver_event:2238: delivering 
event (type 2)
jack:17521:1149072686339320
engine.c:jack_deliver_event:2252: client 
alsa_pcm is still alive
jack:17521:1149072686339330
engine.c:jack_deliver_event:2339: event 
delivered
jack:17521:1149072686339337
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686340296
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340321
engine.c:jack_deliver_event:2238: delivering 
event (type 2)
jack:17521:1149072686340330
engine.c:jack_deliver_event:2252: client 
alsa_pcm is still alive
jack:17521:1149072686340338
engine.c:jack_deliver_event:2339: event 
delivered
jack:17521:1149072686340345
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686340353
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340360
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686340367
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340374
engine.c:jack_deliver_event:2238: delivering 
event (type 0)
jack:17521:1149072686340381
engine.c:jack_deliver_event:2252: client 
alsa_pcm is still alive
jack:17521:1149072686340395
engine.c:jack_deliver_event:2339: event 
delivered
jack:17521:1149072686340403
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686340433 engine.c:do_request:1173: got a
request of 
type 1
jack:17521:1149072686340444
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340452
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686340463
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340472
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
registered port alsa_pcm:capture_1, offset = 4096
jack:17521:1149072686340524 engine.c:do_request:1298: status
of request: 0
jack:17521:1149072686340540 engine.c:do_request:1173: got a
request of 
type 1
jack:17521:1149072686340548
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340556
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686340565
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340573
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
registered port alsa_pcm:capture_2, offset = 8192
jack:17521:1149072686340607 engine.c:do_request:1298: status
of request: 0
jack:17521:1149072686340650 engine.c:do_request:1173: got a
request of 
type 1
jack:17521:1149072686340659
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340666
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686340674
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340681
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
registered port alsa_pcm:playback_1, offset = 0
jack:17521:1149072686340716 engine.c:do_request:1298: status
of request: 0
jack:17521:1149072686340727 engine.c:do_request:1173: got a
request of 
type 1
jack:17521:1149072686340735
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340742
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686340750
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340757
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
registered port alsa_pcm:playback_2, offset = 0
jack:17521:1149072686340790 engine.c:do_request:1298: status
of request: 0
jack:17521:1149072686340801 engine.c:do_request:1173: got a
request of 
type 1
jack:17521:1149072686340808
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340815
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686340823
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340831
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
registered port alsa_pcm:playback_3, offset = 0
jack:17521:1149072686340864 engine.c:do_request:1298: status
of request: 0
jack:17521:1149072686340874 engine.c:do_request:1173: got a
request of 
type 1
jack:17521:1149072686340882
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340889
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686340896
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340904
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
registered port alsa_pcm:playback_4, offset = 0
jack:17521:1149072686340937 engine.c:do_request:1298: status
of request: 0
jack:17521:1149072686340947 engine.c:do_request:1173: got a
request of 
type 1
jack:17521:1149072686340955
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340962
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686340969
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686340977
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
registered port alsa_pcm:playback_5, offset = 0
jack:17521:1149072686341010 engine.c:do_request:1298: status
of request: 0
jack:17521:1149072686341020 engine.c:do_request:1173: got a
request of 
type 1
jack:17521:1149072686341028
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686341035
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686341042
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686341050
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
registered port alsa_pcm:playback_6, offset = 0
jack:17521:1149072686341083 engine.c:do_request:1298: status
of request: 0
jack:17521:1149072686348163 engine.c:do_request:1173: got a
request of 
type 6
jack:17521:1149072686348233
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686348255 engine.c:jack_get_fifo_fd:3258: 
/tmp/jack-500/default/jack-ack-fifo-17521-1
jack:17521:1149072686348352 engine.c:jack_get_fifo_fd:3302:
opened 
engine->fifo[1] == 7
(/tmp/jack-500/default/jack-ack-fifo-17521-1)
++ jack_rechain_graph():
client alsa_pcm: internal client, execution_order=0.
jack:17521:1149072686348462
engine.c:jack_deliver_event:2238: delivering 
event (type 5)
jack:17521:1149072686348471
engine.c:jack_deliver_event:2252: client 
alsa_pcm is still alive
jack:17521:1149072686348479
engine.c:jack_deliver_event:2339: event 
delivered
-- jack_rechain_graph()
jack:17521:1149072686348537
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686348546 engine.c:do_request:1298: status
of request: 0
17521 waiting for signals
jack:17521:1149072686493238
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686493257
engine.c:jack_deliver_event:2238: delivering 
event (type 8)
jack:17521:1149072686493265
engine.c:jack_deliver_event:2252: client 
alsa_pcm is still alive
jack:17521:1149072686493273
engine.c:jack_deliver_event:2339: event 
delivered
jack:17521:1149072686493280
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jack:17521:1149072686586231
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072686586258
engine.c:jack_deliver_event:2238: delivering 
event (type 8)
jack:17521:1149072686586267
engine.c:jack_deliver_event:2252: client 
alsa_pcm is still alive

<..........cut..............>

jack:17521:1149072691328285
../jack/engine.h:jack_lock_graph:178: 
acquiring graph lock
jack:17521:1149072691328302
engine.c:jack_deliver_event:2238: delivering 
event (type 8)
jack:17521:1149072691328310
engine.c:jack_deliver_event:2252: client 
alsa_pcm is still alive
jack:17521:1149072691328318
engine.c:jack_deliver_event:2339: event 
delivered
jack:17521:1149072691328325
../jack/engine.h:jack_unlock_graph:190: 
releasing graph lock
jackd watchdog: timeout - killing jackd



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the
Cost and Risk!
Fully trained technicians. The highest number of Red Hat
certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )