Atmel/alsa: fix some code issues
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 15 lines · 在 2010年6月7日 下午6:41,Nicolas Ferre <[email protected]> 写道:
Le 28/05/2010 04:27, Wan ZongShun :
Quoted 4 lines
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
Quoted 7 lines
Signed-off-by Wan ZongShun<[email protected]>---
sound/soc/atmel/atmel-pcm.c | 2 +-
sound/soc/atmel/atmel_ssc_dai.c | 3 +--2 files changed, 2 insertions(+), 3 deletions(-)
Quoted 13 lines
sound/soc/atmel/atmel-pcm.c struct snd_soc_platform atmel_soc_platform = { · line 481
Quoted 10 lines
sound/soc/atmel/atmel-pcm.c +1
-1@@ -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!
Quoted 37 lines
sound/soc/atmel/atmel_ssc_dai.c static int atmel_ssc_hw_params(struct snd_pcm_substream · line 553
Quoted 13 lines
sound/soc/atmel/atmel-pcm.c +0
-0EXPORT_SYMBOL_GPL(atmel_soc_platform); static int __init atmel_pcm_modinit(void)sound/soc/atmel/atmel_ssc_dai.c +0
-1@@ -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.
sound/soc/atmel/atmel_ssc_dai.c struct snd_soc_dai atmel_ssc_dai[NUM_SSC_DEVICES] = { · line 762
Quoted 9 lines
sound/soc/atmel/atmel_ssc_dai.c +0
-0}pr_debug("atmel_ssc_hw_params: "
"RCMR=%08x RFMR=%08x TCMR=%08x TFMR=%08x\n",sound/soc/atmel/atmel_ssc_dai.c +1
-1@@ -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.
sound/soc/atmel/atmel_ssc_dai.c struct snd_soc_dai atmel_ssc_dai[NUM_SSC_DEVICES] = { · line 765
Quoted 3 lines
sound/soc/atmel/atmel_ssc_dai.c +0
-0EXPORT_SYMBOL_GPL(atmel_ssc_dai); static int __init atmel_ssc_modinit(void)--
Nicolas Ferre
Signature · 14 lines
*linux-arm-kernel mailing list mail addr:[email protected] you can subscribe by: http://lists.infradead.org/mailman/listinfo/linux-arm-kernel * linux-arm-NUC900 mailing list mail addr:[email protected] main web: https://groups.google.com/group/NUC900 you can subscribe it by sending me mail: [email protected] _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 1/1 sound: atmel: trivial code cleanup
From: Wan ZongShun <[email protected]>
Remove break after return, it is not needed.
--- sound/soc/atmel/atmel_ssc_dai.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/atmel/atmel_ssc_dai.c +0 -1
@@ -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",
Signature · 1 line
1.5.6.5
Mark Brown
AppliedRe: [PATCH] sound: atmel: trivial code cleanup
Quoted 6 lines · Nicolas Ferre
From: Wan ZongShun <[email protected]>
Remove break after return, it is not needed.
Signed-off-by Wan ZongShun <[email protected]>Signed-off-by Nicolas Ferre <[email protected]>
Applied, thanks.