Commit 88e4fcda authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] em28xx: only enable PCTV 80e led when streaming

Instead of keeping the led always on, use it to indicate
when DVB is streaming.
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent ba38acb1
...@@ -228,8 +228,8 @@ static struct em28xx_reg_seq terratec_cinergy_USB_XS_FR_digital[] = { ...@@ -228,8 +228,8 @@ static struct em28xx_reg_seq terratec_cinergy_USB_XS_FR_digital[] = {
7: LED on, active high */ 7: LED on, active high */
static struct em28xx_reg_seq em2874_pctv_80e_digital[] = { static struct em28xx_reg_seq em2874_pctv_80e_digital[] = {
{EM28XX_R06_I2C_CLK, 0x45, 0xff, 10}, /*400 KHz*/ {EM28XX_R06_I2C_CLK, 0x45, 0xff, 10}, /*400 KHz*/
{EM2874_R80_GPIO_P0_CTRL, 0x80, 0xff, 100},/*Demod reset*/ {EM2874_R80_GPIO_P0_CTRL, 0x00, 0xff, 100},/*Demod reset*/
{EM2874_R80_GPIO_P0_CTRL, 0xc0, 0xff, 10}, {EM2874_R80_GPIO_P0_CTRL, 0x40, 0xff, 10},
{ -1, -1, -1, -1}, { -1, -1, -1, -1},
}; };
...@@ -526,6 +526,16 @@ static struct em28xx_led kworld_ub435q_v3_leds[] = { ...@@ -526,6 +526,16 @@ static struct em28xx_led kworld_ub435q_v3_leds[] = {
{-1, 0, 0, 0}, {-1, 0, 0, 0},
}; };
static struct em28xx_led pctv_80e_leds[] = {
{
.role = EM28XX_LED_DIGITAL_CAPTURING,
.gpio_reg = EM2874_R80_GPIO_P0_CTRL,
.gpio_mask = 0x80,
.inverted = 0,
},
{-1, 0, 0, 0},
};
/* /*
* Board definitions * Board definitions
...@@ -2179,6 +2189,7 @@ struct em28xx_board em28xx_boards[] = { ...@@ -2179,6 +2189,7 @@ struct em28xx_board em28xx_boards[] = {
.dvb_gpio = em2874_pctv_80e_digital, .dvb_gpio = em2874_pctv_80e_digital,
.decoder = EM28XX_NODECODER, .decoder = EM28XX_NODECODER,
.ir_codes = RC_MAP_PINNACLE_PCTV_HD, .ir_codes = RC_MAP_PINNACLE_PCTV_HD,
.leds = pctv_80e_leds,
}, },
/* 1ae7:9003/9004 SpeedLink Vicious And Devine Laplace webcam /* 1ae7:9003/9004 SpeedLink Vicious And Devine Laplace webcam
* Empia EM2765 + OmniVision OV2640 */ * Empia EM2765 + OmniVision OV2640 */
......
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