From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH] ASoC: sn95031: Fix the logic to find free channel Date: Sun, 4 Sep 2011 08:54:15 -0700 Message-ID: <20110904155414.GB21528@opensource.wolfsonmicro.com> References: <1315028507.2268.1.camel@phoenix> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource2.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id 6E009103822 for ; Sun, 4 Sep 2011 17:54:19 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1315028507.2268.1.camel@phoenix> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Axel Lin Cc: Vinod Koul , alsa-devel@alsa-project.org, Harsha Priya , linux-kernel@vger.kernel.org, Liam Girdwood List-Id: alsa-devel@alsa-project.org On Sat, Sep 03, 2011 at 01:41:47PM +0800, Axel Lin wrote: > 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. Applied, thanks.