Problems with SI7012 on simulated 3 stereo channels and dmix
Hi,
I'm trying for over a month to get dmix working on 3 separate stereo channels on SI7012 device but no success. I just get scrambled sound when two apps (with same or different sample rate) are trying to access same device (plug:a, b or c for example).
I'm attaching my asound.conf. On dmixer device everything works ok, but when I try to run two instances of Alsaplayer on plug:a device I get scrambled sound as long as instances are running - if I stop one of them - sound gets OK. This all happens also of two different sample rate files are palyed on same device.
Since I'm newbie to asoundrc magic, I kindly ask for any guidance - I'd love to get this working...
Regards,
Robert
----------------------------asound.conf-------------------------------------
pcm_slave.sis {
pcm "hw:0"
channels 6
rate 48000buffer_size 4096 # make these sizes smaller for lower latency period_size 2048
periods 0period_time 0
}
pcm.ch12 {
type dmixipc_key 47110815
slave sis
bindings.0 0
bindings.1 1
}
pcm.ch34 {
type dmixipc_key 47110815
slave sis
bindings.0 2
bindings.1 3
}
pcm.ch56 {
type dmixipc_key 47110815
slave sis
bindings.0 4
bindings.1 5
}
pcm.a {
type plug
slave.pcm ch12
}
pcm.b {
type plug
slave.pcm ch34
}
pcm.c {
type plug
slave.pcm ch56
}
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
#periods 128
rate 44100
}
bindings {
0 0
1 1
}
}ctl.mixer0 {
type hw
card 0
}
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Hi,
I'd kindly ask also for another answer:
- why aplay doesn't play on "plug:a", b or c in system with attached asoundrc ? It just sits there doing nothing - using -vvv doesn't help either to spit out more info about problem...
Thanks ,
Robert.
----- Original Message -----
From: "Robert Rozman" <[email protected]>
To: <[email protected]>
Sent: Saturday, June 26, 2004 6:51 PM
Subject: [Alsa-devel] Problems with SI7012 on simulated 3 stereo channels and dmix
Quoted 8 lines
Hi,
I'm trying for over a month to get dmix working on 3 separate stereo channels on SI7012 device but no success. I just get scrambled sound when two apps (with same or different sample rate) are trying to access same device (plug:a, b or c for example).
I'm attaching my asound.conf. On dmixer device everything works ok, but
when
Quoted 2 lines
I try to run two instances of Alsaplayer on plug:a device I get scrambled sound as long as instances are running - if I stop one of them - sound
gets
Quoted 4 lines
OK. This all happens also of two different sample rate files are palyed on same device.
Since I'm newbie to asoundrc magic, I kindly ask for any guidance - I'd
love
Quoted 7 lines
to get this working...
Regards,
Robert
----------------------------asound.conf-----------------------------------
--
Quoted 82 lines
pcm_slave.sis {
pcm "hw:0"
channels 6
rate 48000buffer_size4096 # make these sizes smaller for lower latencyperiod_size2048
periods 0period_time0
}pcm.ch12 {
type dmixipc_key47110815
slave sis
bindings.0 0
bindings.1 1
}pcm.ch34 {
type dmixipc_key47110815
slave sis
bindings.0 2
bindings.1 3
}pcm.ch56 {
type dmixipc_key47110815
slave sis
bindings.0 4
bindings.1 5
}pcm.a {
type plug
slave.pcm ch12
}pcm.b {
type plug
slave.pcm ch34
}
pcm.c{
type plug
slave.pcm ch56
}pcm.dsp0 {
type plug
slave.pcm "dmixer"
}pcm.dmixer { type dmix ipc_key 1024 slave { pcm "hw:0,0" period_time 0 period_size 1024 buffer_size 8192 #periods 128 rate 44100 } bindings { 0 0 1 1 } }ctl.mixer0 {
type hw
card 0
}
Quoted 9 lines
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Alsa-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com