Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137874
b: refs/heads/master
c: bf510ac
h: refs/heads/master
v: v3
  • Loading branch information
Douglas Schilling Landgraf authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent b84fb1d commit bf8668d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: df39ca6437410b9428ebd3ce30fcde193782410d
refs/heads/master: bf510ac380c0e5aac813455fdf7364613cf75b72
4 changes: 3 additions & 1 deletion trunk/drivers/media/video/em28xx/em28xx-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@ static int snd_em28xx_capture_open(struct snd_pcm_substream *substream)
dprintk("changing alternate number to 7\n");
}

mutex_lock(&dev->lock);
dev->adev.users++;
mutex_unlock(&dev->lock);

snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
dev->adev.capture_pcm_substream = substream;
Expand All @@ -328,12 +330,12 @@ static int snd_em28xx_capture_open(struct snd_pcm_substream *substream)
static int snd_em28xx_pcm_close(struct snd_pcm_substream *substream)
{
struct em28xx *dev = snd_pcm_substream_chip(substream);
dev->adev.users--;

dprintk("closing device\n");

dev->mute = 1;
mutex_lock(&dev->lock);
dev->adev.users--;
em28xx_audio_analog_set(dev);
mutex_unlock(&dev->lock);

Expand Down

0 comments on commit bf8668d

Please sign in to comment.