Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306384
b: refs/heads/master
c: 5becbc5
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 14, 2012
1 parent c0f77af commit 4a494b5
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 32 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fdf07b027b2d3eee9a561898b9c427cc3e457af4
refs/heads/master: 5becbc58a01f1adaf34703c18287d9f7b46a17f6
3 changes: 1 addition & 2 deletions trunk/drivers/media/dvb/dvb-usb/lmedm04.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,14 +1205,13 @@ static int lme2510_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
struct usb_device *udev = interface_to_usbdev(intf);
int ret = 0;

usb_reset_configuration(udev);

usb_set_interface(udev, intf->cur_altsetting->desc.bInterfaceNumber, 1);

if (udev->speed != USB_SPEED_HIGH) {
ret = usb_reset_device(udev);
usb_reset_device(udev);
info("DEV Failed to connect in HIGH SPEED mode");
return -ENODEV;
}
Expand Down
14 changes: 10 additions & 4 deletions trunk/drivers/media/dvb/frontends/drxk_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -1380,20 +1380,20 @@ static int DownloadMicrocode(struct drxk_state *state,
const u8 pMCImage[], u32 Length)
{
const u8 *pSrc = pMCImage;
u16 Flags;
u16 Drain;
u32 Address;
u16 nBlocks;
u16 BlockSize;
u16 BlockCRC;
u32 offset = 0;
u32 i;
int status = 0;

dprintk(1, "\n");

/* down the drain (we don care about MAGIC_WORD) */
/* down the drain (we don't care about MAGIC_WORD) */
#if 0
/* For future reference */
Drain = (pSrc[0] << 8) | pSrc[1];
#endif
pSrc += sizeof(u16);
offset += sizeof(u16);
nBlocks = (pSrc[0] << 8) | pSrc[1];
Expand All @@ -1410,11 +1410,17 @@ static int DownloadMicrocode(struct drxk_state *state,
pSrc += sizeof(u16);
offset += sizeof(u16);

#if 0
/* For future reference */
Flags = (pSrc[0] << 8) | pSrc[1];
#endif
pSrc += sizeof(u16);
offset += sizeof(u16);

#if 0
/* For future reference */
BlockCRC = (pSrc[0] << 8) | pSrc[1];
#endif
pSrc += sizeof(u16);
offset += sizeof(u16);

Expand Down
8 changes: 1 addition & 7 deletions trunk/drivers/media/dvb/frontends/stb0899_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,11 +637,9 @@ static void stb0899_init_calc(struct stb0899_state *state)
struct stb0899_internal *internal = &state->internal;
int master_clk;
u8 agc[2];
u8 agc1cn;
u32 reg;

/* Read registers (in burst mode) */
agc1cn = stb0899_read_reg(state, STB0899_AGC1CN);
stb0899_read_regs(state, STB0899_AGC1REF, agc, 2); /* AGC1R and AGC2O */

/* Initial calculations */
Expand Down Expand Up @@ -823,15 +821,12 @@ static int stb0899_send_diseqc_burst(struct dvb_frontend *fe, fe_sec_mini_cmd_t

static int stb0899_diseqc_init(struct stb0899_state *state)
{
struct dvb_diseqc_master_cmd tx_data;
/*
struct dvb_diseqc_slave_reply rx_data;
*/
u8 f22_tx, f22_rx, reg;
u8 f22_tx, reg;

u32 mclk, tx_freq = 22000;/* count = 0, i; */
tx_data.msg[0] = 0xe2;
tx_data.msg_len = 3;
reg = stb0899_read_reg(state, STB0899_DISCNTRL2);
STB0899_SETFIELD_VAL(ONECHIP_TRX, reg, 0);
stb0899_write_reg(state, STB0899_DISCNTRL2, reg);
Expand All @@ -849,7 +844,6 @@ static int stb0899_diseqc_init(struct stb0899_state *state)
f22_tx = mclk / (tx_freq * 32);
stb0899_write_reg(state, STB0899_DISF22, f22_tx); /* DiSEqC Tx freq */
state->rx_freq = 20000;
f22_rx = mclk / (state->rx_freq * 32);

return 0;
}
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/media/dvb/frontends/stv0900_sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,6 @@ static void stv0900_track_optimization(struct dvb_frontend *fe)
blind_tun_sw = 0,
modulation;

enum fe_stv0900_rolloff rolloff;
enum fe_stv0900_modcode foundModcod;

dprintk("%s\n", __func__);
Expand Down Expand Up @@ -940,7 +939,6 @@ static void stv0900_track_optimization(struct dvb_frontend *fe)

freq1 = stv0900_read_reg(intp, CFR2);
freq0 = stv0900_read_reg(intp, CFR1);
rolloff = stv0900_get_bits(intp, ROLLOFF_STATUS);
if (intp->srch_algo[demod] == STV0900_BLIND_SEARCH) {
stv0900_write_reg(intp, SFRSTEP, 0x00);
stv0900_write_bits(intp, SCAN_ENABLE, 0);
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/media/dvb/mantis/hopper_cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static int devs;

static irqreturn_t hopper_irq_handler(int irq, void *dev_id)
{
u32 stat = 0, mask = 0, lstat = 0;
u32 stat = 0, mask = 0;
u32 rst_stat = 0, rst_mask = 0;

struct mantis_pci *mantis;
Expand All @@ -80,7 +80,6 @@ static irqreturn_t hopper_irq_handler(int irq, void *dev_id)

stat = mmread(MANTIS_INT_STAT);
mask = mmread(MANTIS_INT_MASK);
lstat = stat & ~MANTIS_INT_RISCSTAT;
if (!(stat & mask))
return IRQ_NONE;

Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/media/dvb/mantis/mantis_cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static char *label[10] = {

static irqreturn_t mantis_irq_handler(int irq, void *dev_id)
{
u32 stat = 0, mask = 0, lstat = 0;
u32 stat = 0, mask = 0;
u32 rst_stat = 0, rst_mask = 0;

struct mantis_pci *mantis;
Expand All @@ -88,7 +88,6 @@ static irqreturn_t mantis_irq_handler(int irq, void *dev_id)

stat = mmread(MANTIS_INT_STAT);
mask = mmread(MANTIS_INT_MASK);
lstat = stat & ~MANTIS_INT_RISCSTAT;
if (!(stat & mask))
return IRQ_NONE;

Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/media/dvb/mantis/mantis_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@ void mantis_dma_start(struct mantis_pci *mantis)

void mantis_dma_stop(struct mantis_pci *mantis)
{
u32 stat = 0, mask = 0;

stat = mmread(MANTIS_INT_STAT);
mask = mmread(MANTIS_INT_MASK);
dprintk(MANTIS_DEBUG, 1, "Mantis Stop DMA engine");

mmwrite((mmread(MANTIS_GPIF_ADDR) & (~(MANTIS_GPIF_HIFRDWRN))), MANTIS_GPIF_ADDR);
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/media/dvb/mantis/mantis_evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ static void mantis_hifevm_work(struct work_struct *work)
struct mantis_ca *ca = container_of(work, struct mantis_ca, hif_evm_work);
struct mantis_pci *mantis = ca->ca_priv;

u32 gpif_stat, gpif_mask;
u32 gpif_stat;

gpif_stat = mmread(MANTIS_GPIF_STATUS);
gpif_mask = mmread(MANTIS_GPIF_IRQCFG);

if (gpif_stat & MANTIS_GPIF_DETSTAT) {
if (gpif_stat & MANTIS_CARD_PLUGIN) {
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/rc/ir-sanyo-decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev)
{
struct sanyo_dec *data = &dev->raw->sanyo;
u32 scancode;
u8 address, not_address, command, not_command;
u8 address, command, not_command;

if (!(dev->raw->enabled_protocols & RC_TYPE_SANYO))
return 0;
Expand Down Expand Up @@ -154,7 +154,7 @@ static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev)
break;

address = bitrev16((data->bits >> 29) & 0x1fff) >> 3;
not_address = bitrev16((data->bits >> 16) & 0x1fff) >> 3;
/* not_address = bitrev16((data->bits >> 16) & 0x1fff) >> 3; */
command = bitrev8((data->bits >> 8) & 0xff);
not_command = bitrev8((data->bits >> 0) & 0xff);

Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/media/rc/mceusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ static void mceusb_dev_printdata(struct mceusb_dev *ir, char *buf,
{
char codes[USB_BUFLEN * 3 + 1];
char inout[9];
u8 cmd, subcmd, data1, data2, data3, data4, data5;
u8 cmd, subcmd, data1, data2, data3, data4;
struct device *dev = ir->dev;
int i, start, skip = 0;
u32 carrier, period;
Expand Down Expand Up @@ -553,7 +553,6 @@ static void mceusb_dev_printdata(struct mceusb_dev *ir, char *buf,
data2 = buf[start + 3] & 0xff;
data3 = buf[start + 4] & 0xff;
data4 = buf[start + 5] & 0xff;
data5 = buf[start + 6] & 0xff;

switch (cmd) {
case MCE_CMD_NULL:
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/media/video/videobuf-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ static int videobuf_dvb_thread(void *data)
struct videobuf_dvb *dvb = data;
struct videobuf_buffer *buf;
unsigned long flags;
int err;
void *outp;

dprintk("dvb thread started\n");
Expand All @@ -57,7 +56,7 @@ static int videobuf_dvb_thread(void *data)
buf = list_entry(dvb->dvbq.stream.next,
struct videobuf_buffer, stream);
list_del(&buf->stream);
err = videobuf_waiton(&dvb->dvbq, buf, 0, 1);
videobuf_waiton(&dvb->dvbq, buf, 0, 1);

/* no more feeds left or stop_feed() asked us to quit */
if (0 == dvb->nfeeds)
Expand Down

0 comments on commit 4a494b5

Please sign in to comment.