Corrections in alsa_dev's error handling

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

 



(bump)

In case this email didn't get noticed.

On Tue, Mar 12, 2013 at 6:17 PM, Nishant Rodrigues <nishantjr at gmail.com> wrote:
> Hi,
>
> I noticed a few issues with the pjmedia alsa audio device.
> I've fixed it in the atttached patch.
>
>  - Earlier an error (stream was suspended, interrupt, unknown) would
>    lead to a busy wait, maxing out the CPU.
>  - EPIPE, ESTRPIPE, EINTR and EAGAIN are handled by snd_pcm_recover.
>  - Other errors are ignored and we sleep for 100ms before snd_pcm_prepar-ing the
>    device and trying again. This is probably not the best way - we need an error
>    callback to handle things like devices being unplugged etc.
>  - The snd_pcm_prepare seems to recover from alsa 'Unknown error' returned by
>    alsa in snd_pcm_readi/writei.
>
>
> Thanks



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux