From: Brad Love Date: Tue, 26 Jan 2021 01:54:14 +0000 (+0100) Subject: media: em28xx-core: Fix TS2 active led X-Git-Tag: accepted/tizen/unified/20230118.172025~7835^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=688e2dd468ace07b6c6d54f37d50ad03b5ec6cf7;p=platform%2Fkernel%2Flinux-rpi.git media: em28xx-core: Fix TS2 active led TS2 active led is completely igored, fix that. Signed-off-by: Brad Love Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/em28xx/em28xx-core.c b/drivers/media/usb/em28xx/em28xx-core.c index 3daa64b..584fa40 100644 --- a/drivers/media/usb/em28xx/em28xx-core.c +++ b/drivers/media/usb/em28xx/em28xx-core.c @@ -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,