* Atomic operators in alsa driver
@ 2004-08-11 4:51 Eliot Blennerhassett
2004-08-11 13:19 ` Jaroslav Kysela
0 siblings, 1 reply; 3+ messages in thread
From: Eliot Blennerhassett @ 2004-08-11 4:51 UTC (permalink / raw)
To: alsa-devel
A question to clarify which 'operators' are atomic i.e. inside spinlock.
As far as I can make out from Takashi's Writing an Alsa driver, Chapter 5,
section "Operators" (am I correct?)
Atomic:
trigger callback
pointer callback
Non-atomic:
open callback
close callback
ioctl callback
hw_params callback
hw_free callback
prepare callback
copy and silence callbacks
ack callback
page callback
This could be clarified explicitly in the section "Atomicity"
thanks
Eliot
Eliot Blennerhassett
AudioScience Inc.
--
Junk footer beyond this point. Read at your own risk.
-------------------------------------------------------------
Sign up for ICQmail at http://www.icq.com/icqmail/signup.html
-------------------------------------------------------
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] 3+ messages in thread
* Re: Atomic operators in alsa driver
2004-08-11 4:51 Atomic operators in alsa driver Eliot Blennerhassett
@ 2004-08-11 13:19 ` Jaroslav Kysela
2004-08-16 10:34 ` Takashi Iwai
0 siblings, 1 reply; 3+ messages in thread
From: Jaroslav Kysela @ 2004-08-11 13:19 UTC (permalink / raw)
To: Eliot Blennerhassett; +Cc: alsa-devel
On Tue, 10 Aug 2004, Eliot Blennerhassett wrote:
> A question to clarify which 'operators' are atomic i.e. inside spinlock.
>
> As far as I can make out from Takashi's Writing an Alsa driver, Chapter 5,
> section "Operators" (am I correct?)
>
> Atomic:
> trigger callback
> pointer callback
>
> Non-atomic:
> open callback
> close callback
> ioctl callback
> hw_params callback
> hw_free callback
> prepare callback
> copy and silence callbacks
> ack callback
> page callback
It's correct.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------
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] 3+ messages in thread
* Re: Atomic operators in alsa driver
2004-08-11 13:19 ` Jaroslav Kysela
@ 2004-08-16 10:34 ` Takashi Iwai
0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2004-08-16 10:34 UTC (permalink / raw)
To: Jaroslav Kysela; +Cc: Eliot Blennerhassett, alsa-devel
At Wed, 11 Aug 2004 15:19:20 +0200 (CEST),
Jaroslav wrote:
>
> On Tue, 10 Aug 2004, Eliot Blennerhassett wrote:
>
> > A question to clarify which 'operators' are atomic i.e. inside spinlock.
> >
> > As far as I can make out from Takashi's Writing an Alsa driver, Chapter 5,
> > section "Operators" (am I correct?)
> >
> > Atomic:
> > trigger callback
> > pointer callback
> >
> > Non-atomic:
> > open callback
> > close callback
> > ioctl callback
> > hw_params callback
> > hw_free callback
> > prepare callback
> > copy and silence callbacks
> > ack callback
> > page callback
>
> It's correct.
In practice, ack callback is usually treated as atomic to get finer
processing of data transfer. For example, ack is called in the
pointer callback in pcm-indirect.h. But basically it can be
non-atomic, too.
Takashi
-------------------------------------------------------
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] 3+ messages in thread
end of thread, other threads:[~2004-08-16 10:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-11 4:51 Atomic operators in alsa driver Eliot Blennerhassett
2004-08-11 13:19 ` Jaroslav Kysela
2004-08-16 10:34 ` Takashi Iwai
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.