Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int pctv452e_rc_query(struct dvb_usb_device *d)
- {
- struct pctv452e_state *state = (struct pctv452e_state *)d->priv;
- u8 b[CMD_BUFFER_SIZE];
- u8 rx[PCTV_ANSWER_LEN];
- int ret, i;
- u8 id = state->c++;
- /* prepare command header */
- b[0] = SYNC_BYTE_OUT;
- b[1] = id;
- b[2] = PCTV_CMD_IR;
- b[3] = 0;
- /* send ir request */
- ret = dvb_usb_generic_rw(d, b, 4, rx, PCTV_ANSWER_LEN, 0);
- if (ret != 0)
- return ret;
- if (debug > 3) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement