diff options
author | Eric Anderson <rico99@sbcglobal.net> | 2010-02-10 20:14:54 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:11:07 -0500 |
commit | 7c12167bae57994e30cc5258e8aaa6fb06258f46 (patch) | |
tree | 6e91383015e96aefbdb4767b8897cac363dcbb72 /drivers/media/video/ivtv/ivtv-cards.c | |
parent | dbb9de9bc137e08dc47db960d5730e3251932e2b (diff) |
V4L/DVB: ivtv: Add initial entry for Sony VAIO Giga Pocket (Kikyou) cards
This is a slightly modified version of Eric Anderson's original patch
for the Sony Giga Pocket board. It has been updated to apply to the
latest ivtv driver version by Hans Verkuil <hverkuil@xs4all.nl> and
Andy Walls <awalls@radix.net>. Also Andy Walls modified the patch to
use a new Sony BTF-Pnx01Z tuner entry based on Eric Anderson's experimental
findings for the bandswitch.
>From Eric Anderson's original email:
1. The tuner on the card doesn't seem to match any standard
ones. I modified an existing tuner entry. Ideally a new tuner
entry should be created. (The only difference from the one I
modified is that the low-to-mid range frequency cut-off is
slightly different, as are the bit config settings.)
2. It wasn't obvious how to choose a second audio input other
than using "radio" as an option. Basically there's two GPIO
audio inputs. Using radio allowed me to avoid major restructuring
to the code. (perhaps other cards don't have this often...)
3. It's not clear that there's a mute setting that works. Not
sure why.
4. I haven't had a chance to test the two Svideo inputs. I set
them to COMPOSITE1 and SVIDEO2, but I'm not sure those are the
correct settings. The standard composite video inputs seem to work.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-cards.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-cards.c | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-cards.c b/drivers/media/video/ivtv/ivtv-cards.c index 79d0fe4990d6..79c1b7af8824 100644 --- a/drivers/media/video/ivtv/ivtv-cards.c +++ b/drivers/media/video/ivtv/ivtv-cards.c | |||
@@ -1210,6 +1210,60 @@ static const struct ivtv_card ivtv_card_buffalo = { | |||
1210 | .i2c = &ivtv_i2c_std, | 1210 | .i2c = &ivtv_i2c_std, |
1211 | }; | 1211 | }; |
1212 | 1212 | ||
1213 | /* ------------------------------------------------------------------------- */ | ||
1214 | /* Sony Kikyou */ | ||
1215 | |||
1216 | static const struct ivtv_card_pci_info ivtv_pci_kikyou[] = { | ||
1217 | { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_SONY, 0x813d }, | ||
1218 | { 0, 0, 0 } | ||
1219 | }; | ||
1220 | |||
1221 | static const struct ivtv_card ivtv_card_kikyou = { | ||
1222 | .type = IVTV_CARD_KIKYOU, | ||
1223 | .name = "Sony VAIO Giga Pocket (ENX Kikyou)", | ||
1224 | .v4l2_capabilities = IVTV_CAP_ENCODER, | ||
1225 | .hw_video = IVTV_HW_SAA7115, | ||
1226 | .hw_audio = IVTV_HW_GPIO, | ||
1227 | .hw_audio_ctrl = IVTV_HW_GPIO, | ||
1228 | .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7115 | IVTV_HW_TUNER, | ||
1229 | .video_inputs = { | ||
1230 | { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE5 }, | ||
1231 | { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE4 }, /* rear */ | ||
1232 | { IVTV_CARD_INPUT_COMPOSITE2, 2, IVTV_SAA71XX_COMPOSITE1 }, /* front */ | ||
1233 | { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO1 }, | ||
1234 | { IVTV_CARD_INPUT_SVIDEO2, 2, IVTV_SAA71XX_SVIDEO2 }, | ||
1235 | }, | ||
1236 | .audio_inputs = { | ||
1237 | { IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER }, | ||
1238 | { IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN }, | ||
1239 | /* IVTV_GPIO_RADIO?? pretend to have "radio" for 2nd audio GPIO. */ | ||
1240 | { IVTV_CARD_INPUT_LINE_IN2, 2 }, | ||
1241 | }, | ||
1242 | /* | ||
1243 | * Sony windows software seems to set 0x200 when unmuting. | ||
1244 | * Does it do anything? Not clear what 0x100 does either. | ||
1245 | */ | ||
1246 | .gpio_init = { .direction = 0x0381, .initial_value = 0x0320 }, | ||
1247 | .gpio_audio_input = { .mask = 0x0060, | ||
1248 | .tuner = 0x0000, | ||
1249 | .linein = 0x0060, | ||
1250 | .radio = 0x0020 }, | ||
1251 | .gpio_audio_mute = { .mask = 0x0000, | ||
1252 | .mute = 0x0000 }, /* 0x200? Disable for now. */ | ||
1253 | .gpio_audio_mode = { .mask = 0x0080, | ||
1254 | .mono = 0x0000, | ||
1255 | .stereo = 0x0000, /* SAP */ | ||
1256 | .lang1 = 0x0080, | ||
1257 | .lang2 = 0x0000, | ||
1258 | .both = 0x0080 }, | ||
1259 | .tuners = { | ||
1260 | { .std = V4L2_STD_ALL, .tuner = TUNER_SONY_BTF_PXN01Z }, | ||
1261 | }, | ||
1262 | .pci_list = ivtv_pci_kikyou, | ||
1263 | .i2c = &ivtv_i2c_std, | ||
1264 | }; | ||
1265 | |||
1266 | |||
1213 | static const struct ivtv_card *ivtv_card_list[] = { | 1267 | static const struct ivtv_card *ivtv_card_list[] = { |
1214 | &ivtv_card_pvr250, | 1268 | &ivtv_card_pvr250, |
1215 | &ivtv_card_pvr350, | 1269 | &ivtv_card_pvr350, |
@@ -1238,6 +1292,7 @@ static const struct ivtv_card *ivtv_card_list[] = { | |||
1238 | &ivtv_card_aver_m104, | 1292 | &ivtv_card_aver_m104, |
1239 | &ivtv_card_buffalo, | 1293 | &ivtv_card_buffalo, |
1240 | &ivtv_card_aver_ultra1500mce, | 1294 | &ivtv_card_aver_ultra1500mce, |
1295 | &ivtv_card_kikyou, | ||
1241 | 1296 | ||
1242 | /* Variations of standard cards but with the same PCI IDs. | 1297 | /* Variations of standard cards but with the same PCI IDs. |
1243 | These cards must come last in this list. */ | 1298 | These cards must come last in this list. */ |