2011-05-26 10:36:18

by Nicolas Ferre

[permalink] [raw]
Subject: sound/trivial: some little typo and little fix

Hi,

This is a tiny patch series with two typos and one error path fix.
More interesting stuff will come ;-)

Best regards,
--
Nicolas Ferre


2011-05-26 11:05:23

by Liam Girdwood

[permalink] [raw]
Subject: Re: [PATCH 1/3] sound/atmel-pcm: trivial: typo in debug comment

On 26/05/11 12:44, Nicolas Ferre wrote:
> Signed-off-by: Nicolas Ferre <[email protected]>
> ---

All

Acked-by: Liam Girdwood <[email protected]>

2011-05-26 10:36:19

by Nicolas Ferre

[permalink] [raw]
Subject: [PATCH 1/3] sound/atmel-pcm: trivial: typo in debug comment

Signed-off-by: Nicolas Ferre <[email protected]>
---
sound/soc/atmel/atmel-pcm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/atmel/atmel-pcm.c b/sound/soc/atmel/atmel-pcm.c
index d0e7532..51dde4e 100644
--- a/sound/soc/atmel/atmel-pcm.c
+++ b/sound/soc/atmel/atmel-pcm.c
@@ -382,7 +382,7 @@ static int atmel_pcm_new(struct snd_card *card,
}

if (dai->driver->capture.channels_min) {
- pr_debug("at32-pcm:"
+ pr_debug("atmel-pcm:"
"Allocating PCM capture DMA buffer\n");
ret = atmel_pcm_preallocate_dma_buffer(pcm,
SNDRV_PCM_STREAM_CAPTURE);
--
1.7.3

2011-05-26 10:36:17

by Nicolas Ferre

[permalink] [raw]
Subject: [PATCH 2/3] sound/atmel-pcm: trivial: typo in atmel_pcm_dma_params strucutre comment

Signed-off-by: Nicolas Ferre <[email protected]>
---
sound/soc/atmel/atmel-pcm.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/atmel/atmel-pcm.h b/sound/soc/atmel/atmel-pcm.h
index 2597329..5e0a95e 100644
--- a/sound/soc/atmel/atmel-pcm.h
+++ b/sound/soc/atmel/atmel-pcm.h
@@ -60,7 +60,7 @@ struct atmel_ssc_mask {
* This structure, shared between the PCM driver and the interface,
* contains all information required by the PCM driver to perform the
* PDC DMA operation. All fields except dma_intr_handler() are initialized
- * by the interface. The dms_intr_handler() pointer is set by the PCM
+ * by the interface. The dma_intr_handler() pointer is set by the PCM
* driver and called by the interface SSC interrupt handler if it is
* non-NULL.
*/
--
1.7.3

2011-05-26 10:36:18

by Nicolas Ferre

[permalink] [raw]
Subject: [PATCH 3/3] sound: atmel_ssc_dai: fix ssc error path

We do not have to free a resource that is not allocated yet.

Signed-off-by: Nicolas Ferre <[email protected]>
---
sound/soc/atmel/atmel_ssc_dai.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
index 7fbfa05..a7a7bbc 100644
--- a/sound/soc/atmel/atmel_ssc_dai.c
+++ b/sound/soc/atmel/atmel_ssc_dai.c
@@ -838,10 +838,8 @@ int atmel_ssc_set_audio(int ssc_id)
}

ssc_pdev = platform_device_alloc("atmel-ssc-dai", ssc_id);
- if (!ssc_pdev) {
- ssc_free(ssc);
+ if (!ssc_pdev)
return -ENOMEM;
- }

/* If we can grab the SSC briefly to parent the DAI device off it */
ssc = ssc_request(ssc_id);
--
1.7.3

2011-05-26 14:07:48

by Mark Brown

[permalink] [raw]
Subject: Re: sound/trivial: some little typo and little fix

On Thu, May 26, 2011 at 01:44:09PM +0200, Nicolas Ferre wrote:
> Hi,
>
> This is a tiny patch series with two typos and one error path fix.
> More interesting stuff will come ;-)

Applied all, thanks.

Please do try to use subject lines for your patches which are consistent
with the rest of the subsystem - it makes them much easier to apply.