Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b46a9c8b authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

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

parent 8f2b7b70
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
}