Skip to content

Commit

Permalink
V4L/DVB (10555): em28xx: CodingStyle fixes
Browse files Browse the repository at this point in the history
Coding style fixes for recent changesets in em28xx.

Signed-off-by: Nicola Soranzo <nsoranzo@tiscali.it>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Nicola Soranzo authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 2ba5889 commit 55bf0e7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions drivers/media/video/em28xx/em28xx-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,12 @@ static int em28xx_cmd(struct em28xx *dev, int cmd, int arg)

switch (cmd) {
case EM28XX_CAPTURE_STREAM_EN:
if (dev->adev.capture_stream == STREAM_OFF && arg == EM28XX_START_AUDIO) {
if (dev->adev.capture_stream == STREAM_OFF &&
arg == EM28XX_START_AUDIO) {
dev->adev.capture_stream = STREAM_ON;
em28xx_init_audio_isoc(dev);
} else if (dev->adev.capture_stream == STREAM_ON && arg == EM28XX_STOP_AUDIO) {
} else if (dev->adev.capture_stream == STREAM_ON &&
arg == EM28XX_STOP_AUDIO) {
dev->adev.capture_stream = STREAM_OFF;
em28xx_deinit_isoc_audio(dev);
} else {
Expand Down Expand Up @@ -385,8 +387,8 @@ static int snd_em28xx_capture_trigger(struct snd_pcm_substream *substream,
struct em28xx *dev = snd_pcm_substream_chip(substream);
int retval;

dprintk("Should %s capture\n", (cmd == SNDRV_PCM_TRIGGER_START)?
"start": "stop");
dprintk("Should %s capture\n", (cmd == SNDRV_PCM_TRIGGER_START) ?
"start" : "stop");

spin_lock(&dev->adev.slock);
switch (cmd) {
Expand Down

0 comments on commit 55bf0e7

Please sign in to comment.