Commit 565e37d1 authored by Matthieu Rogez's avatar Matthieu Rogez Committed by Mauro Carvalho Chehab

[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: default avatarMatthieu Rogez <matthieu.rogez@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent dd837fb9
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment