aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-08-05 09:12:35 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:36:47 -0400
commitb46a9c8b7a8a77f28773816fd2afa1186743457d (patch)
tree58714629b18d50f5c49b448f657fbabdda5f2e9f
parent8f2b7b70600212f8c809a7bc2d17d33561842440 (diff)
V4L/DVB (8627): Fix mute on bttv driver
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/bt8xx/bttv-driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c
index c3526d0258f8..035a58d1aaa4 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -3275,6 +3275,7 @@ static int bttv_open(struct inode *inode, struct file *file)
3275 sizeof(struct bttv_buffer), 3275 sizeof(struct bttv_buffer),
3276 fh); 3276 fh);
3277 set_tvnorm(btv,btv->tvnorm); 3277 set_tvnorm(btv,btv->tvnorm);
3278 set_input(btv, btv->input, btv->tvnorm);
3278 3279
3279 btv->users++; 3280 btv->users++;
3280 3281
@@ -3336,6 +3337,10 @@ static int bttv_release(struct inode *inode, struct file *file)
3336 3337
3337 btv->users--; 3338 btv->users--;
3338 bttv_field_count(btv); 3339 bttv_field_count(btv);
3340
3341 if (!btv->users)
3342 audio_mute(btv, 1);
3343
3339 return 0; 3344 return 0;
3340} 3345}
3341 3346