Skip to content

Commit

Permalink
media: em28xx-core: Fix TS2 active led
Browse files Browse the repository at this point in the history
TS2 active led is completely igored, fix that.

Signed-off-by: Brad Love <brad@nextdimension.cc>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  • Loading branch information
Brad Love authored and Mauro Carvalho Chehab committed Feb 5, 2021
1 parent b53f2fa commit 688e2dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/usb/em28xx/em28xx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,10 @@ int em28xx_capture_start(struct em28xx *dev, int start)

if (dev->mode == EM28XX_ANALOG_MODE)
led = em28xx_find_led(dev, EM28XX_LED_ANALOG_CAPTURING);
else
else if (dev->ts == PRIMARY_TS)
led = em28xx_find_led(dev, EM28XX_LED_DIGITAL_CAPTURING);
else
led = em28xx_find_led(dev, EM28XX_LED_DIGITAL_CAPTURING_TS2);

if (led)
em28xx_write_reg_bits(dev, led->gpio_reg,
Expand Down

0 comments on commit 688e2dd

Please sign in to comment.