alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: "Vijay Palaniswamy (RBEI/ECF3)" <Vijay.Palaniswamy@in.bosch.com>
To: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: [DMIX Plugin] Using Different bindings for same Alsa card
Date: Wed, 15 Jul 2020 13:07:20 +0000	[thread overview]
Message-ID: <d2e0758638f54ddb9fce57fc85f61d27@in.bosch.com> (raw)

Hi All,

I have two virtual device pointing to same Alsa card ,with different bindings
When audio played on both device [dmix_4_channels and dmix_2_channels] in parallel. Audio played on dmix_2_channels is getting corrupted.

Validated with alsa versio : 1.2.3

Please let me know how to make it work with below configuration.

Alsa configuration used for testing:
*************************************************
pcm.dmix_4_channels {
        type dmix
        ipc_key 5678293
        ipc_perm 0660
        ipc_gid audio
        bindings [0 1 2 3]

        slave {
                pcm "hardware"
                channels 4
                periods  4
                period_time 40000
        }
}

pcm.dmix_2_channels {
        type dmix
        ipc_key 5678293
        ipc_perm 0660
        ipc_gid audio
        bindings [0 1]

        slave {
                pcm "hardware"
                channels 2
                periods  4
                period_time 40000
        }
}

pcm.hardware {
        type hw
        card 0
        channels 4
        rate 48000
        format S16_LE
}

*************************************************

Best regards

Palaniswamy Vijay


                 reply	other threads:[~2020-07-15 13:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=d2e0758638f54ddb9fce57fc85f61d27@in.bosch.com \
    --to=vijay.palaniswamy@in.bosch.com \
    --cc=alsa-devel@alsa-project.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).