Skip to content

Commit b6854e3

Browse files
Miroslav SlugenMauro Carvalho Chehab
authored andcommitted
[media] cx88: fix: don't duplicate xc4000 entry for radio
All radio tuners in cx88 driver using same address for radio and tuner, so there is no need to probe it twice for same tuner and we can use radio_type UNSET, this also fix broken radio since kernel 2.6.39-rc1 for those tuners. Cc: stable@kernel.org Signed-off-by: Miroslav Slugen <thunder.mmm@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 9ee8537 commit b6854e3

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎drivers/media/video/cx88/cx88-cards.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,8 +1573,8 @@ static const struct cx88_board cx88_boards[] = {
15731573
.name = "Pinnacle Hybrid PCTV",
15741574
.tuner_type = TUNER_XC2028,
15751575
.tuner_addr = 0x61,
1576-
.radio_type = TUNER_XC2028,
1577-
.radio_addr = 0x61,
1576+
.radio_type = UNSET,
1577+
.radio_addr = ADDR_UNSET,
15781578
.input = { {
15791579
.type = CX88_VMUX_TELEVISION,
15801580
.vmux = 0,
@@ -1611,8 +1611,8 @@ static const struct cx88_board cx88_boards[] = {
16111611
.name = "Leadtek TV2000 XP Global",
16121612
.tuner_type = TUNER_XC2028,
16131613
.tuner_addr = 0x61,
1614-
.radio_type = TUNER_XC2028,
1615-
.radio_addr = 0x61,
1614+
.radio_type = UNSET,
1615+
.radio_addr = ADDR_UNSET,
16161616
.input = { {
16171617
.type = CX88_VMUX_TELEVISION,
16181618
.vmux = 0,
@@ -2115,8 +2115,8 @@ static const struct cx88_board cx88_boards[] = {
21152115
.name = "Terratec Cinergy HT PCI MKII",
21162116
.tuner_type = TUNER_XC2028,
21172117
.tuner_addr = 0x61,
2118-
.radio_type = TUNER_XC2028,
2119-
.radio_addr = 0x61,
2118+
.radio_type = UNSET,
2119+
.radio_addr = ADDR_UNSET,
21202120
.input = { {
21212121
.type = CX88_VMUX_TELEVISION,
21222122
.vmux = 0,
@@ -2154,9 +2154,9 @@ static const struct cx88_board cx88_boards[] = {
21542154
[CX88_BOARD_WINFAST_DTV1800H] = {
21552155
.name = "Leadtek WinFast DTV1800 Hybrid",
21562156
.tuner_type = TUNER_XC2028,
2157-
.radio_type = TUNER_XC2028,
2157+
.radio_type = UNSET,
21582158
.tuner_addr = 0x61,
2159-
.radio_addr = 0x61,
2159+
.radio_addr = ADDR_UNSET,
21602160
/*
21612161
* GPIO setting
21622162
*
@@ -2195,9 +2195,9 @@ static const struct cx88_board cx88_boards[] = {
21952195
[CX88_BOARD_WINFAST_DTV1800H_XC4000] = {
21962196
.name = "Leadtek WinFast DTV1800 H (XC4000)",
21972197
.tuner_type = TUNER_XC4000,
2198-
.radio_type = TUNER_XC4000,
2198+
.radio_type = UNSET,
21992199
.tuner_addr = 0x61,
2200-
.radio_addr = 0x61,
2200+
.radio_addr = ADDR_UNSET,
22012201
/*
22022202
* GPIO setting
22032203
*
@@ -2236,9 +2236,9 @@ static const struct cx88_board cx88_boards[] = {
22362236
[CX88_BOARD_WINFAST_DTV2000H_PLUS] = {
22372237
.name = "Leadtek WinFast DTV2000 H PLUS",
22382238
.tuner_type = TUNER_XC4000,
2239-
.radio_type = TUNER_XC4000,
2239+
.radio_type = UNSET,
22402240
.tuner_addr = 0x61,
2241-
.radio_addr = 0x61,
2241+
.radio_addr = ADDR_UNSET,
22422242
/*
22432243
* GPIO
22442244
* 2: 1: mute audio

0 commit comments

Comments
 (0)