2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 12:43:55 +08:00

V4L/DVB (8627): Fix mute on bttv driver

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2008-08-05 10:12:35 -03:00 committed by Mauro Carvalho Chehab
parent 8f2b7b7060
commit b46a9c8b7a

View File

@ -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;
}