Skip to contentSkip to conversation

asym plugin in asoundrc causes "poll time out" errors in jackd

DISCUSSION Pasi Kärkkäinen 2 participants 10 messages Nov 3, 2005 – Nov 28, 2005

lore
Share & tools
lore
#0 lore raw

Hi list!

I've already sent this mail to jackd mailing list, but didn't got any helpful replies.. so I'm trying if somebody knows more about asym stuff here.

I'm trying to run jackd with multi + asym plugins in ~/.asoundrc, but I get "ALSA: poll time out, polled for 17407547 usecs" messages all the time from jackd..

.asounrdc available here:
http://nrg.joroinen.fi/asoundrc-asym.txt

Ok.. you might ask why I need multi + asym plugins? Well.. the whole point is to combine two ice1712 cards (M-Audio Delta 1010LT's) for use in studio multichannel recording. Therefore "multi" plugin is needed to combine the channels and to create one virtual "jackmulti" device which jackd can use.

One virtual combined device is needed because jackd supports only one card/device.

In these tests I haven't (yet) combined the cards, so this problem happens with one/single ice1712 card!

Now, these ice1712 cards have 12 channels in, and 10 channels out. Asymmetric channel count. Jackd won't start with this kind of asymmetric "jackmulti" device. Therefore I use "asym" plugin to create "duplex" device, which has symmetric channel count in and out.

Jackd starts fine with this multi+asym "jackmulti" device.

The problem is this:

$ jackd -d alsa -d jackmulti -r 44100 -p 512
jackd 0.100.0
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 = 44100
creating alsa driver ...
jackmulti|jackmulti|512|2|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 512 frames, buffer = 2 periods
nperiods = 2 for capture
nperiods = 2 for playback
ALSA: poll time out, polled for 17407870 usecs
ALSA: poll time out, polled for 17407477 usecs
....

Those "poll time out" messages are printed all the time, even if I don't start any jack clients!

If I start jackd with -P or -C parameter, it will work OK and I don't get those poll time outs! (And audio can be played normally etc).

I'm running Debian unstable, with 2.6.14-1-686-smp kernel. The same problem was with 2.6.12-1-686-smp kernel.

I have patched/recompiled debian jackd packege with MMAP_COMPLEX support/patch.

Any comments/ideas very welcome.. I'm willing to debug and work on this.

-- Pasi Kärkkäinen

                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

#1 lore raw

At Thu, 3 Nov 2005 18:12:29 +0200,

Quoted 7 lines · Pasi Kärkkäinen

Hi list!

I've already sent this mail to jackd mailing list, but didn't got any helpful replies.. so I'm trying if somebody knows more about asym stuff here.

Quoted 6 lines

I'm trying to run jackd with multi + asym plugins in ~/.asoundrc, but I get "ALSA: poll time out, polled for 17407547 usecs" messages all the time from jackd..

.asounrdc available here:
http://nrg.joroinen.fi/asoundrc-asym.txt

Please post it instead of URL.

Takashi

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

#2 lore raw
Quoted 9 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:12:29 +0200,

Quoted 7 lines · Pasi Kärkkäinen

Hi list!

I've already sent this mail to jackd mailing list, but didn't got any helpful replies.. so I'm trying if somebody knows more about asym stuff here.

Quoted 9 lines
Quoted 6 lines

I'm trying to run jackd with multi + asym plugins in ~/.asoundrc, but I get "ALSA: poll time out, polled for 17407547 usecs" messages all the time from jackd..

.asounrdc available here:
http://nrg.joroinen.fi/asoundrc-asym.txt

Please post it instead of URL.

Attached.

Quoted 2 lines

Takashi

-- Pasi Kärkkäinen

                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.

# START OF .asoundrc

# Alias for first Delta card
pcm.delta1010_1 {
type hw
card 1
}
ctl.delta1010_1 {
type hw
card 1
}

# Alias for second Delta card
pcm.delta1010_2 {
type hw
card 2
}
ctl.delta1010_2 {
type hw
card 2
}

# Create virtual device out of multiple soundcards. # This cannot be used by JACK, which will complain that it

# cannot get mmap-based access. See jackmulti below.
pcm.multi_playback {
type multi
# First soundcard associated with slave "a"
slaves.a.pcm delta1010_1
# This must be specified, and MUST equal 12 for the Delta 1010LT
# (otherwise "broken configuration" and "invalid argument" errors result)
# I assume it must be equal to the correct number of channels on
# other soundcards too
slaves.a.channels 10

#slaves.b.pcm delta1010_2
#slaves.b.channels 10

# Read the lines below as follows:
# bindings.x.slave y
# bindings.x.channel z
# The above example means:
# "Bind channel z on slave y to channel x of the new multi device" # Check above to see which soundcard is associated with which slave

# The first 8 channels of the first soundcard
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave a
bindings.2.channel 2
bindings.3.slave a
bindings.3.channel 3
bindings.4.slave a
bindings.4.channel 4
bindings.5.slave a
bindings.5.channel 5
bindings.6.slave a
bindings.6.channel 6
bindings.7.slave a
bindings.7.channel 7

# The first 8 channels of the second soundcard

#    bindings.8.slave b
#    bindings.8.channel 0
#    bindings.9.slave b
#    bindings.9.channel 1
#    bindings.10.slave b
#    bindings.10.channel 2
#    bindings.11.slave b
#    bindings.11.channel 3
#    bindings.12.slave b
#    bindings.12.channel 4
#    bindings.13.slave b
#    bindings.13.channel 5
#    bindings.14.slave b
#    bindings.14.channel 6
#    bindings.15.slave b
#    bindings.15.channel 7

}

pcm.multi_capture {
type multi
# First soundcard associated with slave "a"
slaves.a.pcm delta1010_1
# This must be specified, and MUST equal 12 for the Delta 1010LT # (otherwise "broken configuration" and "invalid argument" errors result) # I assume it must be equal to the correct number of channels on

# other soundcards too
slaves.a.channels 12

#slaves.b.pcm delta1010_2
#slaves.b.channels 12

# Read the lines below as follows:
# bindings.x.slave y
# bindings.x.channel z
# The above example means:
# "Bind channel z on slave y to channel x of the new multi device" # Check above to see which soundcard is associated with which slave

# The first 8 channels of the first soundcard
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave a
bindings.2.channel 2
bindings.3.slave a
bindings.3.channel 3
bindings.4.slave a
bindings.4.channel 4
bindings.5.slave a
bindings.5.channel 5
bindings.6.slave a
bindings.6.channel 6
bindings.7.slave a
bindings.7.channel 7

# The first 8 channels of the second soundcard

#    bindings.8.slave b
#    bindings.8.channel 0
#    bindings.9.slave b
#    bindings.9.channel 1
#    bindings.10.slave b
#    bindings.10.channel 2
#    bindings.11.slave b
#    bindings.11.channel 3
#    bindings.12.slave b
#    bindings.12.channel 4
#    bindings.13.slave b
#    bindings.13.channel 5
#    bindings.14.slave b
#    bindings.14.channel 6
#    bindings.15.slave b
#    bindings.15.channel 7

}

# JACK requires a ctl (mixer) interface for any pcm interface

# it uses. A ctl interface for a multi device is a bit strange,
# but set this to the mixer of the first soundcard to keep JACK happy.
ctl.multi {
    type hw
    card 0
}

pcm.multi_duplex {
type asym
playback.pcm multi_playback
capture.pcm multi_capture
}

ctl.multi_duplex {
type hw
card 0
}

# This creates a multi-channel interleaved PCM stream based on

# the multi device. JACK will work with this one, as it can get
# mmap access to the channels.
pcm.jackmulti {
    type route
    slave.pcm multi_duplex

# As I understand it, you read "ttable.x.y z" as "route channel y of

# slave device specified above to channel x of the new (client) device,
# and multiply signal along this route with factor z", where z is
# between 0.0 and 1.0. A value of 1.0 therefore indicates no change to
# the signal (a straight routing between channels).
ttable.0.0 1.0
ttable.1.1 1.0
ttable.2.2 1.0
ttable.3.3 1.0
ttable.4.4 1.0
ttable.5.5 1.0
ttable.6.6 1.0
ttable.7.7 1.0

ttable.8.8 1.0
ttable.9.9 1.0
ttable.10.10 1.0
ttable.11.11 1.0
ttable.12.12 1.0
ttable.13.13 1.0
ttable.14.14 1.0
ttable.15.15 1.0

}

# JACK requires a ctl (mixer) interface for any pcm interface

# it uses. This is set to the first soundcard to keep JACK happy.
ctl.jackmulti {
    type hw
    card 0
}

# END OF .asoundrc

#3 lore raw

At Thu, 3 Nov 2005 18:24:42 +0200,

Quoted 15 lines · Pasi Kärkkäinen
Quoted 13 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:12:29 +0200,

Quoted 11 lines · Pasi Kärkkäinen

Hi list!

I've already sent this mail to jackd mailing list, but didn't got any helpful replies.. so I'm trying if somebody knows more about asym stuff here.

I'm trying to run jackd with multi + asym plugins in ~/.asoundrc, but I get "ALSA: poll time out, polled for 17407547 usecs" messages all the time from jackd..

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

.asounrdc available here:
http://nrg.joroinen.fi/asoundrc-asym.txt

Please post it instead of URL.

Attached.

Hmm, it looks more complicated than needed... :)

