alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Mike Bjorge <mbjorge@google.com>
To: alsa-devel@alsa-project.org
Subject: unable to create IPC shm instance; SND_PCM_DIRECT_MAGIC
Date: Mon, 21 Sep 2015 18:14:31 -0700	[thread overview]
Message-ID: <CADHGi47yhgRJdF0FPv8epGPobe_u4Xkaan7mQi1Zv_Y4FBBH6Q@mail.gmail.com> (raw)

I was wondering if anyone could explain the point of SND_PCM_DIRECT_MAGIC
and dmix->shmptr->magic?

Specifically, what it's doing in pcm_direct.c from this commit?
http://git.alsa-project.org/?p=alsa-lib.git;a=blobdiff;f=src/pcm/pcm_direct.c;h=4e2f36cd275bfda1bc3453e569cf7fb44c317ef3;hp=46664a13d0a3368527b103ff13a08f3bcfe1ddbb;hb=eafb7ae5d8fa5ee52757ee0ee9137442d2c39326;hpb=194ff97ea68d66dac8e38671cbf73d52b42f3363

I am trying to use pcm_dmix.c, but this is occasionally failing

first_instance = ret = snd_pcm_direct_shm_create_or_connect(dmix);
if (ret < 0) {
SNDERR("unable to create IPC shm instance");
goto _err;
}

because dmix->shmptr->magic is not correctly set to SND_PCM_DIRECT_MAGIC.

Thanks for any information!

-Mike

                 reply	other threads:[~2015-09-22  1:15 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=CADHGi47yhgRJdF0FPv8epGPobe_u4Xkaan7mQi1Zv_Y4FBBH6Q@mail.gmail.com \
    --to=mbjorge@google.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).