Skip to content

Commit 7c1dfdb

Browse files
sur5rMauro Carvalho Chehab
authored andcommitted
[media] em28xx: Add support for 1b80:e1cc Delock 61959
Hardware is the same as MaxMedia UB425-TC but ships with a different remote. Signed-off-by: Jakob Haufe <sur5r@sur5r.net> Reviewed-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 3020bea commit 7c1dfdb

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

‎drivers/media/usb/em28xx/em28xx-cards.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ static struct em28xx_reg_seq hauppauge_930c_digital[] = {
374374
#endif
375375

376376
/* 1b80:e425 MaxMedia UB425-TC
377+
* 1b80:e1cc Delock 61959
377378
* GPIO_6 - demod reset, 0=active
378379
* GPIO_7 - LED, 0=active
379380
*/
@@ -2017,6 +2018,19 @@ struct em28xx_board em28xx_boards[] = {
20172018
.i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE |
20182019
EM28XX_I2C_FREQ_400_KHZ,
20192020
},
2021+
/* 1b80:e1cc Delock 61959
2022+
* Empia EM2874B + Micronas DRX 3913KA2 + NXP TDA18271HDC2
2023+
* mostly the same as MaxMedia UB-425-TC but different remote */
2024+
[EM2874_BOARD_DELOCK_61959] = {
2025+
.name = "Delock 61959",
2026+
.tuner_type = TUNER_ABSENT,
2027+
.tuner_gpio = maxmedia_ub425_tc,
2028+
.has_dvb = 1,
2029+
.ir_codes = RC_MAP_DELOCK_61959,
2030+
.def_i2c_bus = 1,
2031+
.i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE |
2032+
EM28XX_I2C_FREQ_400_KHZ,
2033+
},
20202034
};
20212035
const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards);
20222036

@@ -2178,6 +2192,8 @@ struct usb_device_id em28xx_id_table[] = {
21782192
.driver_info = EM2884_BOARD_PCTV_510E },
21792193
{ USB_DEVICE(0x2013, 0x0251),
21802194
.driver_info = EM2884_BOARD_PCTV_520E },
2195+
{ USB_DEVICE(0x1b80, 0xe1cc),
2196+
.driver_info = EM2874_BOARD_DELOCK_61959 },
21812197
{ },
21822198
};
21832199
MODULE_DEVICE_TABLE(usb, em28xx_id_table);

‎drivers/media/usb/em28xx/em28xx-dvb.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,7 @@ static int em28xx_dvb_init(struct em28xx *dev)
12161216
dvb_attach(a8293_attach, dvb->fe[0], &dev->i2c_adap[dev->def_i2c_bus],
12171217
&em28xx_a8293_config);
12181218
break;
1219+
case EM2874_BOARD_DELOCK_61959:
12191220
case EM2874_BOARD_MAXMEDIA_UB425_TC:
12201221
/* attach demodulator */
12211222
dvb->fe[0] = dvb_attach(drxk_attach, &maxmedia_ub425_tc_drxk,
@@ -1235,8 +1236,8 @@ static int em28xx_dvb_init(struct em28xx *dev)
12351236
}
12361237

12371238
/* TODO: we need drx-3913k firmware in order to support DVB-T */
1238-
em28xx_info("MaxMedia UB425-TC: only DVB-C supported by that " \
1239-
"driver version\n");
1239+
em28xx_info("MaxMedia UB425-TC/Delock 61959: only DVB-C " \
1240+
"supported by that driver version\n");
12401241

12411242
break;
12421243
case EM2884_BOARD_PCTV_510E:

‎drivers/media/usb/em28xx/em28xx.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
#define EM2884_BOARD_PCTV_520E 86
131131
#define EM2884_BOARD_TERRATEC_HTC_USB_XS 87
132132
#define EM2884_BOARD_C3TECH_DIGITAL_DUO 88
133+
#define EM2874_BOARD_DELOCK_61959 89
133134

134135
/* Limits minimum and default number of buffers */
135136
#define EM28XX_MIN_BUF 4

0 commit comments

Comments
 (0)