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), sizeof(struct bttv_buffer),
fh); fh);
set_tvnorm(btv,btv->tvnorm); set_tvnorm(btv,btv->tvnorm);
set_input(btv, btv->input, btv->tvnorm);
btv->users++; btv->users++;
@ -3336,6 +3337,10 @@ static int bttv_release(struct inode *inode, struct file *file)
btv->users--; btv->users--;
bttv_field_count(btv); bttv_field_count(btv);
if (!btv->users)
audio_mute(btv, 1);
return 0; return 0;
} }