Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261311
b: refs/heads/master
c: 00d2e7a
h: refs/heads/master
i:
  261309: f6062f3
  261307: 4db4a8f
  261303: c12f0db
  261295: 0454b9e
  261279: 435ad55
  261247: 0cc708e
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jul 27, 2011
1 parent c17201b commit 3cb7d57
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 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: 67a8dbbc4e04cd256987b189352472a59aff73be
refs/heads/master: 00d2e7ad9dd4e88224d091e454371d8a9a80719f
9 changes: 5 additions & 4 deletions trunk/drivers/media/video/em28xx/em28xx-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,9 @@ static int snd_em28xx_capture_open(struct snd_pcm_substream *substream)

runtime->hw = snd_em28xx_hw_capture;
if (dev->alt == 0 && dev->adev.users == 0) {
int errCode;
dev->alt = 7;
dprintk("changing alternate number to 7\n");
errCode = usb_set_interface(dev->udev, 0, 7);
usb_set_interface(dev->udev, 0, 7);
}

dev->adev.users++;
Expand Down Expand Up @@ -342,6 +341,8 @@ static int snd_em28xx_hw_capture_params(struct snd_pcm_substream *substream,

ret = snd_pcm_alloc_vmalloc_buffer(substream,
params_buffer_bytes(hw_params));
if (ret < 0)
return ret;
format = params_format(hw_params);
rate = params_rate(hw_params);
channels = params_channels(hw_params);
Expand Down Expand Up @@ -393,7 +394,7 @@ static int snd_em28xx_capture_trigger(struct snd_pcm_substream *substream,
int cmd)
{
struct em28xx *dev = snd_pcm_substream_chip(substream);
int retval;
int retval = 0;

switch (cmd) {
case SNDRV_PCM_TRIGGER_START:
Expand All @@ -406,7 +407,7 @@ static int snd_em28xx_capture_trigger(struct snd_pcm_substream *substream,
retval = -EINVAL;
}
schedule_work(&dev->wq_trigger);
return 0;
return retval;
}

static snd_pcm_uframes_t snd_em28xx_capture_pointer(struct snd_pcm_substream
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/media/video/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -2660,10 +2660,9 @@ void em28xx_card_setup(struct em28xx *dev)
.addr = 0xba >> 1,
.platform_data = &pdata,
};
struct v4l2_subdev *sd;

pdata.xtal = dev->sensor_xtal;
sd = v4l2_i2c_new_subdev_board(&dev->v4l2_dev, &dev->i2c_adap,
v4l2_i2c_new_subdev_board(&dev->v4l2_dev, &dev->i2c_adap,
&mt9v011_info, NULL);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/em28xx/em28xx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ EXPORT_SYMBOL_GPL(em28xx_set_mode);
static void em28xx_irq_callback(struct urb *urb)
{
struct em28xx *dev = urb->context;
int rc, i;
int i;

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

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

/* Reset urb buffers */
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/media/video/em28xx/em28xx-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ static int em28xx_i2c_recv_bytes(struct em28xx *dev, unsigned char addr,
*/
static int em28xx_i2c_check_for_device(struct em28xx *dev, unsigned char addr)
{
char msg;
int ret;
msg = addr;

ret = dev->em28xx_read_reg_req(dev, 2, addr);
if (ret < 0) {
Expand Down

0 comments on commit 3cb7d57

Please sign in to comment.