aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/wm8775.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2005-11-09 00:37:50 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:21 -0500
commitbf7e26ee5fce3eb1074ba3e1c8f265cb37c8451c (patch)
tree0cf97f1211b845fcbc1881646f4fd205d89b2c2b /drivers/media/video/wm8775.c
parent79436633dbced18aa348f8669ef507109f851303 (diff)
[PATCH] v4l: 810: vidioc log status is added to videodev2.h
- VIDIOC_LOG_STATUS is added to videodev2.h this can be enabled again in wm8775.c. Also use the v4l2 VIDIOC_S_FREQUENCY instead of VIDIOCSFREQ. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/wm8775.c')
-rw-r--r--drivers/media/video/wm8775.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/video/wm8775.c b/drivers/media/video/wm8775.c
index 5bd592673b94..7d90ae5a99bc 100644
--- a/drivers/media/video/wm8775.c
+++ b/drivers/media/video/wm8775.c
@@ -112,8 +112,13 @@ static int wm8775_command(struct i2c_client *client, unsigned int cmd,
112 state->muted = 0; 112 state->muted = 0;
113 break; 113 break;
114 114
115 case VIDIOC_LOG_STATUS:
116 wm8775_info("Input: %s%s\n",
117 state->input == 8 ? "radio" : "default",
118 state->muted ? " (muted)" : "");
119 break;
115 120
116 case VIDIOCSFREQ: 121 case VIDIOC_S_FREQUENCY:
117 /* If I remove this, then it can happen that I have no 122 /* If I remove this, then it can happen that I have no
118 sound the first time I tune from static to a valid channel. 123 sound the first time I tune from static to a valid channel.
119 It's difficult to reproduce and is almost certainly related 124 It's difficult to reproduce and is almost certainly related