提交 ed19a5db 编写于 作者: A Antti Palosaari 提交者: Mauro Carvalho Chehab

V4L/DVB: af9015: use value from config instead hardcoded one

Replace 2nd demod default address 0x3a with value got from eeprom config.
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 9b22edd4
......@@ -496,7 +496,8 @@ static int af9015_copy_firmware(struct dvb_usb_device *d)
/* wait 2nd demodulator ready */
msleep(100);
ret = af9015_read_reg_i2c(d, 0x3a, 0x98be, &val);
ret = af9015_read_reg_i2c(d,
af9015_af9013_config[1].demod_address, 0x98be, &val);
if (ret)
goto error;
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册