Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1345222
| From | Matthieu Rogez <matthieu.rogez@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] [media] em28xx: add support for Terratec Grabby Record led |
| Date | 2016-02-28 12:30 +0100 |
| Message-ID | <r77HY-1y3-9@gated-at.bofh.it> (permalink) |
| References | <r77HX-1y3-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
---
drivers/media/usb/em28xx/em28xx-cards.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c
index 4051146..5e127e4 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",
--
2.7.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Improve Terratec Grabby (hw rev 2) support Matthieu Rogez <matthieu.rogez@gmail.com> - 2016-02-28 12:30 +0100
[PATCH 1/3] [media] em28xx: add support for Terratec Grabby REC button Matthieu Rogez <matthieu.rogez@gmail.com> - 2016-02-28 12:30 +0100
[PATCH 2/3] [media] em28xx: add support for Terratec Grabby Record led Matthieu Rogez <matthieu.rogez@gmail.com> - 2016-02-28 12:30 +0100
[PATCH 3/3] [media] em28xx: fix Terratec Grabby AC97 codec detection Matthieu Rogez <matthieu.rogez@gmail.com> - 2016-02-28 12:30 +0100
Re: [PATCH 3/3] [media] em28xx: fix Terratec Grabby AC97 codec detection Mauro Carvalho Chehab <mchehab@osg.samsung.com> - 2016-03-03 18:30 +0100
csiph-web