Commit 7f66fe58 authored by Shawn Bohrer's avatar Shawn Bohrer Committed by Greg Kroah-Hartman

staging: line6: Fix checkpatch errors in playback.c

Signed-off-by: default avatarShawn Bohrer <shawn.bohrer@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 45af4977
...@@ -138,7 +138,8 @@ static int submit_audio_out_urb(struct snd_pcm_substream *substream) ...@@ -138,7 +138,8 @@ static int submit_audio_out_urb(struct snd_pcm_substream *substream)
} }
} }
if ((line6pcm->pos_out += urb_frames) >= runtime->buffer_size) line6pcm->pos_out += urb_frames;
if (line6pcm->pos_out >= runtime->buffer_size)
line6pcm->pos_out -= runtime->buffer_size; line6pcm->pos_out -= runtime->buffer_size;
urb_out->transfer_buffer_length = urb_size; urb_out->transfer_buffer_length = urb_size;
...@@ -281,7 +282,8 @@ static void audio_out_callback(struct urb *urb) ...@@ -281,7 +282,8 @@ static void audio_out_callback(struct urb *urb)
if (!shutdown) { if (!shutdown) {
submit_audio_out_urb(substream); submit_audio_out_urb(substream);
if ((line6pcm->bytes_out += length) >= line6pcm->period_out) { line6pcm->bytes_out += length;
if (line6pcm->bytes_out >= line6pcm->period_out) {
line6pcm->bytes_out -= line6pcm->period_out; line6pcm->bytes_out -= line6pcm->period_out;
snd_pcm_period_elapsed(substream); snd_pcm_period_elapsed(substream);
} }
......
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