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

[media] af9015: remove old FW based IR polling code

Remove old code which is not used anymore since IR code is read
directly from memory nowadays.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 709d9208
...@@ -91,7 +91,6 @@ static int af9015_rw_udev(struct usb_device *udev, struct req_t *req) ...@@ -91,7 +91,6 @@ static int af9015_rw_udev(struct usb_device *udev, struct req_t *req)
case GET_CONFIG: case GET_CONFIG:
case READ_MEMORY: case READ_MEMORY:
case RECONNECT_USB: case RECONNECT_USB:
case GET_IR_CODE:
write = 0; write = 0;
break; break;
case READ_I2C: case READ_I2C:
...@@ -164,13 +163,6 @@ static int af9015_rw_udev(struct usb_device *udev, struct req_t *req) ...@@ -164,13 +163,6 @@ static int af9015_rw_udev(struct usb_device *udev, struct req_t *req)
deb_xfer("<<< "); deb_xfer("<<< ");
debug_dump(buf, act_len, deb_xfer); debug_dump(buf, act_len, deb_xfer);
/* remote controller query status is 1 if remote code is not received */
if (req->cmd == GET_IR_CODE && buf[1] == 1) {
buf[1] = 0; /* clear command "error" status */
memset(&buf[2], 0, req->data_len);
buf[3] = 1; /* no remote code received mark */
}
/* check status */ /* check status */
if (buf[1]) { if (buf[1]) {
err("command failed:%d", buf[1]); err("command failed:%d", buf[1]);
......
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