Skip to contentSkip to conversation

: jackplug and oss

ALSA - plugins 0001445 [email protected] 1 participant 1 message Sep 25, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1445>
======================================================================
Reported By: FishB8
Assigned To:
======================================================================

Project:                    ALSA - plugins
Issue ID:                   1445
Category:                   PCM - jack
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             09-23-2005 17:23 CEST
Last Modified:              09-25-2005 21:37 CEST

======================================================================
Summary: jackplug and oss
Description:
I've tried setting up an asound.conf with a config for pcm.dsp0 so that I can use aoss. No big deal. But then I thought it would be cool to set the slave to pcm.jack. That way I could use aoss to route oss to jack using alsa instead of some of the hacks out there that only work half the time.

No dice. It doesn't work. (Or at least I couldn't get it to work) Am I not understanding how to do this correctly, or is this just not possible the way things currently work?
======================================================================

----------------------------------------------------------------------
b0ef - 09-24-05 16:58
----------------------------------------------------------------------
You might try explaining a little more what "does not work" mean. What happens?. What apps are you testing with?. What does your config file look like?

----------------------------------------------------------------------
FishB8 - 09-25-05 21:37
----------------------------------------------------------------------
The applications I try to run work fine when the dsp0 slave.pcm is set to something like dmixer, but when I try assigning it to either jack or jackplug, (and the jack daemon is running) the applications will start up fine, but when I try to start playback they either segfault or do nothing.

Alsa apps have no problem with the jack plugin. For instance if I change pcm.!default to jackplug, alsa apps will route their IO to jack ports without any problem.

Here's my current config:

pcm.!default {
type plug
slave.pcm "dmixer"
}

ctl.!default {
type hw
card 0
}

#Dmixer

pcm.dmixer  {
	type dmix
	ipc_key 1024
	slave {
	    pcm "hw:0,0"
	    period_size 1024
	    buffer_size 8192
	    rate 44100
	}
	bindings {
	    0 0
	    1 1
	}
}

#OSS to Dmixer
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}

#JackPlug
pcm.jackplug {
type plug
slave.pcm "jack"
}

pcm.jack {
	type jack
	playback_ports {
 		0 alsa_pcm:playback_1
 		1 alsa_pcm:playback_2
 	}
 	capture_ports {
 		0 alsa_pcm:capture_1
		1 alsa_pcm:capture_2
	}
}

Issue History
Date Modified Username Field Change
======================================================================

09-23-05 17:23 FishB8         New Issue                                    
09-24-05 16:58 b0ef           Note Added: 0006371                          
09-25-05 21:37 FishB8         Note Added: 0006388                          

======================================================================

-------------------------------------------------------
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