Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181740
b: refs/heads/master
c: 7c12167
h: refs/heads/master
v: v3
  • Loading branch information
Eric Anderson authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent bf114ca commit eda9a62
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbb9de9bc137e08dc47db960d5730e3251932e2b
refs/heads/master: 7c12167bae57994e30cc5258e8aaa6fb06258f46
55 changes: 55 additions & 0 deletions trunk/drivers/media/video/ivtv/ivtv-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,60 @@ static const struct ivtv_card ivtv_card_buffalo = {
.i2c = &ivtv_i2c_std,
};

/* ------------------------------------------------------------------------- */
/* Sony Kikyou */

static const struct ivtv_card_pci_info ivtv_pci_kikyou[] = {
{ PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_SONY, 0x813d },
{ 0, 0, 0 }
};

static const struct ivtv_card ivtv_card_kikyou = {
.type = IVTV_CARD_KIKYOU,
.name = "Sony VAIO Giga Pocket (ENX Kikyou)",
.v4l2_capabilities = IVTV_CAP_ENCODER,
.hw_video = IVTV_HW_SAA7115,
.hw_audio = IVTV_HW_GPIO,
.hw_audio_ctrl = IVTV_HW_GPIO,
.hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7115 | IVTV_HW_TUNER,
.video_inputs = {
{ IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE5 },
{ IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE4 }, /* rear */
{ IVTV_CARD_INPUT_COMPOSITE2, 2, IVTV_SAA71XX_COMPOSITE1 }, /* front */
{ IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO1 },
{ IVTV_CARD_INPUT_SVIDEO2, 2, IVTV_SAA71XX_SVIDEO2 },
},
.audio_inputs = {
{ IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER },
{ IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN },
/* IVTV_GPIO_RADIO?? pretend to have "radio" for 2nd audio GPIO. */
{ IVTV_CARD_INPUT_LINE_IN2, 2 },
},
/*
* Sony windows software seems to set 0x200 when unmuting.
* Does it do anything? Not clear what 0x100 does either.
*/
.gpio_init = { .direction = 0x0381, .initial_value = 0x0320 },
.gpio_audio_input = { .mask = 0x0060,
.tuner = 0x0000,
.linein = 0x0060,
.radio = 0x0020 },
.gpio_audio_mute = { .mask = 0x0000,
.mute = 0x0000 }, /* 0x200? Disable for now. */
.gpio_audio_mode = { .mask = 0x0080,
.mono = 0x0000,
.stereo = 0x0000, /* SAP */
.lang1 = 0x0080,
.lang2 = 0x0000,
.both = 0x0080 },
.tuners = {
{ .std = V4L2_STD_ALL, .tuner = TUNER_SONY_BTF_PXN01Z },
},
.pci_list = ivtv_pci_kikyou,
.i2c = &ivtv_i2c_std,
};


static const struct ivtv_card *ivtv_card_list[] = {
&ivtv_card_pvr250,
&ivtv_card_pvr350,
Expand Down Expand Up @@ -1238,6 +1292,7 @@ static const struct ivtv_card *ivtv_card_list[] = {
&ivtv_card_aver_m104,
&ivtv_card_buffalo,
&ivtv_card_aver_ultra1500mce,
&ivtv_card_kikyou,

/* Variations of standard cards but with the same PCI IDs.
These cards must come last in this list. */
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/media/video/ivtv/ivtv-cards.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
#define IVTV_CARD_AVER_M104 24 /* AverMedia M104 miniPCI card */
#define IVTV_CARD_BUFFALO_MV5L 25 /* Buffalo PC-MV5L/PCI card */
#define IVTV_CARD_AVER_ULTRA1500MCE 26 /* AVerMedia UltraTV 1500 MCE */
#define IVTV_CARD_LAST 26
#define IVTV_CARD_KIKYOU 27 /* Sony VAIO Giga Pocket (ENX Kikyou) */
#define IVTV_CARD_LAST 27

/* Variants of existing cards but with the same PCI IDs. The driver
detects these based on other device information.
Expand Down Expand Up @@ -86,6 +87,7 @@
#define IVTV_PCI_ID_MELCO 0x1154
#define IVTV_PCI_ID_GOTVIEW1 0xffac
#define IVTV_PCI_ID_GOTVIEW2 0xffad
#define IVTV_PCI_ID_SONY 0x104d

/* hardware flags, no gaps allowed */
#define IVTV_HW_CX25840 (1 << 0)
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/media/video/ivtv/ivtv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ MODULE_PARM_DESC(cardtype,
"\t\t\t25 = AverMedia M104 (not yet working)\n"
"\t\t\t26 = Buffalo PC-MV5L/PCI\n"
"\t\t\t27 = AVerMedia UltraTV 1500 MCE\n"
"\t\t\t28 = Sony VAIO Giga Pocket (ENX Kikyou)\n"
"\t\t\t 0 = Autodetect (default)\n"
"\t\t\t-1 = Ignore this card\n\t\t");
MODULE_PARM_DESC(pal, "Set PAL standard: BGH, DK, I, M, N, Nc, 60");
Expand Down

0 comments on commit eda9a62

Please sign in to comment.