Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61333
b: refs/heads/master
c: b784e52
h: refs/heads/master
i:
  61331: e74fa09
v: v3
  • Loading branch information
Rafael Bilski authored and Mauro Carvalho Chehab committed Jul 18, 2007
1 parent b11c9cd commit 9f5f355
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aac0ca6a8b84541b28af9d18d8b84f90653ce0d0
refs/heads/master: b784e526a8333db57d1b9f385a12553066bdba64
8 changes: 8 additions & 0 deletions trunk/drivers/media/video/saa7134/saa7134-empress.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ static int ts_open(struct inode *inode, struct file *file)
if (dev->empress_users)
goto done_up;

/* Unmute audio */
saa_writeb(SAA7134_AUDIO_MUTE_CTRL,
saa_readb(SAA7134_AUDIO_MUTE_CTRL) & ~(1 << 6));

dev->empress_users++;
file->private_data = dev;
err = 0;
Expand All @@ -121,6 +125,10 @@ static int ts_release(struct inode *inode, struct file *file)
/* stop the encoder */
ts_reset_encoder(dev);

/* Mute audio */
saa_writeb(SAA7134_AUDIO_MUTE_CTRL,
saa_readb(SAA7134_AUDIO_MUTE_CTRL) | (1 << 6));

mutex_unlock(&dev->empress_tsq.lock);
return 0;
}
Expand Down

0 comments on commit 9f5f355

Please sign in to comment.