First of all, I don't see the point to use asym plugin. jackd has options -C and -P, and you can pass the different device name for each direction. Also, don't forget to pass the appropriate channel numbers via -i and -o options for both directions.

BTW, asym plugin itself is really harmless. It just does pass-thru the given PCM for the specified direction. Nothing else. So, the problem is either multi plugin or the handling of asymmetrical PCMs by jackd.

Takashi

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

#4 lore raw
Quoted 32 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:24:42 +0200,

Quoted 15 lines · Pasi Kärkkäinen
Quoted 13 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:12:29 +0200,

Quoted 11 lines · Pasi Kärkkäinen

Hi list!

I've already sent this mail to jackd mailing list, but didn't got any helpful replies.. so I'm trying if somebody knows more about asym stuff here.

I'm trying to run jackd with multi + asym plugins in ~/.asoundrc, but I get "ALSA: poll time out, polled for 17407547 usecs" messages all the time from jackd..

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

.asounrdc available here:
http://nrg.joroinen.fi/asoundrc-asym.txt

Please post it instead of URL.

Attached.

Hmm, it looks more complicated than needed... :)

First of all, I don't see the point to use asym plugin. jackd has options -C and -P, and you can pass the different device name for each direction. Also, don't forget to pass the appropriate channel numbers via -i and -o options for both directions.

