All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: Clemens Ladisch <clemens@alsa-project.org>
Cc: ALSA development <alsa-devel@alsa-project.org>
Subject: Re: Will ALSA ever call _prepare or _hw_params while it's	playing?
Date: Wed, 21 May 2008 10:56:50 -0500	[thread overview]
Message-ID: <48344642.3050707@freescale.com> (raw)
In-Reply-To: <48344582.8020601@alsa-project.org>

Clemens Ladisch wrote:
> Timur Tabi wrote:
>> I have an ASoC driver with a _hw_params, _prepare, and _trigger functions.  I've
>> recently discovered that I need to keep one of my devices disabled until
>> playback starts.
>>
>> So I would like to know if ALSA will ever call _hw_params, _prepare, or _trigger
>> if playback or capture is currently in process, or will ALSA first call the
>> _trigger to stop/pause the driver.
> 
> While a stream is running (after trigger with START), ALSA will only
> call the pointer or the trigger (STOP/PAUSE/SUSPEND) callbacks.

That's good.

> Different streams are not synchronized in any way.  (This also applies to
> the playback/capture streams of one card.)

Ah, I hadn't thought about that.  If I'm doing simultaneous capture and playback
through the same device, then I can't guarantee that it's disabled.  Argh.

Thanks.

-- 
Timur Tabi
Linux kernel developer at Freescale

      reply	other threads:[~2008-05-21 15:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-21 15:45 Will ALSA ever call _prepare or _hw_params while it's playing? Timur Tabi
2008-05-21 15:53 ` Clemens Ladisch
2008-05-21 15:56   ` Timur Tabi [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=48344642.3050707@freescale.com \
    --to=timur@freescale.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@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 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.