From: Jarkko Nikula <jarkko.nikula@linux.intel.com>
To: Takashi Iwai <tiwai@suse.de>, alsa-devel@alsa-project.org
Subject: Re: [PATCH 1/2] ALSA: pcm: Allow nonatomic trigger operations
Date: Tue, 02 Sep 2014 15:27:47 +0300 [thread overview]
Message-ID: <5405B7C3.7020603@linux.intel.com> (raw)
In-Reply-To: <1409572832-32553-2-git-send-email-tiwai@suse.de>
On 09/01/2014 03:00 PM, Takashi Iwai wrote:
> Currently, many PCM operations are performed in a critical section
> protected by spinlock, typically the trigger and pointer callbacks are
> assumed to be atomic. This is basically because some trigger action
> (e.g. PCM stop after drain or xrun) is done in the interrupt handler.
> If a driver runs in a threaded irq, however, this doesn't have to be
> atomic. And many devices want to handle trigger in a non-atomic
> context due to lengthy communications.
>
> This patch tries all PCM calls operational in non-atomic context.
> What it does is very simple: replaces the substream spinlock with the
> corresponding substream mutex when pcm->nonatomic flag is set. The
> driver that wants to use the non-atomic PCM ops just needs to set the
> flag and keep the reset as is. (Of course, it must not handle any PCM
>
I guess "s/reset/rest/"?
--
Jarkko
next prev parent reply other threads:[~2014-09-02 12:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-01 12:00 [RFC][PATCH 0/2] Allow nonatomic trigger operations Takashi Iwai
2014-09-01 12:00 ` [PATCH 1/2] ALSA: pcm: " Takashi Iwai
2014-09-02 12:27 ` Jarkko Nikula [this message]
2014-09-02 13:06 ` Takashi Iwai
2014-09-01 12:00 ` [PATCH 2/2] ALSA: pcm: Uninline snd_pcm_stream_lock() and _unlock() Takashi Iwai
2014-09-01 12:10 ` Takashi Iwai
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=5405B7C3.7020603@linux.intel.com \
--to=jarkko.nikula@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/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.