diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-05 10:12:35 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-05 10:12:35 -0300 |
commit | 4fb662a69b9c53bd1f2f01bd045a6d944fd88209 (patch) | |
tree | e341ca1864ac427cd25d68f969cf01b75a4202e5 /linux/drivers/media/video/bt8xx | |
parent | c6779d4098c7b706d36cb85aa23dce766af181d1 (diff) | |
download | mediapointer-dvb-s2-4fb662a69b9c53bd1f2f01bd045a6d944fd88209.tar.gz mediapointer-dvb-s2-4fb662a69b9c53bd1f2f01bd045a6d944fd88209.tar.bz2 |
Fix mute on bttv driver
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/bt8xx')
-rw-r--r-- | linux/drivers/media/video/bt8xx/bttv-driver.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/video/bt8xx/bttv-driver.c b/linux/drivers/media/video/bt8xx/bttv-driver.c index d5cb13e40..012eeba5e 100644 --- a/linux/drivers/media/video/bt8xx/bttv-driver.c +++ b/linux/drivers/media/video/bt8xx/bttv-driver.c @@ -3296,6 +3296,7 @@ static int bttv_open(struct inode *inode, struct file *file) sizeof(struct bttv_buffer), fh); set_tvnorm(btv,btv->tvnorm); + set_input(btv, btv->input, btv->tvnorm); btv->users++; @@ -3357,6 +3358,10 @@ static int bttv_release(struct inode *inode, struct file *file) btv->users--; bttv_field_count(btv); + + if (!btv->users) + audio_mute(btv, 1); + return 0; } |