mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
V4L/DVB (8627): Fix mute on bttv driver
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
8f2b7b7060
commit
b46a9c8b7a
@ -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++;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user