diff options
author | Andy Walls <awalls@radix.net> | 2010-02-20 19:28:39 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:11:07 -0500 |
commit | c1ea5b7424e4d1d3f56de1504a257ec2419259e8 (patch) | |
tree | 7f3271ea14e2b56938ad89d2e19a23c4eb14be77 /drivers/media | |
parent | 7c12167bae57994e30cc5258e8aaa6fb06258f46 (diff) |
V4L/DVB: ivtv: Tweak Sony GigaPocket Kikyou card entry based on experiments
Based on experiments by Eric Wescott, edit the Sony GigaPocket (Kikyou)
card entry video and audio mux settings.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-cards.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/drivers/media/video/ivtv/ivtv-cards.c b/drivers/media/video/ivtv/ivtv-cards.c index 79c1b7af8824..ca1fd3227a93 100644 --- a/drivers/media/video/ivtv/ivtv-cards.c +++ b/drivers/media/video/ivtv/ivtv-cards.c | |||
@@ -1227,27 +1227,20 @@ static const struct ivtv_card ivtv_card_kikyou = { | |||
1227 | .hw_audio_ctrl = IVTV_HW_GPIO, | 1227 | .hw_audio_ctrl = IVTV_HW_GPIO, |
1228 | .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7115 | IVTV_HW_TUNER, | 1228 | .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7115 | IVTV_HW_TUNER, |
1229 | .video_inputs = { | 1229 | .video_inputs = { |
1230 | { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE5 }, | 1230 | { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE1 }, |
1231 | { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE4 }, /* rear */ | 1231 | { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE1 }, |
1232 | { IVTV_CARD_INPUT_COMPOSITE2, 2, IVTV_SAA71XX_COMPOSITE1 }, /* front */ | ||
1233 | { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO1 }, | 1232 | { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO1 }, |
1234 | { IVTV_CARD_INPUT_SVIDEO2, 2, IVTV_SAA71XX_SVIDEO2 }, | ||
1235 | }, | 1233 | }, |
1236 | .audio_inputs = { | 1234 | .audio_inputs = { |
1237 | { IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER }, | 1235 | { IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER }, |
1238 | { IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN }, | 1236 | { IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN }, |
1239 | /* IVTV_GPIO_RADIO?? pretend to have "radio" for 2nd audio GPIO. */ | 1237 | { IVTV_CARD_INPUT_LINE_IN2, IVTV_GPIO_LINE_IN }, |
1240 | { IVTV_CARD_INPUT_LINE_IN2, 2 }, | 1238 | }, |
1241 | }, | 1239 | .gpio_init = { .direction = 0x03e1, .initial_value = 0x0320 }, |
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, | 1240 | .gpio_audio_input = { .mask = 0x0060, |
1248 | .tuner = 0x0000, | 1241 | .tuner = 0x0020, |
1249 | .linein = 0x0060, | 1242 | .linein = 0x0000, |
1250 | .radio = 0x0020 }, | 1243 | .radio = 0x0060 }, |
1251 | .gpio_audio_mute = { .mask = 0x0000, | 1244 | .gpio_audio_mute = { .mask = 0x0000, |
1252 | .mute = 0x0000 }, /* 0x200? Disable for now. */ | 1245 | .mute = 0x0000 }, /* 0x200? Disable for now. */ |
1253 | .gpio_audio_mode = { .mask = 0x0080, | 1246 | .gpio_audio_mode = { .mask = 0x0080, |