Re: [PATCH] docs: sound: kernel-api: writing-an-alsa-driver.rst: polishing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 06 Apr 2023 10:13:44 +0200,
Oswald Buddenhagen wrote:
> 
> On Thu, Apr 06, 2023 at 09:56:06AM +0200, Takashi Iwai wrote:
> > No, the point is that, if an irq handler misses the multiple period
> > updates, it has to handle the situation in a single shot, and the
> > offset gets corrected to the value within the period size;
> > 
> i know. my point is that if that happens, something must have gone
> more or less terribly wrong already, and we should be thinking about
> how to prevent that, rather than how to "reliably" paper over the
> problem. but i suppose we can give the hardware some slack ... if more
> than two periods are configured.

You can't prevent it perfectly.  The execution of an irq handler may
be delayed by various reasons, and whether it happens or not can't be
deterministic.  The same driver code and the configuration might not
work on a slower machine, too.  So you'll still need to handle such
errors in a proper manner.


thanks,

Takashi



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux