All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: ASoC: pxa-pcm-lib: initialize DMA channel to -1
@ 2010-02-28  2:42 Daniel Mack
  2010-03-20 15:47 ` Daniel Mack
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Mack @ 2010-02-28  2:42 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Nicolas Pitre, Liam Girdwood

This fixes a warning ("pxa_free_dma: trying to free channel 0 which is
already freed") when a device was opened but the hw_params() call
failed.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Nicolas Pitre <nico@marvell.com>
---
 sound/arm/pxa2xx-pcm-lib.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/arm/pxa2xx-pcm-lib.c b/sound/arm/pxa2xx-pcm-lib.c
index 743ac6a..fd51fa8 100644
--- a/sound/arm/pxa2xx-pcm-lib.c
+++ b/sound/arm/pxa2xx-pcm-lib.c
@@ -205,6 +205,7 @@ int __pxa2xx_pcm_open(struct snd_pcm_substream *substream)
 	if (!rtd->dma_desc_array)
 		goto err1;
 
+	rtd->dma_ch = -1;
 	runtime->private_data = rtd;
 	return 0;
 
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ALSA: ASoC: pxa-pcm-lib: initialize DMA channel to -1
  2010-02-28  2:42 [PATCH] ALSA: ASoC: pxa-pcm-lib: initialize DMA channel to -1 Daniel Mack
@ 2010-03-20 15:47 ` Daniel Mack
  2010-03-20 16:34   ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Mack @ 2010-03-20 15:47 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Nicolas Pitre, Liam Girdwood

Any oppinion about this one?

(Sorry for the clock skew - the virtual machine I did this in lives in
 its own world)

On Sun, Feb 28, 2010 at 10:42:38AM +0800, Daniel Mack wrote:
> This fixes a warning ("pxa_free_dma: trying to free channel 0 which is
> already freed") when a device was opened but the hw_params() call
> failed.
> 
> Signed-off-by: Daniel Mack <daniel@caiaq.de>
> Cc: Liam Girdwood <lrg@slimlogic.co.uk>
> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
> Cc: Nicolas Pitre <nico@marvell.com>
> ---
>  sound/arm/pxa2xx-pcm-lib.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/sound/arm/pxa2xx-pcm-lib.c b/sound/arm/pxa2xx-pcm-lib.c
> index 743ac6a..fd51fa8 100644
> --- a/sound/arm/pxa2xx-pcm-lib.c
> +++ b/sound/arm/pxa2xx-pcm-lib.c
> @@ -205,6 +205,7 @@ int __pxa2xx_pcm_open(struct snd_pcm_substream *substream)
>  	if (!rtd->dma_desc_array)
>  		goto err1;
>  
> +	rtd->dma_ch = -1;
>  	runtime->private_data = rtd;
>  	return 0;
>  
> -- 
> 1.6.3.3
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ALSA: ASoC: pxa-pcm-lib: initialize DMA channel to -1
  2010-03-20 15:47 ` Daniel Mack
@ 2010-03-20 16:34   ` Mark Brown
  2010-03-22  8:55     ` Liam Girdwood
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2010-03-20 16:34 UTC (permalink / raw)
  To: Daniel Mack; +Cc: alsa-devel, Nicolas Pitre, Liam Girdwood

On Sat, Mar 20, 2010 at 04:47:15PM +0100, Daniel Mack wrote:
> Any oppinion about this one?

It's probably OK, but I'll wait for Liam.

> (Sorry for the clock skew - the virtual machine I did this in lives in
>  its own world)

Your clock skew buries it in mail folders.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ALSA: ASoC: pxa-pcm-lib: initialize DMA channel to -1
  2010-03-20 16:34   ` Mark Brown
@ 2010-03-22  8:55     ` Liam Girdwood
  0 siblings, 0 replies; 4+ messages in thread
From: Liam Girdwood @ 2010-03-22  8:55 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, Nicolas Pitre

On Sat, 2010-03-20 at 16:34 +0000, Mark Brown wrote:
> On Sat, Mar 20, 2010 at 04:47:15PM +0100, Daniel Mack wrote:
> > Any oppinion about this one?
> 
> It's probably OK, but I'll wait for Liam.
> 
> > (Sorry for the clock skew - the virtual machine I did this in lives in
> >  its own world)
> 
> Your clock skew buries it in mail folders.

That maybe why I missed it.

Acked by: Liam Girdwood <lrg@slimlogic.co.uk>

-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-22  8:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-28  2:42 [PATCH] ALSA: ASoC: pxa-pcm-lib: initialize DMA channel to -1 Daniel Mack
2010-03-20 15:47 ` Daniel Mack
2010-03-20 16:34   ` Mark Brown
2010-03-22  8:55     ` Liam Girdwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.