On Mon, Jun 20, 2016 at 09:51:28AM +0800, John Hsu wrote: > Is it better to separate this function to two case, one locked with > timeout and the other not? Do you have any suggestion about it? > Thank you. It should return the error code and the callers should handle it. We always have to know if we have the lock or not. regards, dan carpenter _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel