* Re: [alsa-cvslog] CVS: alsa-kernel/core pcm_native.c,1.102,1.103
[not found] <E1BuSw5-0008Ra-PX@sc8-pr-cvs1.sourceforge.net>
@ 2004-08-10 22:48 ` James Courtier-Dutton
0 siblings, 0 replies; only message in thread
From: James Courtier-Dutton @ 2004-08-10 22:48 UTC (permalink / raw)
To: ALSA development
There is a bug in this patch!
Jaroslav Kysela wrote:
> Update of /cvsroot/alsa/alsa-kernel/core
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32435
>
> Modified Files:
> pcm_native.c
> Log Message:
> Serialize runtime->status->state access
>
> Index: pcm_native.c
> ===================================================================
> RCS file: /cvsroot/alsa/alsa-kernel/core/pcm_native.c,v
> retrieving revision 1.102
> retrieving revision 1.103
> diff -u -r1.102 -r1.103
> --- pcm_native.c 27 Jul 2004 12:28:36 -0000 1.102
> +++ pcm_native.c 10 Aug 2004 09:28:45 -0000 1.103
<snip>
> @@ -473,11 +479,16 @@
> static int snd_pcm_sw_params(snd_pcm_substream_t * substream, snd_pcm_sw_params_t *params)
> {
> snd_pcm_runtime_t *runtime;
> +
> snd_assert(substream != NULL, return -ENXIO);
> runtime = substream->runtime;
> snd_assert(runtime != NULL, return -ENXIO);
> - if (runtime->status->state == SNDRV_PCM_STATE_OPEN)
The following line should be "lock" and not "unlock"
> + snd_pcm_stream_unlock_irq(substream);
> + if (runtime->status->state == SNDRV_PCM_STATE_OPEN) {
> + snd_pcm_stream_unlock_irq(substream);
> return -EBADFD;
> + }
> + snd_pcm_stream_unlock_irq(substream);
>
> if (params->tstamp_mode > SNDRV_PCM_TSTAMP_LAST)
> return -EINVAL;
<snip>
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-10 22:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E1BuSw5-0008Ra-PX@sc8-pr-cvs1.sourceforge.net>
2004-08-10 22:48 ` [alsa-cvslog] CVS: alsa-kernel/core pcm_native.c,1.102,1.103 James Courtier-Dutton
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.