Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130761
b: refs/heads/master
c: 53d12e5
h: refs/heads/master
i:
  130759: 1788990
v: v3
  • Loading branch information
Robert Krakora authored and Mauro Carvalho Chehab committed Jan 29, 2009
1 parent 9ae2de6 commit cf2a1cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: ba390f005573bdf6ab7fd78bb05119036c2ed539
refs/heads/master: 53d12e5a56934c31ca59f3b6f127e5a68e645fd2
9 changes: 8 additions & 1 deletion trunk/drivers/media/video/em28xx/em28xx-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ static int em28xx_isoc_audio_deinit(struct em28xx *dev)
usb_unlink_urb(dev->adev.urb[i]);
usb_free_urb(dev->adev.urb[i]);
dev->adev.urb[i] = NULL;

kfree(dev->adev.transfer_buffer[i]);
dev->adev.transfer_buffer[i] = NULL;
}

return 0;
Expand Down Expand Up @@ -389,11 +392,15 @@ static int snd_em28xx_capture_trigger(struct snd_pcm_substream *substream,
static snd_pcm_uframes_t snd_em28xx_capture_pointer(struct snd_pcm_substream
*substream)
{
struct em28xx *dev;
unsigned long flags;

struct em28xx *dev;
snd_pcm_uframes_t hwptr_done;

dev = snd_pcm_substream_chip(substream);
spin_lock_irqsave(&dev->adev.slock, flags);
hwptr_done = dev->adev.hwptr_done_capture;
spin_unlock_irqrestore(&dev->adev.slock, flags);

return hwptr_done;
}
Expand Down

0 comments on commit cf2a1cf

Please sign in to comment.