forked from Minki/linux
V4L/DVB (3145): syncronizes some changes between v4l and dvb
- digitv_ctrl_msg() if (wo) test is reversed. fixed. - usb timeout is in Hz, not in jiffies. - NULL replaced by 0 to be coherent. - removed uneeded headers. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
This commit is contained in:
parent
0144f31466
commit
4302c15ea2
@ -39,11 +39,13 @@ extern const char *flexcop_device_names[];
|
||||
/* FlexCop IBI Registers */
|
||||
#if defined(__LITTLE_ENDIAN)
|
||||
#include "flexcop_ibi_value_le.h"
|
||||
#elif defined(__BIG_ENDIAN)
|
||||
#else
|
||||
#if defined(__BIG_ENDIAN)
|
||||
#include "flexcop_ibi_value_be.h"
|
||||
#else
|
||||
#error no endian defined
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define fc_data_Tag_ID_DVB 0x3e
|
||||
#define fc_data_Tag_ID_ATSC 0x3f
|
||||
|
@ -32,7 +32,7 @@ static int digitv_ctrl_msg(struct dvb_usb_device *d,
|
||||
sndbuf[1] = vv;
|
||||
sndbuf[2] = wo ? wlen : rlen;
|
||||
|
||||
if (!wo) {
|
||||
if (wo) {
|
||||
memcpy(&sndbuf[3],wbuf,wlen);
|
||||
dvb_usb_generic_write(d,sndbuf,7);
|
||||
} else {
|
||||
|
@ -151,7 +151,7 @@ static struct dvb_usb_properties dtt200u_properties = {
|
||||
.cold_ids = { &dtt200u_usb_table[0], NULL },
|
||||
.warm_ids = { &dtt200u_usb_table[1], NULL },
|
||||
},
|
||||
{ NULL },
|
||||
{ 0 },
|
||||
}
|
||||
};
|
||||
|
||||
@ -192,7 +192,7 @@ static struct dvb_usb_properties wt220u_properties = {
|
||||
.cold_ids = { &dtt200u_usb_table[2], NULL },
|
||||
.warm_ids = { &dtt200u_usb_table[3], NULL },
|
||||
},
|
||||
{ NULL },
|
||||
{ 0 },
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -30,7 +30,7 @@ static struct usb_cypress_controller cypress[] = {
|
||||
static int usb_cypress_writemem(struct usb_device *udev,u16 addr,u8 *data, u8 len)
|
||||
{
|
||||
return usb_control_msg(udev, usb_sndctrlpipe(udev,0),
|
||||
0xa0, USB_TYPE_VENDOR, addr, 0x00, data, len, 5*HZ);
|
||||
0xa0, USB_TYPE_VENDOR, addr, 0x00, data, len, 5000);
|
||||
}
|
||||
|
||||
static int usb_cypress_load_firmware(struct usb_device *udev, const struct firmware *fw, int type)
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
#include <linux/config.h>
|
||||
#include <linux/input.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/firmware.h>
|
||||
|
||||
|
@ -247,7 +247,7 @@ static struct dvb_usb_properties vp7045_properties = {
|
||||
.cold_ids = { &vp7045_usb_table[2], NULL },
|
||||
.warm_ids = { &vp7045_usb_table[3], NULL },
|
||||
},
|
||||
{ NULL },
|
||||
{ 0 },
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/jiffies.h>
|
||||
|
||||
#include "dvb_frontend.h"
|
||||
#include "cx24110.h"
|
||||
|
@ -402,6 +402,8 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe,
|
||||
state->config->pll_set(fe, param);
|
||||
|
||||
/* Keep track of the new frequency */
|
||||
/* FIXME this is the wrong way to do this... */
|
||||
/* The tuner is shared with the video4linux analog API */
|
||||
state->current_frequency = param->frequency;
|
||||
|
||||
lgdt330x_SwReset(state);
|
||||
|
Loading…
Reference in New Issue
Block a user