Re: [PATCH v2] ASoC: omap-pcm: Free dma buffers in case of error.

2012-04-25 Thread Jarkko Nikula
On 04/25/2012 05:02 AM, Oleg Matcovschi wrote:
 Change-Id: I4ba9de0de4681332539246ccc5e11a7a8fb32e79
 Signed-off-by: Oleg Matcovschi oleg.matcovs...@ti.com
 ---
 v1:
  initial revision
 v2:
  resending patch including maintainers
 
  sound/soc/omap/omap-pcm.c |4 
  1 files changed, 4 insertions(+), 0 deletions(-)
 
Acked-by: Jarkko Nikula jarkko.nik...@bitmer.com
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] ASoC: omap-pcm: Free dma buffers in case of error.

2012-04-25 Thread Mark Brown
On Tue, Apr 24, 2012 at 07:02:02PM -0700, Oleg Matcovschi wrote:
 Change-Id: I4ba9de0de4681332539246ccc5e11a7a8fb32e79
 Signed-off-by: Oleg Matcovschi oleg.matcovs...@ti.com

Don't include Change-Ids in upstream submissions, they only make sense
within whatever private development tree you are using.

Acked-by: Mark Brown broo...@opensource.wolfsonmicro.com


signature.asc
Description: Digital signature


Re: [PATCH v2] ASoC: omap-pcm: Free dma buffers in case of error.

2012-04-25 Thread Peter Ujfalusi
On 04/25/2012 05:02 AM, Oleg Matcovschi wrote:
 Change-Id: I4ba9de0de4681332539246ccc5e11a7a8fb32e79
 Signed-off-by: Oleg Matcovschi oleg.matcovs...@ti.com
 ---
 v1:
  initial revision
 v2:
  resending patch including maintainers
 
  sound/soc/omap/omap-pcm.c |4 
  1 files changed, 4 insertions(+), 0 deletions(-)

Acked-by: Peter Ujfalusi peter.ujfal...@ti.com
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] ASoC: omap-pcm: Free dma buffers in case of error.

2012-04-25 Thread Liam Girdwood
On Tue, 2012-04-24 at 19:02 -0700, Oleg Matcovschi wrote:
 Change-Id: I4ba9de0de4681332539246ccc5e11a7a8fb32e79
 Signed-off-by: Oleg Matcovschi oleg.matcovs...@ti.com
 ---
 v1:
  initial revision
 v2:
  resending patch including maintainers
 
  sound/soc/omap/omap-pcm.c |4 
  1 files changed, 4 insertions(+), 0 deletions(-)
 

Now applied for 3.4 with change ID removed.

Thanks

Liam

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v2] ASoC: omap-pcm: Free dma buffers in case of error.

2012-04-24 Thread Oleg Matcovschi
Change-Id: I4ba9de0de4681332539246ccc5e11a7a8fb32e79
Signed-off-by: Oleg Matcovschi oleg.matcovs...@ti.com
---
v1:
 initial revision
v2:
 resending patch including maintainers

 sound/soc/omap/omap-pcm.c |4 
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
index a2a464f..380a5bd 100644
--- a/sound/soc/omap/omap-pcm.c
+++ b/sound/soc/omap/omap-pcm.c
@@ -414,6 +414,10 @@ static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd)
}
 
 out:
+   /* free preallocated buffers in case of error */
+   if (ret)
+   omap_pcm_free_dma_buffers(pcm);
+
return ret;
 }
 
-- 
1.7.4.1

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html