From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH] ASoC: omap-pcm: Free dma buffers in case of error. Date: Fri, 20 Apr 2012 14:08:10 +0100 Message-ID: <20120420130810.GA20681@sirena.org.uk> References: <1334795870-5726-1-git-send-email-oleg.matcovschi@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: 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: "Ujfalusi, Peter" Cc: alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, Oleg Matcovschi List-Id: linux-omap@vger.kernel.org On Thu, Apr 19, 2012 at 07:00:55PM +0300, Ujfalusi, Peter wrote: > If the playback preallocation fails, or if only capture is supported > on the dai link > this is not needed. > It only applies if we have both playback and capture streams and the capture > preallocation fails. > Luckily the omap_pcm_free_dma_buffers() has internal checks for these cases... > Acked-by: Peter Ujfalusi Always CC maintainers on patches...