All of lore.kernel.org
 help / color / mirror / Atom feed
* How to report error in _pointer function?
@ 2008-07-30 15:56 Timur Tabi
  2008-07-30 16:12 ` Takashi Iwai
  0 siblings, 1 reply; 10+ messages in thread
From: Timur Tabi @ 2008-07-30 15:56 UTC (permalink / raw)
  To: alsa-devel

In my driver, I can detect in the _pointer callback function whether
or not the DMA engine has actually started.  Sometimes, when I have a
programming error, the DMA will not start, so my _pointer function
calculates a crazy value for the current position.  The number it
returns causes ALSA to go haywire (see my post titled, "underrun!!!
(at least 1786051083.613 ms long)".

What is the best way to handle this?  Is there a way I can tell ALSA,
"hey, this is really screwed up, just abort playback and return an
error to the app"?

-- 
Timur Tabi
Linux kernel developer at Freescale

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

end of thread, other threads:[~2008-08-11 15:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-30 15:56 How to report error in _pointer function? Timur Tabi
2008-07-30 16:12 ` Takashi Iwai
2008-08-06 21:54   ` Timur Tabi
2008-08-07 16:29     ` Takashi Iwai
2008-08-07 18:59       ` Timur Tabi
2008-08-08 12:03         ` Takashi Iwai
2008-08-08 15:55           ` Timur Tabi
2008-08-08 22:26           ` Timur Tabi
2008-08-11  7:19             ` Takashi Iwai
2008-08-11 15:37               ` Timur Tabi

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.