Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137872
b: refs/heads/master
c: c744dff
h: refs/heads/master
v: v3
  • Loading branch information
Robert Krakora authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 1030877 commit eb5a95e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 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: aa5a1821859c9c2915bc00e79f6e01e619df6e8f
refs/heads/master: c744dff260e9efb1080d1e823e588f85176a057b
12 changes: 1 addition & 11 deletions trunk/drivers/media/video/em28xx/em28xx-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ static void em28xx_audio_isocirq(struct urb *urb)
}
urb->status = 0;

if (dev->adev.shutdown)
return;

status = usb_submit_urb(urb, GFP_ATOMIC);
if (status < 0) {
em28xx_errdev("resubmit of audio urb failed (error=%i)\n",
Expand Down Expand Up @@ -340,13 +337,6 @@ static int snd_em28xx_pcm_close(struct snd_pcm_substream *substream)
em28xx_audio_analog_set(dev);
mutex_unlock(&dev->lock);

if (dev->adev.users == 0 && dev->adev.shutdown == 1) {
dprintk("audio users: %d\n", dev->adev.users);
dprintk("disabling audio stream!\n");
dev->adev.shutdown = 0;
dprintk("released lock\n");
em28xx_cmd(dev, EM28XX_CAPTURE_STREAM_EN, 0);
}
return 0;
}

Expand Down Expand Up @@ -399,7 +389,7 @@ static int snd_em28xx_capture_trigger(struct snd_pcm_substream *substream,
em28xx_cmd(dev, EM28XX_CAPTURE_STREAM_EN, 1);
return 0;
case SNDRV_PCM_TRIGGER_STOP:
dev->adev.shutdown = 1;
em28xx_cmd(dev, EM28XX_CAPTURE_STREAM_EN, 0);
return 0;
default:
return -EINVAL;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/em28xx/em28xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ struct em28xx_audio {
unsigned int hwptr_done_capture;
struct snd_card *sndcard;

int users, shutdown;
int users;
enum em28xx_stream_state capture_stream;
spinlock_t slock;
};
Expand Down

0 comments on commit eb5a95e

Please sign in to comment.