Quoted 5 lines

BTW, asym plugin itself is really harmless. It just does pass-thru the given PCM for the specified direction. Nothing else. So, the problem is either multi plugin or the handling of asymmetrical PCMs by jackd.

Thanks for your comments!

I've cleaned up the asoundrc (removed asym/duplex-stuff).

http://nrg.joroinen.fi/asoundrc-multi.txt (also attached to this mail).

Does it look OK now?

Now I start jackd like this:

$ jackd -d alsa -C jackmulti_capture -P jackmulti_playback -r 44100 -i 12 -o 10
jackd 0.100.0
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 = 44100
creating alsa driver ... jackmulti_playback|jackmulti_capture|1024|2|44100|12|10|nomon|swmeter|-|32bit configuring for 44100Hz, period = 1024 frames, buffer = 2 periods nperiods = 2 for capture
nperiods = 2 for playback
ALSA: poll time out, polled for 34806057 usecs
ALSA: poll time out, polled for 34805957 usecs
ALSA: poll time out, polled for 34806090 usecs
ALSA: poll time out, polled for 34805870 usecs

Still the same problem.. I have not yet even combined both cards to these multi devices.. I'm only using single ice1712 device at the moment.

If the alsa/asoundrc part looks OK now, then I think I have to start debugging jackd..

- Pasi Kärkkäinen

Quoted 4 lines

Takashi

Quoted 9 lines

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

#5 lore raw
Quoted 39 lines · Pasi Kärkkäinen
Quoted 32 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:24:42 +0200,

Quoted 15 lines · Pasi Kärkkäinen
Quoted 13 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:12:29 +0200,

Quoted 11 lines · Pasi Kärkkäinen

Hi list!

I've already sent this mail to jackd mailing list, but didn't got any helpful replies.. so I'm trying if somebody knows more about asym stuff here.

