aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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