From: Clemens Ladisch <clemens@alsa-project.org>
To: Timur Tabi <timur@freescale.com>
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 17:53:38 +0200 [thread overview]
Message-ID: <48344582.8020601@alsa-project.org> (raw)
In-Reply-To: <4834438A.4060702@freescale.com>
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.
Different streams are not synchronized in any way. (This also applies to
the playback/capture streams of one card.)
Regards,
Clemens
next prev parent reply other threads:[~2008-05-21 15:53 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 [this message]
2008-05-21 15:56 ` Timur Tabi
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=48344582.8020601@alsa-project.org \
--to=clemens@alsa-project.org \
--cc=alsa-devel@alsa-project.org \
--cc=timur@freescale.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.