forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V4L/DVB: cx23885: Add support for LEADTEK WinFast PxTV1200
I tested only tv and composite. Video works fine but no audio. Signed-off-by: Kusanagi Kouichi <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ | |
#include <media/v4l2-common.h> | ||
#include <media/v4l2-ioctl.h> | ||
#include "cx23885-ioctl.h" | ||
#include "tuner-xc2028.h" | ||
|
||
MODULE_DESCRIPTION("v4l2 driver module for cx23885 based TV cards"); | ||
MODULE_AUTHOR("Steven Toth <[email protected]>"); | ||
|
@@ -1505,6 +1506,18 @@ int cx23885_video_register(struct cx23885_dev *dev) | |
tun_setup.tuner_callback = cx23885_tuner_callback; | ||
|
||
v4l2_subdev_call(sd, tuner, s_type_addr, &tun_setup); | ||
|
||
if (dev->board == CX23885_BOARD_LEADTEK_WINFAST_PXTV1200) { | ||
struct xc2028_ctrl ctrl = { | ||
.fname = XC2028_DEFAULT_FIRMWARE, | ||
.max_len = 64 | ||
}; | ||
struct v4l2_priv_tun_config cfg = { | ||
.tuner = dev->tuner_type, | ||
.priv = &ctrl | ||
}; | ||
v4l2_subdev_call(sd, tuner, s_config, &cfg); | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters