Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281338
b: refs/heads/master
c: 153e387
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Hajnoczi authored and Greg Kroah-Hartman committed Dec 10, 2011
1 parent e93c8a3 commit 7c049cb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2f637ee42d4a60e1c3823beff3699354bd4400be
refs/heads/master: 153e38761d27f29edf436f11da3dbfb4fb8edcc1
5 changes: 0 additions & 5 deletions trunk/drivers/staging/line6/pcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*/
Expand Down
5 changes: 1 addition & 4 deletions trunk/drivers/staging/line6/playback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 7c049cb

Please sign in to comment.