This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/media_tree.git tree:

Subject: [media] em28xx: add support for Terratec Grabby Record led
Author:  Matthieu Rogez <[email protected]>
Date:    Sun Feb 28 08:26:22 2016 -0300

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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/usb/em28xx/em28xx-cards.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

---

http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=565e37d168ee842c5f6349a5530f8e85651ec8e5
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[] = {
        {-1, 0, 0, 0},
 };
 
+static struct em28xx_led terratec_grabby_leds[] = {
+       {
+               .role      = EM28XX_LED_ANALOG_CAPTURING,
+               .gpio_reg  = EM2820_R08_GPIO_CTRL,
+               .gpio_mask = EM_GPIO_3,
+               .inverted  = 1,
+       },
+       {-1, 0, 0, 0},
+};
+
 /*
  *  Board definitions
  */
@@ -2016,6 +2026,7 @@ struct em28xx_board em28xx_boards[] = {
                        .amux     = EM28XX_AMUX_LINE_IN,
                } },
                .buttons         = std_snapshot_button,
+               .leds            = terratec_grabby_leds,
        },
        [EM2860_BOARD_TERRATEC_AV350] = {
                .name            = "Terratec AV350",

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to