I'm trying to run jackd with multi + asym plugins in ~/.asoundrc, but I get "ALSA: poll time out, polled for 17407547 usecs" messages all the time from jackd..

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

.asounrdc available here:
http://nrg.joroinen.fi/asoundrc-asym.txt

Please post it instead of URL.

Attached.

Hmm, it looks more complicated than needed... :)

First of all, I don't see the point to use asym plugin. jackd has options -C and -P, and you can pass the different device name for each direction. Also, don't forget to pass the appropriate channel numbers via -i and -o options for both directions.

Quoted 5 lines

BTW, asym plugin itself is really harmless. It just does pass-thru the given PCM for the specified direction. Nothing else. So, the problem is either multi plugin or the handling of asymmetrical PCMs by jackd.

Quoted 6 lines

Thanks for your comments!

I've cleaned up the asoundrc (removed asym/duplex-stuff).

http://nrg.joroinen.fi/asoundrc-multi.txt (also attached to this mail).

well.. at least now :)

-- Pasi Kärkkäinen

                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.

# START OF .asoundrc

# Alias for first Delta card
pcm.delta1010_1 {
type hw
card 1
}
ctl.delta1010_1 {
type hw
card 1
}

# Alias for second Delta card
pcm.delta1010_2 {
type hw
card 2
}
ctl.delta1010_2 {
type hw
card 2
}

# Create virtual device out of multiple soundcards. # This cannot be used by JACK, which will complain that it

# cannot get mmap-based access. See jackmulti below.

pcm.multi_playback {
type multi
# First soundcard associated with slave "a"
slaves.a.pcm delta1010_1
slaves.a.channels 10

#slaves.b.pcm delta1010_2
#slaves.b.channels 10

# Read the lines below as follows:
# bindings.x.slave y
# bindings.x.channel z
# The above example means:
# "Bind channel z on slave y to channel x of the new multi device" # Check above to see which soundcard is associated with which slave

# The first 10 channels of the first soundcard bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave a
bindings.2.channel 2
bindings.3.slave a
bindings.3.channel 3
bindings.4.slave a
bindings.4.channel 4
bindings.5.slave a
bindings.5.channel 5
bindings.6.slave a
bindings.6.channel 6
bindings.7.slave a
bindings.7.channel 7
bindings.8.slave a
bindings.8.channel 8
bindings.9.slave a
bindings.9.channel 9

}

pcm.multi_capture {
type multi
# First soundcard associated with slave "a"
slaves.a.pcm delta1010_1
slaves.a.channels 12

#slaves.b.pcm delta1010_2
#slaves.b.channels 12

# Read the lines below as follows:
# bindings.x.slave y
# bindings.x.channel z
# The above example means:
# "Bind channel z on slave y to channel x of the new multi device" # Check above to see which soundcard is associated with which slave

# The first 12 channels of the first soundcard bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave a
bindings.2.channel 2
bindings.3.slave a
bindings.3.channel 3
bindings.4.slave a
bindings.4.channel 4
bindings.5.slave a
bindings.5.channel 5
bindings.6.slave a
bindings.6.channel 6
bindings.7.slave a
bindings.7.channel 7
bindings.8.slave a
bindings.8.channel 8
bindings.9.slave a
bindings.9.channel 9
bindings.10.slave a bindings.10.channel 10 bindings.11.slave a bindings.11.channel 11

}

# JACK requires a ctl (mixer) interface for any pcm interface

# it uses. A ctl interface for a multi device is a bit strange,
# but set this to the mixer of the first soundcard to keep JACK happy.
ctl.multi_playback {
    type hw
    card 1
}

ctl.multi_capture {
type hw
card 1
}

# This creates a multi-channel interleaved PCM stream based on

# the multi device. JACK will work with this one, as it can get
# mmap access to the channels.
pcm.jackmulti_playback {
    type route
    slave.pcm multi_playback

# As I understand it, you read "ttable.x.y z" as "route channel y of

# slave device specified above to channel x of the new (client) device,
# and multiply signal along this route with factor z", where z is
# between 0.0 and 1.0. A value of 1.0 therefore indicates no change to
# the signal (a straight routing between channels).
ttable.0.0 1.0
ttable.1.1 1.0
ttable.2.2 1.0
ttable.3.3 1.0
ttable.4.4 1.0
ttable.5.5 1.0
ttable.6.6 1.0
ttable.7.7 1.0

ttable.8.8 1.0
ttable.9.9 1.0
ttable.10.10 1.0
ttable.11.11 1.0
ttable.12.12 1.0
ttable.13.13 1.0
ttable.14.14 1.0
ttable.15.15 1.0

}

