Skip to content

Commit

Permalink
V4L/DVB (8627): Fix mute on bttv driver
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent 8f2b7b7 commit b46a9c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/media/video/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -3275,6 +3275,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++;

Expand Down Expand Up @@ -3336,6 +3337,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;
}

Expand Down

0 comments on commit b46a9c8

Please sign in to comment.