提交 bf7e26ee 编写于 作者: H Hans Verkuil 提交者: 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: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NNickolay V. Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: NMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册