# JACK requires a ctl (mixer) interface for any pcm interface

# it uses. This is set to the first soundcard to keep JACK happy.
ctl.jackmulti_playback {
    type hw
    card 1
}

pcm.jackmulti_capture {
type route
slave.pcm multi_capture

# As I understand it, you read "ttable.x.y z" as "route channel y of

# slave device specified above to channel x of the new (client) device,
# and multiply signal along this route with factor z", where z is
# between 0.0 and 1.0. A value of 1.0 therefore indicates no change to
# the signal (a straight routing between channels).
ttable.0.0 1.0
ttable.1.1 1.0
ttable.2.2 1.0
ttable.3.3 1.0
ttable.4.4 1.0
ttable.5.5 1.0
ttable.6.6 1.0
ttable.7.7 1.0

ttable.8.8 1.0
ttable.9.9 1.0
ttable.10.10 1.0
ttable.11.11 1.0
ttable.12.12 1.0
ttable.13.13 1.0
ttable.14.14 1.0
ttable.15.15 1.0

}

# JACK requires a ctl (mixer) interface for any pcm interface

# it uses. This is set to the first soundcard to keep JACK happy.
ctl.jackmulti_capture {
    type hw
    card 1
}

# END OF .asoundrc

#6 lore raw
In reply to Pasi Kärkkäinen

At Thu, 3 Nov 2005 19:18:56 +0200,

Quoted 57 lines · Pasi Kärkkäinen
Quoted 32 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:24:42 +0200,

Quoted 15 lines · Pasi Kärkkäinen
Quoted 13 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:12:29 +0200,

Quoted 11 lines · Pasi Kärkkäinen

Hi list!

I've already sent this mail to jackd mailing list, but didn't got any helpful replies.. so I'm trying if somebody knows more about asym stuff here.

I'm trying to run jackd with multi + asym plugins in ~/.asoundrc, but I get "ALSA: poll time out, polled for 17407547 usecs" messages all the time from jackd..

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

.asounrdc available here:
http://nrg.joroinen.fi/asoundrc-asym.txt

Please post it instead of URL.

Attached.

Hmm, it looks more complicated than needed... :)

First of all, I don't see the point to use asym plugin. jackd has options -C and -P, and you can pass the different device name for each direction. Also, don't forget to pass the appropriate channel numbers via -i and -o options for both directions.

Quoted 5 lines

BTW, asym plugin itself is really harmless. It just does pass-thru the given PCM for the specified direction. Nothing else. So, the problem is either multi plugin or the handling of asymmetrical PCMs by jackd.

Thanks for your comments!

I've cleaned up the asoundrc (removed asym/duplex-stuff).

http://nrg.joroinen.fi/asoundrc-multi.txt (also attached to this mail).

Does it look OK now?

Now I start jackd like this:

$ jackd -d alsa -C jackmulti_capture -P jackmulti_playback -r 44100 -i 12 -o 10
jackd 0.100.0
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
Quoted 12 lines

JACK compiled with System V SHM support.
loading driver ..
apparent rate = 44100
creating alsa driver ... jackmulti_playback|jackmulti_capture|1024|2|44100|12|10|nomon|swmeter|-|32bit configuring for 44100Hz, period = 1024 frames, buffer = 2 periods nperiods = 2 for capture
nperiods = 2 for playback
ALSA: poll time out, polled for 34806057 usecs
ALSA: poll time out, polled for 34805957 usecs
ALSA: poll time out, polled for 34806090 usecs
ALSA: poll time out, polled for 34805870 usecs

Could you try ALSA CVS version? (both drivers and libs)

Takashi

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

#7 lore raw
Quoted 72 lines · Takashi Iwai

At Thu, 3 Nov 2005 19:18:56 +0200,

Quoted 57 lines · Pasi Kärkkäinen
Quoted 32 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:24:42 +0200,

Quoted 15 lines · Pasi Kärkkäinen
Quoted 13 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:12:29 +0200,

