diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-03-09 11:14:32 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-24 11:11:35 -0400 |
commit | e4d2a6162d2a0a27be16b75da36f6bba64af63bc (patch) | |
tree | 356289a785e8aaa2919eae8b046d4504b0c7bc41 /drivers/media/tuners | |
parent | ffb9749346b4e3bb567d0d5daa88edae9f8ec8ae (diff) |
[media] tuner: add Sony BTF tuners
This adds support for three Sony BTF tuners:
TUNER_SONY_BTF_PG472Z: PAL+SECAM
TUNER_SONY_BTF_PK467Z: NTSC-M-JP
TUNER_SONY_BTF_PB463Z: NTSC-M
These come from the go7007 staging driver where they were implemented in
the wis-sony-tuner i2c driver.
Adding support for these tuners to tuner-types.c is the first step towards
removing the wis-sony-tuner driver.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r-- | drivers/media/tuners/tuner-types.c | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/drivers/media/tuners/tuner-types.c b/drivers/media/tuners/tuner-types.c index 2da4440c16ee..98bc15a388be 100644 --- a/drivers/media/tuners/tuner-types.c +++ b/drivers/media/tuners/tuner-types.c | |||
@@ -1381,6 +1381,58 @@ static struct tuner_params tuner_philips_fq1236_mk5_params[] = { | |||
1381 | }, | 1381 | }, |
1382 | }; | 1382 | }; |
1383 | 1383 | ||
1384 | /* --------- Sony BTF-PG472Z PAL/SECAM ------- */ | ||
1385 | |||
1386 | static struct tuner_range tuner_sony_btf_pg472z_ranges[] = { | ||
1387 | { 16 * 144.25 /*MHz*/, 0xc6, 0x01, }, | ||
1388 | { 16 * 427.25 /*MHz*/, 0xc6, 0x02, }, | ||
1389 | { 16 * 999.99 , 0xc6, 0x04, }, | ||
1390 | }; | ||
1391 | |||
1392 | static struct tuner_params tuner_sony_btf_pg472z_params[] = { | ||
1393 | { | ||
1394 | .type = TUNER_PARAM_TYPE_PAL, | ||
1395 | .ranges = tuner_sony_btf_pg472z_ranges, | ||
1396 | .count = ARRAY_SIZE(tuner_sony_btf_pg472z_ranges), | ||
1397 | .has_tda9887 = 1, | ||
1398 | .port1_active = 1, | ||
1399 | .port2_invert_for_secam_lc = 1, | ||
1400 | }, | ||
1401 | }; | ||
1402 | |||
1403 | /* 90-99 */ | ||
1404 | /* --------- Sony BTF-PG467Z NTSC-M-JP ------- */ | ||
1405 | |||
1406 | static struct tuner_range tuner_sony_btf_pg467z_ranges[] = { | ||
1407 | { 16 * 220.25 /*MHz*/, 0xc6, 0x01, }, | ||
1408 | { 16 * 467.25 /*MHz*/, 0xc6, 0x02, }, | ||
1409 | { 16 * 999.99 , 0xc6, 0x04, }, | ||
1410 | }; | ||
1411 | |||
1412 | static struct tuner_params tuner_sony_btf_pg467z_params[] = { | ||
1413 | { | ||
1414 | .type = TUNER_PARAM_TYPE_NTSC, | ||
1415 | .ranges = tuner_sony_btf_pg467z_ranges, | ||
1416 | .count = ARRAY_SIZE(tuner_sony_btf_pg467z_ranges), | ||
1417 | }, | ||
1418 | }; | ||
1419 | |||
1420 | /* --------- Sony BTF-PG463Z NTSC-M ------- */ | ||
1421 | |||
1422 | static struct tuner_range tuner_sony_btf_pg463z_ranges[] = { | ||
1423 | { 16 * 130.25 /*MHz*/, 0xc6, 0x01, }, | ||
1424 | { 16 * 364.25 /*MHz*/, 0xc6, 0x02, }, | ||
1425 | { 16 * 999.99 , 0xc6, 0x04, }, | ||
1426 | }; | ||
1427 | |||
1428 | static struct tuner_params tuner_sony_btf_pg463z_params[] = { | ||
1429 | { | ||
1430 | .type = TUNER_PARAM_TYPE_NTSC, | ||
1431 | .ranges = tuner_sony_btf_pg463z_ranges, | ||
1432 | .count = ARRAY_SIZE(tuner_sony_btf_pg463z_ranges), | ||
1433 | }, | ||
1434 | }; | ||
1435 | |||
1384 | /* --------------------------------------------------------------------- */ | 1436 | /* --------------------------------------------------------------------- */ |
1385 | 1437 | ||
1386 | struct tunertype tuners[] = { | 1438 | struct tunertype tuners[] = { |
@@ -1872,6 +1924,23 @@ struct tunertype tuners[] = { | |||
1872 | .name = "Xceive 5000C tuner", | 1924 | .name = "Xceive 5000C tuner", |
1873 | /* see xc5000.c for details */ | 1925 | /* see xc5000.c for details */ |
1874 | }, | 1926 | }, |
1927 | [TUNER_SONY_BTF_PG472Z] = { | ||
1928 | .name = "Sony BTF-PG472Z PAL/SECAM", | ||
1929 | .params = tuner_sony_btf_pg472z_params, | ||
1930 | .count = ARRAY_SIZE(tuner_sony_btf_pg472z_params), | ||
1931 | }, | ||
1932 | |||
1933 | /* 90-99 */ | ||
1934 | [TUNER_SONY_BTF_PK467Z] = { | ||
1935 | .name = "Sony BTF-PK467Z NTSC-M-JP", | ||
1936 | .params = tuner_sony_btf_pg467z_params, | ||
1937 | .count = ARRAY_SIZE(tuner_sony_btf_pg467z_params), | ||
1938 | }, | ||
1939 | [TUNER_SONY_BTF_PB463Z] = { | ||
1940 | .name = "Sony BTF-PB463Z NTSC-M", | ||
1941 | .params = tuner_sony_btf_pg463z_params, | ||
1942 | .count = ARRAY_SIZE(tuner_sony_btf_pg463z_params), | ||
1943 | }, | ||
1875 | }; | 1944 | }; |
1876 | EXPORT_SYMBOL(tuners); | 1945 | EXPORT_SYMBOL(tuners); |
1877 | 1946 | ||