OSDN Git Service

pcm: Remove assert() from snd_pcm_hw_params_slave()
authorTakashi Iwai <tiwai@suse.de>
Thu, 21 May 2015 05:26:39 +0000 (07:26 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 21 May 2015 05:26:39 +0000 (07:26 +0200)
commit67f73b0fab466e780dcc0442e19894a1cbedc43b
tree832e1240e839bff1dc2bd5ee824e4d581cbd25a1
parentb4222f3fdc13f18fa621d6c6ff2fa6ed52e25de3
pcm: Remove assert() from snd_pcm_hw_params_slave()

Using assert() for non-fatal error checks is really brain-dead.
These are especially bad, as it hits even in the normal operation with
plugins and some h/w constraints.

Reported-by: Alan Horstmann <gineera@aspect135.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_params.c