Quoted 11 lines · Pasi Kärkkäinen

Hi list!

I've already sent this mail to jackd mailing list, but didn't got any helpful replies.. so I'm trying if somebody knows more about asym stuff here.

I'm trying to run jackd with multi + asym plugins in ~/.asoundrc, but I get "ALSA: poll time out, polled for 17407547 usecs" messages all the time from jackd..

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

.asounrdc available here:
http://nrg.joroinen.fi/asoundrc-asym.txt

Please post it instead of URL.

Attached.

Hmm, it looks more complicated than needed... :)

First of all, I don't see the point to use asym plugin. jackd has options -C and -P, and you can pass the different device name for each direction. Also, don't forget to pass the appropriate channel numbers via -i and -o options for both directions.

Quoted 5 lines

BTW, asym plugin itself is really harmless. It just does pass-thru the given PCM for the specified direction. Nothing else. So, the problem is either multi plugin or the handling of asymmetrical PCMs by jackd.

Thanks for your comments!

I've cleaned up the asoundrc (removed asym/duplex-stuff).

http://nrg.joroinen.fi/asoundrc-multi.txt (also attached to this mail).

Does it look OK now?

Now I start jackd like this:

$ jackd -d alsa -C jackmulti_capture -P jackmulti_playback -r 44100 -i 12 -o 10
jackd 0.100.0
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
Quoted 12 lines

JACK compiled with System V SHM support.
loading driver ..
apparent rate = 44100
creating alsa driver ... jackmulti_playback|jackmulti_capture|1024|2|44100|12|10|nomon|swmeter|-|32bit configuring for 44100Hz, period = 1024 frames, buffer = 2 periods nperiods = 2 for capture
nperiods = 2 for playback
ALSA: poll time out, polled for 34806057 usecs
ALSA: poll time out, polled for 34805957 usecs
ALSA: poll time out, polled for 34806090 usecs
ALSA: poll time out, polled for 34805870 usecs

Quoted 3 lines

Could you try ALSA CVS version? (both drivers and libs)

Yes, that's possible if there are possible fixes in CVS.

- Pasi Kärkkäinen

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

#8 lore raw
Quoted 44 lines · Pasi Kärkkäinen
Quoted 44 lines
Quoted 43 lines
Quoted 8 lines

Hmm, it looks more complicated than needed... :)

First of all, I don't see the point to use asym plugin. jackd has options -C and -P, and you can pass the different device name for each direction. Also, don't forget to pass the appropriate channel numbers via -i and -o options for both directions.

Quoted 5 lines

BTW, asym plugin itself is really harmless. It just does pass-thru the given PCM for the specified direction. Nothing else. So, the problem is either multi plugin or the handling of asymmetrical PCMs by jackd.

Thanks for your comments!

I've cleaned up the asoundrc (removed asym/duplex-stuff).

http://nrg.joroinen.fi/asoundrc-multi.txt (also attached to this mail).

Does it look OK now?

Now I start jackd like this:

$ jackd -d alsa -C jackmulti_capture -P jackmulti_playback -r 44100 -i 12 -o 10
jackd 0.100.0
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 = 44100
creating alsa driver ... jackmulti_playback|jackmulti_capture|1024|2|44100|12|10|nomon|swmeter|-|32bit configuring for 44100Hz, period = 1024 frames, buffer = 2 periods nperiods = 2 for capture
nperiods = 2 for playback
ALSA: poll time out, polled for 34806057 usecs
ALSA: poll time out, polled for 34805957 usecs
ALSA: poll time out, polled for 34806090 usecs
ALSA: poll time out, polled for 34805870 usecs

Quoted 6 lines
Quoted 3 lines

Could you try ALSA CVS version? (both drivers and libs)

Yes, that's possible if there are possible fixes in CVS.

I'm running now alsa 1.0.10-1 Debian packages, with kernel 2.6.14-2-686-smp.

The same problem still exists.

Looking at the jackd code, the "poll time out" messages come from poll() system call when jackd is started in fullduplex mode for alsa multi device.

If jackd is started in fullduplex mode for alsa _hw_ device directly, I don't get those poll time out messages. Or if I start jackd in _halfduplex_ (either playback or capture) mode for alsa multi device, I don't get those messages.

