* Re: [PATCH] Atmel/alsa: fix some code issues
[not found] ` <4C0CCCD6.9000809@atmel.com>
@ 2010-06-07 10:47 ` Wan ZongShun
2010-06-07 13:03 ` [PATCH] sound: atmel: trivial code cleanup Nicolas Ferre
0 siblings, 1 reply; 3+ messages in thread
From: Wan ZongShun @ 2010-06-07 10:47 UTC (permalink / raw)
To: Nicolas Ferre; +Cc: alsa-devel, Mark Brown
在 2010年6月7日 下午6:41,Nicolas Ferre <nicolas.ferre@atmel.com> 写道:
> Le 28/05/2010 04:27, Wan ZongShun :
>> Dear Nicolas,
>>
>> I am seeing the atmel codes as reference of my alsa driver programming.
>> Finding a few code issues, I make a patch to fix, thanks!
>
> After a brief review, I come back to this
>
>> Signed-off-by: Wan ZongShun<mcuos.com@gmail.com>
>>
>> ---
>> sound/soc/atmel/atmel-pcm.c | 2 +-
>> sound/soc/atmel/atmel_ssc_dai.c | 3 +--
>> 2 files changed, 2 insertions(+), 3 deletions(-)
>>
>> diff --git a/sound/soc/atmel/atmel-pcm.c b/sound/soc/atmel/atmel-pcm.c
>> index f6b3cc0..c69a8fb 100644
>> --- a/sound/soc/atmel/atmel-pcm.c
>> +++ b/sound/soc/atmel/atmel-pcm.c
>> @@ -478,7 +478,7 @@ struct snd_soc_platform atmel_soc_platform = {
>> .pcm_free = atmel_pcm_free_dma_buffers,
>> .suspend = atmel_pcm_suspend,
>> .resume = atmel_pcm_resume,
>> -};
>> +}
>
> Not ok for this. It is a structure declaration: we should keep the ";".
>
Okay, thanks!
>> EXPORT_SYMBOL_GPL(atmel_soc_platform);
>>
>> static int __init atmel_pcm_modinit(void)
>> diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
>> index 0b59806..4c44d13 100644
>> --- a/sound/soc/atmel/atmel_ssc_dai.c
>> +++ b/sound/soc/atmel/atmel_ssc_dai.c
>> @@ -549,7 +549,6 @@ static int atmel_ssc_hw_params(struct snd_pcm_substream
>> *substream,
>> printk(KERN_WARNING "atmel_ssc_dai: unsupported DAI format 0x%x\n",
>> ssc_p->daifmt);
>> return -EINVAL;
>> - break;
>
> Ok.
>
>> }
>> pr_debug("atmel_ssc_hw_params: "
>> "RCMR=%08x RFMR=%08x TCMR=%08x TFMR=%08x\n",
>> @@ -760,7 +759,7 @@ struct snd_soc_dai atmel_ssc_dai[NUM_SSC_DEVICES] = {
>> .private_data = &ssc_info[2],
>> },
>> #endif
>> -};
>> +}
>
> Not ok for this either. ditto.
>
>> EXPORT_SYMBOL_GPL(atmel_ssc_dai);
>>
>> static int __init atmel_ssc_modinit(void)
>
>
> --
> Nicolas Ferre
>
>
--
*linux-arm-kernel mailing list
mail addr:linux-arm-kernel@lists.infradead.org
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
* linux-arm-NUC900 mailing list
mail addr:NUC900@googlegroups.com
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuos.com@gmail.com
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] sound: atmel: trivial code cleanup
2010-06-07 10:47 ` [PATCH] Atmel/alsa: fix some code issues Wan ZongShun
@ 2010-06-07 13:03 ` Nicolas Ferre
2010-06-07 13:26 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Ferre @ 2010-06-07 13:03 UTC (permalink / raw)
To: alsa-devel, broonie; +Cc: mcuos.com
From: Wan ZongShun <mcuos.com@gmail.com>
Remove break after return, it is not needed.
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
sound/soc/atmel/atmel_ssc_dai.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
index 0b59806..c85844d 100644
--- a/sound/soc/atmel/atmel_ssc_dai.c
+++ b/sound/soc/atmel/atmel_ssc_dai.c
@@ -549,7 +549,6 @@ static int atmel_ssc_hw_params(struct snd_pcm_substream *substream,
printk(KERN_WARNING "atmel_ssc_dai: unsupported DAI format 0x%x\n",
ssc_p->daifmt);
return -EINVAL;
- break;
}
pr_debug("atmel_ssc_hw_params: "
"RCMR=%08x RFMR=%08x TCMR=%08x TFMR=%08x\n",
--
1.5.6.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] sound: atmel: trivial code cleanup
2010-06-07 13:03 ` [PATCH] sound: atmel: trivial code cleanup Nicolas Ferre
@ 2010-06-07 13:26 ` Mark Brown
0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2010-06-07 13:26 UTC (permalink / raw)
To: Nicolas Ferre; +Cc: alsa-devel, mcuos.com
On Mon, Jun 07, 2010 at 03:03:40PM +0200, Nicolas Ferre wrote:
> From: Wan ZongShun <mcuos.com@gmail.com>
>
> Remove break after return, it is not needed.
>
> Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-07 13:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4BFF2A19.1050002@gmail.com>
[not found] ` <4C0CCCD6.9000809@atmel.com>
2010-06-07 10:47 ` [PATCH] Atmel/alsa: fix some code issues Wan ZongShun
2010-06-07 13:03 ` [PATCH] sound: atmel: trivial code cleanup Nicolas Ferre
2010-06-07 13:26 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).