Commit bf7e26ee authored by Hans Verkuil's avatar Hans Verkuil Committed by Linus Torvalds

[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: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarNickolay V. Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 79436633
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment