All of lore.kernel.org
 help / color / mirror / Atom feed
* Alsa triggering methods
@ 2015-04-29 15:24 Andy Ng
  2015-05-06 11:05 ` Vinod Koul
  2015-05-07 13:38 ` Clemens Ladisch
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Ng @ 2015-04-29 15:24 UTC (permalink / raw)
  To: alsa-devel

Hi,

I am working on a ALSA card driver that handles a DSP instance. The
problem I have is that the triggering mechanism in ALSA to start a PCM
has the interrupts disabled, and my dsp framework is actually
acknowledging the start trigger with an event after 50 microseconds
time that I can't handle because the IRQs are disabled.

Is there any way when the trigger mechanism goes down to the card to
be able to handle any acknowledgements what will happen within a sort
period of time.

I have seen bespoke triggering method but not sure if everyone is using it.

Any ideas would be helpful.

Best regards,
Andreas

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Alsa triggering methods
  2015-04-29 15:24 Alsa triggering methods Andy Ng
@ 2015-05-06 11:05 ` Vinod Koul
  2015-05-07 13:38 ` Clemens Ladisch
  1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2015-05-06 11:05 UTC (permalink / raw)
  To: Andy Ng; +Cc: alsa-devel

On Wed, Apr 29, 2015 at 04:24:09PM +0100, Andy Ng wrote:
> Hi,
> 
> I am working on a ALSA card driver that handles a DSP instance. The
> problem I have is that the triggering mechanism in ALSA to start a PCM
> has the interrupts disabled, and my dsp framework is actually
> acknowledging the start trigger with an event after 50 microseconds
> time that I can't handle because the IRQs are disabled.
> 
> Is there any way when the trigger mechanism goes down to the card to
> be able to handle any acknowledgements what will happen within a sort
> period of time.
> 
> I have seen bespoke triggering method but not sure if everyone is using it.
> 
> Any ideas would be helpful.
trigger can be nonatomic too, you can set nonatomic = true for your pcms

-- 
~Vinod

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Alsa triggering methods
  2015-04-29 15:24 Alsa triggering methods Andy Ng
  2015-05-06 11:05 ` Vinod Koul
@ 2015-05-07 13:38 ` Clemens Ladisch
  1 sibling, 0 replies; 3+ messages in thread
From: Clemens Ladisch @ 2015-05-07 13:38 UTC (permalink / raw)
  To: Andy Ng, alsa-devel

Andy Ng wrote:
> I am working on a ALSA card driver that handles a DSP instance. The
> problem I have is that the triggering mechanism in ALSA to start a PCM
> has the interrupts disabled, and my dsp framework is actually
> acknowledging the start trigger with an event after 50 microseconds
> time that I can't handle because the IRQs are disabled.

Why must you handle the ACK interrupt from inside the trigger?


Regards,
Clemens

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-07 13:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-29 15:24 Alsa triggering methods Andy Ng
2015-05-06 11:05 ` Vinod Koul
2015-05-07 13:38 ` Clemens Ladisch

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.