Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2017
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. static int pctv452e_rc_query(struct dvb_usb_device *d)
  2. {
  3.     struct pctv452e_state *state = (struct pctv452e_state *)d->priv;
  4.     u8 b[CMD_BUFFER_SIZE];
  5.     u8 rx[PCTV_ANSWER_LEN];
  6.     int ret, i;
  7.     u8 id = state->c++;
  8.  
  9.     /* prepare command header  */
  10.     b[0] = SYNC_BYTE_OUT;
  11.     b[1] = id;
  12.     b[2] = PCTV_CMD_IR;
  13.     b[3] = 0;
  14.  
  15.     /* send ir request */
  16.     ret = dvb_usb_generic_rw(d, b, 4, rx, PCTV_ANSWER_LEN, 0);
  17.     if (ret != 0)
  18.         return ret;
  19.  
  20.     if (debug > 3) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement