diff --git a/drivers/staging/line6/pcm.h b/drivers/staging/line6/pcm.h index 05f4ef3eced6401bbfe2b745e2ef4dae031e5580..55d8297dd3d9c5ff70572feb72e85e9a44b420d7 100644 --- a/drivers/staging/line6/pcm.h +++ b/drivers/staging/line6/pcm.h @@ -145,11 +145,6 @@ struct snd_line6_pcm { */ unsigned char *buffer_in; - /** - Temporary buffer index for playback. - */ - int index_out; - /** Previously captured frame (for software monitoring). */ diff --git a/drivers/staging/line6/playback.c b/drivers/staging/line6/playback.c index b17c0a7708dddbae8e9a72387e982263f0d1b280..9a51b92c09485a06234eabe3cdf8c4352ad8740b 100644 --- a/drivers/staging/line6/playback.c +++ b/drivers/staging/line6/playback.c @@ -192,13 +192,10 @@ static int submit_audio_out_urb(struct snd_line6_pcm *line6pcm) urb_frames = urb_size / bytes_per_frame; urb_out->transfer_buffer = line6pcm->buffer_out + - LINE6_ISO_PACKETS * line6pcm->max_packet_size * line6pcm->index_out; + index * LINE6_ISO_PACKETS * line6pcm->max_packet_size; urb_out->transfer_buffer_length = urb_size; urb_out->context = line6pcm; - if (++line6pcm->index_out == LINE6_ISO_BUFFERS) - line6pcm->index_out = 0; - if (test_bit(BIT_PCM_ALSA_PLAYBACK, &line6pcm->flags) && !test_bit(BIT_PAUSE_PLAYBACK, &line6pcm->flags)) { struct snd_pcm_runtime *runtime =