Commit e94db976 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] af9015: enable 2nd TS flow control when dual mode

It needs to be enabled in order to get stream from slave af9013 demod.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent d83886ff
...@@ -1132,10 +1132,21 @@ static int af9015_init_endpoint(struct dvb_usb_device *d) ...@@ -1132,10 +1132,21 @@ static int af9015_init_endpoint(struct dvb_usb_device *d)
} }
/* enable / disable mp2if2 */ /* enable / disable mp2if2 */
if (state->dual_mode) if (state->dual_mode) {
ret = af9015_set_reg_bit(d, 0xd50b, 0); ret = af9015_set_reg_bit(d, 0xd50b, 0);
else if (ret)
goto error;
ret = af9015_set_reg_bit(d, 0xd520, 4);
if (ret)
goto error;
} else {
ret = af9015_clear_reg_bit(d, 0xd50b, 0); ret = af9015_clear_reg_bit(d, 0xd50b, 0);
if (ret)
goto error;
ret = af9015_clear_reg_bit(d, 0xd520, 4);
if (ret)
goto error;
}
error: error:
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment