[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>
This commit is contained in:
Hans Verkuil 2005-11-08 21:37:50 -08:00 committed by Linus Torvalds
parent 79436633db
commit bf7e26ee5f

View File

@ -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