[alsa-devel] [PATCH v4 5/6] core: add support for compress_offload

Vinod Koul vinod.koul at linux.intel.com
Thu Dec 22 09:48:52 CET 2011


On Thu, 2011-12-22 at 09:44 +0100, Takashi Iwai wrote:
> 
> You can use WARN() or snd_BUG_ON().
But WARN or snd_BUG_ON will continue execution and....
So better log it and return error, right?
> 
> > Only question is in these scenarios this is core corruption so what
> > would be the apt error code to use?
> 
> Well, there is no standard definition.  Just use a sensible errno that
> will abort the user-space appropriately (i.e. not like EPIPE).  Even
> -EFAULT would be OK, I think.
I like EFAULT

-- 
~Vinod



More information about the Alsa-devel mailing list