diff options
author | Matthieu Rogez <matthieu.rogez@gmail.com> | 2016-02-28 06:26:22 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-03-03 12:22:24 -0500 |
commit | 565e37d168ee842c5f6349a5530f8e85651ec8e5 (patch) | |
tree | c6ca26388857db39d2b31df8c192cb0817919330 | |
parent | dd837fb9a5092b10ebd75a1770257204ba20c872 (diff) |
[media] em28xx: add support for Terratec Grabby Record led
Terratec Grabby (hw rev 2) Record led is connected to GPIO 3
and its logic is inverted: (PIO3 = 0: on, PIO3 = 1: off).
Signed-off-by: Matthieu Rogez <matthieu.rogez@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/usb/em28xx/em28xx-cards.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c index 4051146f7d13..5e127e48c945 100644 --- a/drivers/media/usb/em28xx/em28xx-cards.c +++ b/drivers/media/usb/em28xx/em28xx-cards.c | |||
@@ -560,6 +560,16 @@ static struct em28xx_led pctv_80e_leds[] = { | |||
560 | {-1, 0, 0, 0}, | 560 | {-1, 0, 0, 0}, |
561 | }; | 561 | }; |
562 | 562 | ||
563 | static struct em28xx_led terratec_grabby_leds[] = { | ||
564 | { | ||
565 | .role = EM28XX_LED_ANALOG_CAPTURING, | ||
566 | .gpio_reg = EM2820_R08_GPIO_CTRL, | ||
567 | .gpio_mask = EM_GPIO_3, | ||
568 | .inverted = 1, | ||
569 | }, | ||
570 | {-1, 0, 0, 0}, | ||
571 | }; | ||
572 | |||
563 | /* | 573 | /* |
564 | * Board definitions | 574 | * Board definitions |
565 | */ | 575 | */ |
@@ -2016,6 +2026,7 @@ struct em28xx_board em28xx_boards[] = { | |||
2016 | .amux = EM28XX_AMUX_LINE_IN, | 2026 | .amux = EM28XX_AMUX_LINE_IN, |
2017 | } }, | 2027 | } }, |
2018 | .buttons = std_snapshot_button, | 2028 | .buttons = std_snapshot_button, |
2029 | .leds = terratec_grabby_leds, | ||
2019 | }, | 2030 | }, |
2020 | [EM2860_BOARD_TERRATEC_AV350] = { | 2031 | [EM2860_BOARD_TERRATEC_AV350] = { |
2021 | .name = "Terratec AV350", | 2032 | .name = "Terratec AV350", |