Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331207
b: refs/heads/master
c: 0c42a55
h: refs/heads/master
i:
  331205: 172162a
  331203: ad7c339
  331199: af61ee1
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Oct 1, 2012
1 parent ba77ec5 commit 9dd4b97
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 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: a36a66d7aaa6468a91941ffcfb6d324f28825910
refs/heads/master: 0c42a55c86228ba9d0969562fcebc2adc79bfddb
24 changes: 13 additions & 11 deletions trunk/drivers/media/usb/em28xx/em28xx-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,20 +1002,22 @@ static int em28xx_dvb_init(struct em28xx *dev)
result = -EINVAL;
goto out_free;
}
}

#ifdef CONFIG_GPIOLIB
/* enable LNA for DVB-T, DVB-T2 and DVB-C */
result = gpio_request_one(dvb->lna_gpio, GPIOF_OUT_INIT_LOW,
NULL);
if (result)
em28xx_errdev("gpio request failed %d\n", result);
else
gpio_free(dvb->lna_gpio);

result = 0; /* continue even set LNA fails */
/* enable LNA for DVB-T, DVB-T2 and DVB-C */
result = gpio_request_one(dvb->lna_gpio,
GPIOF_OUT_INIT_LOW, NULL);
if (result)
em28xx_errdev("gpio request failed %d\n",
result);
else
gpio_free(dvb->lna_gpio);

result = 0; /* continue even set LNA fails */
#endif
dvb->fe[0]->ops.set_lna = em28xx_pctv_290e_set_lna;
dvb->fe[0]->ops.set_lna = em28xx_pctv_290e_set_lna;
}

break;
case EM2884_BOARD_HAUPPAUGE_WINTV_HVR_930C:
{
Expand Down

0 comments on commit 9dd4b97

Please sign in to comment.