Skip to content

Commit 32c1935

Browse files
nprothHans Verkuil
authored andcommitted
media: tuner-simple: Add support for Tena TNF931D-DFDR1
Tuner ranges were determined by USB capturing the vendor driver of a MyGica UTV3 video capture card. Signed-off-by: Nils Rothaug <[email protected]> Signed-off-by: Sean Young <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 4caf6d9 commit 32c1935

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Documentation/admin-guide/media/tuner-cardlist.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,6 @@ Tuner number Card name
9797
89 Sony BTF-PG472Z PAL/SECAM
9898
90 Sony BTF-PK467Z NTSC-M-JP
9999
91 Sony BTF-PB463Z NTSC-M
100+
92 Silicon Labs Si2157 tuner
101+
93 Tena TNF931D-DFDR1
100102
============ =====================================================

drivers/media/tuners/tuner-types.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,22 @@ static struct tuner_params tuner_sony_btf_pg463z_params[] = {
14341434
},
14351435
};
14361436

1437+
/* ------------- TUNER_TENA_TNF_931D_DFDR1 - NXP TDA6509A ------------- */
1438+
1439+
static struct tuner_range tuner_tena_tnf_931d_dfdr1_ranges[] = {
1440+
{ 16 * 161.15 /*MHz*/, 0x8e, 0x01, },
1441+
{ 16 * 463.15 /*MHz*/, 0x8e, 0x02, },
1442+
{ 16 * 999.99 , 0x8e, 0x08, },
1443+
};
1444+
1445+
static struct tuner_params tuner_tena_tnf_931d_dfdr1_params[] = {
1446+
{
1447+
.type = TUNER_PARAM_TYPE_PAL,
1448+
.ranges = tuner_tena_tnf_931d_dfdr1_ranges,
1449+
.count = ARRAY_SIZE(tuner_tena_tnf_931d_dfdr1_ranges),
1450+
},
1451+
};
1452+
14371453
/* --------------------------------------------------------------------- */
14381454

14391455
struct tunertype tuners[] = {
@@ -1946,6 +1962,11 @@ struct tunertype tuners[] = {
19461962
.name = "Silicon Labs Si2157 tuner",
19471963
/* see si2157.c for details */
19481964
},
1965+
[TUNER_TENA_TNF_931D_DFDR1] = {
1966+
.name = "Tena TNF931D-DFDR1",
1967+
.params = tuner_tena_tnf_931d_dfdr1_params,
1968+
.count = ARRAY_SIZE(tuner_tena_tnf_931d_dfdr1_params),
1969+
}
19491970
};
19501971
EXPORT_SYMBOL(tuners);
19511972

include/media/tuner.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
#define TUNER_SONY_BTF_PK467Z 90 /* NTSC_JP */
134134
#define TUNER_SONY_BTF_PB463Z 91 /* NTSC */
135135
#define TUNER_SI2157 92
136+
#define TUNER_TENA_TNF_931D_DFDR1 93
136137

137138
/* tv card specific */
138139
#define TDA9887_PRESENT (1<<0)

0 commit comments

Comments
 (0)