Commit 37f9619d authored by Adam M. Dutko's avatar Adam M. Dutko Committed by Mauro Carvalho Chehab

[media] TM6000: alsa: Clean up kernel coding style errors

There were several coding style errors as reported by checkpatch.pl. This
patch should fix those errors with the single exception of the open square
bracket issue on line 45.

[mchehab@redhat.com: Fix a merge conflict]
Signed-off-by: default avatarAdam M. Dutko <dutko.adam@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 51b6d717
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <asm/delay.h> #include <linux/delay.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/pcm.h> #include <sound/pcm.h>
#include <sound/pcm_params.h> #include <sound/pcm_params.h>
...@@ -84,7 +84,6 @@ static int _tm6000_start_audio_dma(struct snd_tm6000_card *chip) ...@@ -84,7 +84,6 @@ static int _tm6000_start_audio_dma(struct snd_tm6000_card *chip)
tm6000_set_audio_bitrate(core, 48000); tm6000_set_audio_bitrate(core, 48000);
return 0; return 0;
} }
...@@ -123,6 +122,7 @@ static int dsp_buffer_alloc(struct snd_pcm_substream *substream, int size) ...@@ -123,6 +122,7 @@ static int dsp_buffer_alloc(struct snd_pcm_substream *substream, int size)
if (substream->runtime->dma_area) { if (substream->runtime->dma_area) {
if (substream->runtime->dma_bytes > size) if (substream->runtime->dma_bytes > size)
return 0; return 0;
dsp_buffer_free(substream); dsp_buffer_free(substream);
} }
...@@ -152,9 +152,9 @@ static struct snd_pcm_hardware snd_tm6000_digital_hw = { ...@@ -152,9 +152,9 @@ static struct snd_pcm_hardware snd_tm6000_digital_hw = {
SNDRV_PCM_INFO_MMAP_VALID, SNDRV_PCM_INFO_MMAP_VALID,
.formats = SNDRV_PCM_FMTBIT_S16_LE, .formats = SNDRV_PCM_FMTBIT_S16_LE,
.rates = SNDRV_PCM_RATE_CONTINUOUS, .rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 48000, .rate_min = 48000,
.rate_max = 48000, .rate_max = 48000,
.channels_min = 2, .channels_min = 2,
.channels_max = 2, .channels_max = 2,
.period_bytes_min = 64, .period_bytes_min = 64,
...@@ -457,7 +457,7 @@ int tm6000_audio_init(struct tm6000_core *dev) ...@@ -457,7 +457,7 @@ int tm6000_audio_init(struct tm6000_core *dev)
if (rc < 0) if (rc < 0)
goto error_chip; goto error_chip;
dprintk(1,"Registered audio driver for %s\n", card->longname); dprintk(1, "Registered audio driver for %s\n", card->longname);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment