diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-10-14 16:27:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-22 10:01:49 -0400 |
commit | 2f7362ef9bc9c41436c7f44212a2dcf12dddffbf (patch) | |
tree | cab5165cae681f19c923deac33ad1ebaf4888a84 /drivers/media | |
parent | 254d6eb1159f7398273fe35e7499f905a903f38d (diff) |
V4L/DVB (6348): ivtv: undo video mute when closing the radio
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-fileops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c index 24fcbb88e529..a200a8a95a2d 100644 --- a/drivers/media/video/ivtv/ivtv-fileops.c +++ b/drivers/media/video/ivtv/ivtv-fileops.c | |||
@@ -822,6 +822,11 @@ int ivtv_v4l2_close(struct inode *inode, struct file *filp) | |||
822 | crystal_freq.flags = 0; | 822 | crystal_freq.flags = 0; |
823 | ivtv_saa7115(itv, VIDIOC_INT_S_CRYSTAL_FREQ, &crystal_freq); | 823 | ivtv_saa7115(itv, VIDIOC_INT_S_CRYSTAL_FREQ, &crystal_freq); |
824 | } | 824 | } |
825 | if (atomic_read(&itv->capturing) > 0) { | ||
826 | /* Undo video mute */ | ||
827 | ivtv_vapi(itv, CX2341X_ENC_MUTE_VIDEO, 1, | ||
828 | itv->params.video_mute | (itv->params.video_mute_yuv << 8)); | ||
829 | } | ||
825 | /* Done! Unmute and continue. */ | 830 | /* Done! Unmute and continue. */ |
826 | ivtv_unmute(itv); | 831 | ivtv_unmute(itv); |
827 | ivtv_release_stream(s); | 832 | ivtv_release_stream(s); |