mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 02:01:29 +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),
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user