All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Andy Ng <andreas2025@gmail.com>, alsa-devel@alsa-project.org
Subject: Re: pcm prepare
Date: Tue, 28 Jul 2015 08:56:43 +0200	[thread overview]
Message-ID: <55B727AB.8090902@ladisch.de> (raw)
In-Reply-To: <CAAVaN8woRd9Xvp3kE-=8gW-diB4KSWjEw+hU=bfi7cQdBvdQkQ@mail.gmail.com>

Andy Ng wrote:
> I am quite surprised that by sending hardware params with alsa-lib the
> prepare function is called automatically in the driver.
>
> In my case, I would like to open and configure pcmNp and pcmNc and
> then call prepare for pcmNp and pcmPc channels.
>
> It is quite imperative to execute specific configuration steps after
> both channels are opened and configured.

What configuration steps?  Is there some dependency or shared resource
between the two streams?  In that case, you have to set the
SNDRV_PCM_INFO_JOINT_DUPLEX flag, and do whatever is necessary in the
first hw_params call, and just check for correctness in the later
hw_params call of the other stream.

> I was wondering if there is any ioctl interface that can be hooked in
> alsa-lib to pass extra configuration info before start the streams.

No.


Regards,
Clemens

      reply	other threads:[~2015-07-28  6:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-27 21:01 pcm prepare Andy Ng
2015-07-28  6:56 ` Clemens Ladisch [this message]

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=55B727AB.8090902@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=andreas2025@gmail.com \
    /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.