diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2005-11-08 21:37:50 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 07:56:21 -0800 |
commit | bf7e26ee5fce3eb1074ba3e1c8f265cb37c8451c (patch) | |
tree | 0cf97f1211b845fcbc1881646f4fd205d89b2c2b /drivers/media | |
parent | 79436633dbced18aa348f8669ef507109f851303 (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')
-rw-r--r-- | drivers/media/video/wm8775.c | 7 |
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, state->muted = 0; break; + case VIDIOC_LOG_STATUS: + wm8775_info("Input: %s%s\n", + state->input == 8 ? "radio" : "default", + state->muted ? " (muted)" : ""); + break; - case VIDIOCSFREQ: + case VIDIOC_S_FREQUENCY: /* If I remove this, then it can happen that I have no sound the first time I tune from static to a valid channel. It's difficult to reproduce and is almost certainly related |