At Sat, 15 May 2004 23:37:47 +0200,
Giuliano Pochini wrote:
On Fri, 14 May 2004 12:37:46 +0200
Takashi Iwai [EMAIL PROTECTED] wrote:
prepare and trigger callbacks are already in irq-disabled.
i.e. you need only spin_lock() in them.
Does it mean that ALSA acquires the lock only
At Thu, 13 May 2004 20:57:51 +0200,
Giuliano Pochini wrote:
On Mon, 10 May 2004 17:08:49 +0200
Takashi Iwai [EMAIL PROTECTED] wrote:
prepare and trigger callbacks are already in irq-disabled.
i.e. you need only spin_lock() in them.
Does it mean that ALSA acquires the lock only when
On Mon, 10 May 2004 17:08:49 +0200
Takashi Iwai [EMAIL PROTECTED] wrote:
prepare and trigger callbacks are already in irq-disabled.
i.e. you need only spin_lock() in them.
Does it mean that ALSA acquires the lock only when it calls PCM callbacks,
that is trigger(), etc., are atomic only wrt
On 10-May-2004 Takashi Iwai wrote:
prepare and trigger callbacks are already in irq-disabled.
i.e. you need only spin_lock() in them. [...]
Fine. I moved SetSampleRate() from prepare() to the hw_params()
callback because it may need to reload the firmware.
--
Giuliano.
On 10-May-2004 Takashi Iwai wrote:
Some drivers use spin_lock_irq() a lot, while others always use
spin_lock_irqsave(). I can't see the difference. When it's safe
using the _irq() version ?
Only when you know that you are not in interrupt context.
also, not in the context which already
At Mon, 10 May 2004 16:51:24 +0200 (CEST),
Giuliano Pochini wrote:
On 10-May-2004 Takashi Iwai wrote:
Some drivers use spin_lock_irq() a lot, while others always use
spin_lock_irqsave(). I can't see the difference. When it's safe
using the _irq() version ?
Only when you know
Giuliano Pochini wrote:
Some drivers use spin_lock_irq() a lot, while others always use
spin_lock_irqsave(). I can't see the difference. When it's safe
using the _irq() version ?
Only when you know that you are not in interrupt context.
Regards,
Clemens
At Mon, 10 May 2004 10:31:07 +0200 (METDST),
Clemens Ladisch wrote:
Giuliano Pochini wrote:
Some drivers use spin_lock_irq() a lot, while others always use
spin_lock_irqsave(). I can't see the difference. When it's safe
using the _irq() version ?
Only when you know that you are not in
Some drivers use spin_lock_irq() a lot, while others always use
spin_lock_irqsave(). I can't see the difference. When it's safe using the
_irq() version ?
--
Giuliano.
---
This SF.Net email is sponsored by Sleepycat Software
Learn