提交 b46a9c8b 编写于 作者: M Mauro Carvalho Chehab 提交者: Mauro Carvalho Chehab

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

Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 8f2b7b70
...@@ -3275,6 +3275,7 @@ static int bttv_open(struct inode *inode, struct file *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) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册