diff options
author | Antti Palosaari <crope@iki.fi> | 2011-06-17 20:21:32 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:55:58 -0400 |
commit | 3509cbdface46cf39908124580a2a3b35f7e2783 (patch) | |
tree | 417545cb7dbf93d56858392888b8686cc0ea1ecc /drivers/media | |
parent | 709d92083af0b0529f6e1d11d17718c9a1da8f01 (diff) |
[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: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/dvb-usb/af9015.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c index 41a7c430f9c1..7ad4ed8de8b2 100644 --- a/drivers/media/dvb/dvb-usb/af9015.c +++ b/drivers/media/dvb/dvb-usb/af9015.c | |||
@@ -91,7 +91,6 @@ static int af9015_rw_udev(struct usb_device *udev, struct req_t *req) | |||
91 | case GET_CONFIG: | 91 | case GET_CONFIG: |
92 | case READ_MEMORY: | 92 | case READ_MEMORY: |
93 | case RECONNECT_USB: | 93 | case RECONNECT_USB: |
94 | case GET_IR_CODE: | ||
95 | write = 0; | 94 | write = 0; |
96 | break; | 95 | break; |
97 | case READ_I2C: | 96 | case READ_I2C: |
@@ -164,13 +163,6 @@ static int af9015_rw_udev(struct usb_device *udev, struct req_t *req) | |||
164 | deb_xfer("<<< "); | 163 | deb_xfer("<<< "); |
165 | debug_dump(buf, act_len, deb_xfer); | 164 | debug_dump(buf, act_len, deb_xfer); |
166 | 165 | ||
167 | /* remote controller query status is 1 if remote code is not received */ | ||
168 | if (req->cmd == GET_IR_CODE && buf[1] == 1) { | ||
169 | buf[1] = 0; /* clear command "error" status */ | ||
170 | memset(&buf[2], 0, req->data_len); | ||
171 | buf[3] = 1; /* no remote code received mark */ | ||
172 | } | ||
173 | |||
174 | /* check status */ | 166 | /* check status */ |
175 | if (buf[1]) { | 167 | if (buf[1]) { |
176 | err("command failed:%d", buf[1]); | 168 | err("command failed:%d", buf[1]); |