diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-03-17 10:15:03 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-24 13:07:08 -0300 |
commit | 1f1aed2ed4450381a322f5e727e89bd21e7a89fe (patch) | |
tree | fc11f7d6728040f3180b7f886f66dec033c475a7 /drivers/staging/media/go7007/go7007-v4l2.c | |
parent | a000e9a02b5885b1b69f691c80e346d102f94a88 (diff) |
[media] go7007: add support for ADS Tech DVD Xpress DX2
Taken from the 0.9.8-5 version of the out-of-tree wis-go7007 driver.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/media/go7007/go7007-v4l2.c')
-rw-r--r-- | drivers/staging/media/go7007/go7007-v4l2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/media/go7007/go7007-v4l2.c b/drivers/staging/media/go7007/go7007-v4l2.c index 45be5189e944..24ba50e5d82a 100644 --- a/drivers/staging/media/go7007/go7007-v4l2.c +++ b/drivers/staging/media/go7007/go7007-v4l2.c @@ -512,6 +512,9 @@ static int go7007_start_streaming(struct vb2_queue *q, unsigned int count) v4l2_ctrl_grab(go->mpeg_video_gop_closure, true); v4l2_ctrl_grab(go->mpeg_video_bitrate, true); v4l2_ctrl_grab(go->mpeg_video_aspect_ratio, true); + /* Turn on Capture LED */ + if (go->board_id == GO7007_BOARDID_ADS_USBAV_709) + go7007_write_addr(go, 0x3c82, 0x0005); return ret; } @@ -534,6 +537,9 @@ static int go7007_stop_streaming(struct vb2_queue *q) v4l2_ctrl_grab(go->mpeg_video_gop_closure, false); v4l2_ctrl_grab(go->mpeg_video_bitrate, false); v4l2_ctrl_grab(go->mpeg_video_aspect_ratio, false); + /* Turn on Capture LED */ + if (go->board_id == GO7007_BOARDID_ADS_USBAV_709) + go7007_write_addr(go, 0x3c82, 0x000d); return 0; } |