Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306381
b: refs/heads/master
c: e92ba28
h: refs/heads/master
i:
  306379: 021dcb7
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 14, 2012
1 parent cc000c2 commit 26d167c
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 20 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: 30fdf035874a3b3f5d54f75147bddc2467cb0b7d
refs/heads/master: e92ba2830b62ba6315d48083bb7f02d3148d77db
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/au0828/au0828-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void au0828_irq_callback(struct urb *urb)
struct au0828_dmaqueue *dma_q = urb->context;
struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq);
unsigned long flags = 0;
int rc, i;
int i;

switch (urb->status) {
case 0: /* success */
Expand All @@ -138,7 +138,7 @@ static void au0828_irq_callback(struct urb *urb)

/* Copy data from URB */
spin_lock_irqsave(&dev->slock, flags);
rc = dev->isoc_ctl.isoc_copy(dev, urb);
dev->isoc_ctl.isoc_copy(dev, urb);
spin_unlock_irqrestore(&dev->slock, flags);

/* Reset urb buffers */
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/media/video/cx23885/cx23888-ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,7 @@ static u64 ns_to_pulse_clocks(u32 ns)

static u16 pulse_clocks_to_clock_divider(u64 count)
{
u32 rem;

rem = do_div(count, (FIFO_RXTX << 2) | 0x3);
do_div(count, (FIFO_RXTX << 2) | 0x3);

/* net result needs to be rounded down and decremented by 1 */
if (count > RXCLK_RCD + 1)
Expand Down
6 changes: 1 addition & 5 deletions trunk/drivers/media/video/cx25840/cx25840-ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,7 @@ static u64 ns_to_pulse_clocks(u32 ns)

static u16 pulse_clocks_to_clock_divider(u64 count)
{
u32 rem;

rem = do_div(count, (FIFO_RXTX << 2) | 0x3);
do_div(count, (FIFO_RXTX << 2) | 0x3);

/* net result needs to be rounded down and decremented by 1 */
if (count > RXCLK_RCD + 1)
Expand Down Expand Up @@ -860,12 +858,10 @@ static int cx25840_ir_tx_write(struct v4l2_subdev *sd, u8 *buf, size_t count,
ssize_t *num)
{
struct cx25840_ir_state *ir_state = to_ir_state(sd);
struct i2c_client *c;

if (ir_state == NULL)
return -ENODEV;

c = ir_state->c;
#if 0
/*
* FIXME - the code below is an incomplete and untested sketch of what
Expand Down
11 changes: 7 additions & 4 deletions trunk/drivers/media/video/em28xx/em28xx-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ static int snd_em28xx_pcm_close(struct snd_pcm_substream *substream)
static int snd_em28xx_hw_capture_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *hw_params)
{
unsigned int channels, rate, format;
int ret;

dprintk("Setting capture parameters\n");
Expand All @@ -352,13 +351,17 @@ static int snd_em28xx_hw_capture_params(struct snd_pcm_substream *substream,
params_buffer_bytes(hw_params));
if (ret < 0)
return ret;
#if 0
/* TODO: set up em28xx audio chip to deliver the correct audio format,
current default is 48000hz multiplexed => 96000hz mono
which shouldn't matter since analogue TV only supports mono */
unsigned int channels, rate, format;

format = params_format(hw_params);
rate = params_rate(hw_params);
channels = params_channels(hw_params);
#endif

/* TODO: set up em28xx audio chip to deliver the correct audio format,
current default is 48000hz multiplexed => 96000hz mono
which shouldn't matter since analogue TV only supports mono */
return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/video/hdpvr/hdpvr-control.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ int get_input_lines_info(struct hdpvr_device *dev)
"get input lines info returned: %d, %s\n", ret,
print_buf);
}
#else
(void)ret; /* suppress compiler warning */
#endif
lines = dev->usbc_buf[1] << 8 | dev->usbc_buf[0];
mutex_unlock(&dev->usbc_mutex);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/hdpvr/hdpvr-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ static int hdpvr_try_ctrl(struct v4l2_ext_control *ctrl, int ac3)
default:
return -EINVAL;
}
return 0;
return ret;
}

static int vidioc_try_ext_ctrls(struct file *file, void *priv,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/saa7134/saa7134-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -2036,7 +2036,7 @@ static int saa7134_s_tuner(struct file *file, void *priv,
mode = dev->thread.mode;
if (UNSET == mode) {
rx = saa7134_tvaudio_getstereo(dev);
mode = saa7134_tvaudio_rx2mode(t->rxsubchans);
mode = saa7134_tvaudio_rx2mode(rx);
}
if (mode != t->audmode)
dev->thread.mode = t->audmode;
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/media/video/sn9c102/sn9c102_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,10 +995,8 @@ static int sn9c102_stop_transfer(struct sn9c102_device* cam)

static int sn9c102_stream_interrupt(struct sn9c102_device* cam)
{
long timeout;

cam->stream = STREAM_INTERRUPT;
timeout = wait_event_timeout(cam->wait_stream,
wait_event_timeout(cam->wait_stream,
(cam->stream == STREAM_OFF) ||
(cam->state & DEV_DISCONNECTED),
SN9C102_URB_TIMEOUT);
Expand Down

0 comments on commit 26d167c

Please sign in to comment.