ASoC: sn95031: Fix the logic to find free channel
In the case of no free channel available, current implementation returns 0 instead of negative errno. This patch fixes the logic to return -EINVAL if no free channel available. Signed-off-by: NAxel Lin <axel.lin@gmail.com> Acked-by: NVinod Koul <vinod.koul@linux.intel.com> Acked-by: NLiam Girdwood <lrg@ti.com> Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Showing
想要评论请 注册 或 登录