File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
drivers/media/usb/dvb-usb-v2 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ static int rtl2832u_read_config(struct dvb_usb_device *d)
376
376
struct rtl28xxu_req req_mxl5007t = {0xd9c0 , CMD_I2C_RD , 1 , buf };
377
377
struct rtl28xxu_req req_e4000 = {0x02c8 , CMD_I2C_RD , 1 , buf };
378
378
struct rtl28xxu_req req_tda18272 = {0x00c0 , CMD_I2C_RD , 2 , buf };
379
- struct rtl28xxu_req req_r820t = {0x0034 , CMD_I2C_RD , 5 , buf };
379
+ struct rtl28xxu_req req_r820t = {0x0034 , CMD_I2C_RD , 1 , buf };
380
380
381
381
dev_dbg (& d -> udev -> dev , "%s:\n" , __func__ );
382
382
@@ -481,9 +481,9 @@ static int rtl2832u_read_config(struct dvb_usb_device *d)
481
481
goto found ;
482
482
}
483
483
484
- /* check R820T by reading tuner stats at I2C addr 0x1a */
484
+ /* check R820T ID register; reg=00 val=69 */
485
485
ret = rtl28xxu_ctrl_msg (d , & req_r820t );
486
- if (ret == 0 ) {
486
+ if (ret == 0 && buf [ 0 ] == 0x69 ) {
487
487
priv -> tuner = TUNER_RTL2832_R820T ;
488
488
priv -> tuner_name = "R820T" ;
489
489
goto found ;
You can’t perform that action at this time.
0 commit comments