All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Robert Rozman" <rozman@fri.uni-lj.si>
To: alsa-devel@lists.sourceforge.net
Subject: Problems with SI7012 on simulated 3 stereo channels and dmix
Date: Sat, 26 Jun 2004 18:51:14 +0200	[thread overview]
Message-ID: <040601c45b9e$07ae4b80$6500a8c0@Lapitopi> (raw)

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 48000
buffer_size 4096  # make these sizes smaller for lower latency
period_size 2048
periods 0
period_time 0
}

pcm.ch12 {
type dmix
ipc_key 47110815
slave sis
bindings.0 0
bindings.1 1
}

pcm.ch34 {
type dmix
ipc_key 47110815
slave sis
bindings.0 2
bindings.1 3
}

pcm.ch56 {
type dmix
ipc_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

             reply	other threads:[~2004-06-26 16:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-26 16:51 Robert Rozman [this message]
2004-06-27 21:07 ` Problems with SI7012 on simulated 3 stereo channels and dmix Robert Rozman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='040601c45b9e$07ae4b80$6500a8c0@Lapitopi' \
    --to=rozman@fri.uni-lj.si \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.