All of lore.kernel.org
 help / color / mirror / Atom feed
* pcm prepare
@ 2015-07-27 21:01 Andy Ng
  2015-07-28  6:56 ` Clemens Ladisch
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Ng @ 2015-07-27 21:01 UTC (permalink / raw)
  To: alsa-devel

Hi,

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.

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.

Any ideas?

Andy

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pcm prepare
  2015-07-27 21:01 pcm prepare Andy Ng
@ 2015-07-28  6:56 ` Clemens Ladisch
  0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2015-07-28  6:56 UTC (permalink / raw)
  To: Andy Ng, alsa-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-28  6:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-27 21:01 pcm prepare Andy Ng
2015-07-28  6:56 ` Clemens Ladisch

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.