So the poll time out's only occur when alsa multi device is used in fullduplex mode.

http://cvs.sourceforge.net/viewcvs.py/alsa/alsa-lib/src/pcm/pcm_multi.c

It seems to be last modified 5 months ago.. Takashi, is there something you recommend me to try/test/patch to get fullduplex working with multi plugin?

Others have reported same problem to jackd mailinglist.

Thanks!

-- Pasi Kärkkäinen

                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click

#9 lore raw
In reply to Pasi Kärkkäinen
Quoted 69 lines · Pasi Kärkkäinen
Quoted 32 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:24:42 +0200,

Quoted 15 lines · Pasi Kärkkäinen
Quoted 13 lines · Takashi Iwai

At Thu, 3 Nov 2005 18:12:29 +0200,

Quoted 11 lines · Pasi Kärkkäinen

Hi list!

I've already sent this mail to jackd mailing list, but didn't got any helpful replies.. so I'm trying if somebody knows more about asym stuff here.

I'm trying to run jackd with multi + asym plugins in ~/.asoundrc, but I get "ALSA: poll time out, polled for 17407547 usecs" messages all the time from jackd..

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

.asounrdc available here:
http://nrg.joroinen.fi/asoundrc-asym.txt

Please post it instead of URL.

Attached.

Hmm, it looks more complicated than needed... :)

First of all, I don't see the point to use asym plugin. jackd has options -C and -P, and you can pass the different device name for each direction. Also, don't forget to pass the appropriate channel numbers via -i and -o options for both directions.

Quoted 5 lines

BTW, asym plugin itself is really harmless. It just does pass-thru the given PCM for the specified direction. Nothing else. So, the problem is either multi plugin or the handling of asymmetrical PCMs by jackd.

Thanks for your comments!

I've cleaned up the asoundrc (removed asym/duplex-stuff).

http://nrg.joroinen.fi/asoundrc-multi.txt (also attached to this mail).

Does it look OK now?

Now I start jackd like this:

$ jackd -d alsa -C jackmulti_capture -P jackmulti_playback -r 44100 -i 12 -o 10
jackd 0.100.0
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 = 44100
creating alsa driver ... jackmulti_playback|jackmulti_capture|1024|2|44100|12|10|nomon|swmeter|-|32bit configuring for 44100Hz, period = 1024 frames, buffer = 2 periods nperiods = 2 for capture
nperiods = 2 for playback
ALSA: poll time out, polled for 34806057 usecs
ALSA: poll time out, polled for 34805957 usecs
ALSA: poll time out, polled for 34806090 usecs
ALSA: poll time out, polled for 34805870 usecs

Quoted 6 lines

Still the same problem.. I have not yet even combined both cards to these multi devices.. I'm only using single ice1712 device at the moment.

If the alsa/asoundrc part looks OK now, then I think I have to start debugging jackd..

I've recompiled jackd with DEBUG_WAKEUP defined, and I get this:

$ jackd -d alsa -C jackmulti_capture -P jackmulti_playback -r 44100 -i 12 -o
10
jackd 0.100.0
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 = 44100
creating alsa driver ... jackmulti_playback|jackmulti_capture|1024|2|44100|12|10|nomon|swmeter|-|32bit configuring for 44100Hz, period = 1024 frames, buffer = 2 periods nperiods = 2 for capture
nperiods = 2 for playback
9399899033: checked 2 fds, 34805939 usecs since poll entered 9399899033 playback stream timed out
9399899033 capture stream timed out
ALSA: poll time out, polled for 34805939 usecs

looking at jack-audio-connection-kit-0.100.0/drivers/alsa/alsa_driver.c alsa_driver_wait() function:

poll_enter = jack_get_microseconds ();

..

if (poll (driver->pfd, nfds, driver->poll_timeout) < 0) { ..
}

poll_ret = jack_get_microseconds ();

..

#ifdef DEBUG_WAKEUP
	fprintf (stderr, "%" PRIu64 ": checked %d fds, %" PRIu64
		" usecs since poll entered\n", poll_ret, nfds,
		poll_ret - poll_enter);

#endif

It looks like there are no events coming from ALSA to jackd..

So the problem is in multi-plugin? Or do I miss something?

- Pasi Kärkkäinen

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php