[alsa-devel] race conditions in alsa core

Trent Piepho xyzzy at speakeasy.org
Mon Sep 24 19:54:34 CEST 2007

On Mon, 24 Sep 2007, Krzysztof Helt wrote:
> On Sun, 23 Sep 2007 03:14:47 -0700 (PDT)
> Trent Piepho <xyzzy at speakeasy.org> wrote:
> > My test program will call the HW_PARAMS ioctl twice from different threads
> > running at the same time.  The first call will ask for the maximum number of
> > periods with minimum size, the second call for the minimum number of periods
> > of maximum size.
> >
> I cannot compile your test_hwparams.c. The local.h is missing.

You must have the alsa-lib source to compile it, that is where local.h
comes from.  Headers for using the alsa devices directly aren't provided
from any other place.

gcc -I /path/to/alsa-lib/include -pthread test_hwparams.c

More information about the Alsa-devel mailing list