From: Takashi Iwai <tiwai@suse.de>
To: Timur Tabi <timur@freescale.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Is there a function I can call from my ISR to tell ALSA to abort playback?
Date: Thu, 15 Nov 2007 12:45:17 +0100 [thread overview]
Message-ID: <s5hejerd96a.wl%tiwai@suse.de> (raw)
In-Reply-To: <473C5F26.2050807@freescale.com>
At Thu, 15 Nov 2007 09:00:54 -0600,
Timur Tabi wrote:
>
> Jaroslav Kysela wrote:
>
> > Yes, call snd_pcm_stop() function. The call must be protected with
> > snd_pcm_stream_lock... See to i2c/other/ak4117.c for an example.
>
> That code calls snd_pcm_stop() from a timer, not an ISR. Do I need the call to
> wake_up() as well?
snd_pcm_stop() can be called from ISR, too (e.g.
snd_pcm_period_elapsed() may call snd_pcm_stop() when XRUN occurs).
You only need to protect it via snd_pcm_stream_lock*().
Takashi
next prev parent reply other threads:[~2007-11-15 15:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-14 20:41 Is there a function I can call from my ISR to tell ALSA to abort playback? Timur Tabi
2007-11-15 8:34 ` Jaroslav Kysela
2007-11-15 15:00 ` Timur Tabi
2007-11-15 11:45 ` Takashi Iwai [this message]
2007-11-15 20:28 ` Timur Tabi
2007-11-16 5:42 ` Takashi Iwai
2007-11-16 10:41 ` Jaroslav Kysela
2007-11-16 10:49 ` Takashi Iwai
2007-11-16 10:52 ` Jaroslav Kysela
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=s5hejerd96a.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--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.