diff options
author | Andy Walls <awalls@radix.net> | 2008-06-24 23:24:21 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:12:27 -0400 |
commit | c5588b5c473c3d496a2f94b80ea8254110866506 (patch) | |
tree | 50d6a8d0210271d1e5e62a089dc3271134bfe038 /drivers/media/video/cx18/cx18-cards.c | |
parent | adb65bc71c8fef53822870cc9018f05b11131233 (diff) |
V4L/DVB (8114): cx18: Improve Raptor card audio input routing defintions
cx18: Improved Raptor card audio input routing defintions, so that muxer values
matched cx18_gpio() values for tuner, line in 1, and radio and added LED
indication of selected audio input. Audio line in 2 doesn't work as it uses
the not yet supported 2nd I2S port. Tuner/FM Radio AF is mono until SIF
support is fixed.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx18/cx18-cards.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-cards.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/media/video/cx18/cx18-cards.c b/drivers/media/video/cx18/cx18-cards.c index 456fc924cf8c..0b892aacabef 100644 --- a/drivers/media/video/cx18/cx18-cards.c +++ b/drivers/media/video/cx18/cx18-cards.c | |||
@@ -261,14 +261,14 @@ static const struct cx18_card cx18_card_cnxt_raptor_pal = { | |||
261 | { CX18_CARD_INPUT_COMPOSITE2, 2, CX18_AV_COMPOSITE6 }, | 261 | { CX18_CARD_INPUT_COMPOSITE2, 2, CX18_AV_COMPOSITE6 }, |
262 | }, | 262 | }, |
263 | .audio_inputs = { | 263 | .audio_inputs = { |
264 | { CX18_CARD_INPUT_AUD_TUNER, CX18_AV_AUDIO_SERIAL, 1 }, | 264 | { CX18_CARD_INPUT_AUD_TUNER, CX18_AV_AUDIO_SERIAL, 0 }, |
265 | { CX18_CARD_INPUT_LINE_IN1, CX18_AV_AUDIO_SERIAL, 0 }, | 265 | { CX18_CARD_INPUT_LINE_IN1, CX18_AV_AUDIO_SERIAL, 1 }, |
266 | { CX18_CARD_INPUT_LINE_IN2, CX18_AV_AUDIO_SERIAL, 0 }, | 266 | { CX18_CARD_INPUT_LINE_IN2, CX18_AV_AUDIO_SERIAL, 1 }, |
267 | }, | 267 | }, |
268 | .tuners = { | 268 | .tuners = { |
269 | { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FM1216ME_MK3 }, | 269 | { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FM1216ME_MK3 }, |
270 | }, | 270 | }, |
271 | .radio_input = { CX18_CARD_INPUT_AUD_TUNER, CX18_AV_AUDIO_SERIAL, 0 }, | 271 | .radio_input = { CX18_CARD_INPUT_AUD_TUNER, CX18_AV_AUDIO_SERIAL, 2 }, |
272 | .ddr = { | 272 | .ddr = { |
273 | /* MT 46V16M16 memory */ | 273 | /* MT 46V16M16 memory */ |
274 | .chip_config = 0x50306, | 274 | .chip_config = 0x50306, |
@@ -278,9 +278,12 @@ static const struct cx18_card cx18_card_cnxt_raptor_pal = { | |||
278 | .tune_lane = 0, | 278 | .tune_lane = 0, |
279 | .initial_emrs = 0, | 279 | .initial_emrs = 0, |
280 | }, | 280 | }, |
281 | .gpio_init.initial_value = 0x02, | 281 | .gpio_init.initial_value = 0x1002, |
282 | .gpio_init.direction = 0x02, | 282 | .gpio_init.direction = 0xf002, |
283 | .gpio_audio_input = { .mask = 0x02, .tuner = 0x02, .linein = 0x00 }, | 283 | .gpio_audio_input = { .mask = 0xf002, |
284 | .tuner = 0x1002, /* LED D1 Tuner AF */ | ||
285 | .linein = 0x2000, /* LED D2 Line In 1 */ | ||
286 | .radio = 0x4002 }, /* LED D3 Tuner AF */ | ||
284 | .pci_list = cx18_pci_cnxt_raptor_pal, | 287 | .pci_list = cx18_pci_cnxt_raptor_pal, |
285 | .i2c = &cx18_i2c_std, | 288 | .i2c = &cx18_i2c_std, |
286 | }; | 289 | }; |