Commit c00ecc97 authored by Stefan Ringel's avatar Stefan Ringel Committed by Mauro Carvalho Chehab

[media] tm6000: bugfix at tm6000_set_reg_mask() register setting

Signed-off-by: default avatarStefan Ringel <linuxtv@stefanringel.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 078a68c1
...@@ -125,14 +125,14 @@ int tm6000_set_reg_mask(struct tm6000_core *dev, u8 req, u16 value, ...@@ -125,14 +125,14 @@ int tm6000_set_reg_mask(struct tm6000_core *dev, u8 req, u16 value,
u8 new_index; u8 new_index;
rc = tm6000_read_write_usb(dev, USB_DIR_IN | USB_TYPE_VENDOR, req, rc = tm6000_read_write_usb(dev, USB_DIR_IN | USB_TYPE_VENDOR, req,
value, index, buf, 1); value, 0, buf, 1);
if (rc < 0) if (rc < 0)
return rc; return rc;
new_index = (buf[0] & ~mask) | (index & mask); new_index = (buf[0] & ~mask) | (index & mask);
if (new_index == index) if (new_index == buf[0])
return 0; return 0;
return tm6000_read_write_usb(dev, USB_DIR_OUT | USB_TYPE_VENDOR, return tm6000_read_write_usb(dev, USB_DIR_OUT | USB_TYPE_VENDOR,
......
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