diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-11-22 15:32:19 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 17:53:41 -0200 |
commit | 7b29e10d609035b5f93546ac6bcd1c5d810476a7 (patch) | |
tree | d5081671260df6195f37952e29515f1c7bdb0356 /drivers/media/dvb/siano/smscoreapi.c | |
parent | 851a90914346b9a3b1afc0ae9c1ed2eb3dae9b5a (diff) | |
download | blackbird-obmc-linux-7b29e10d609035b5f93546ac6bcd1c5d810476a7.tar.gz blackbird-obmc-linux-7b29e10d609035b5f93546ac6bcd1c5d810476a7.zip |
V4L/DVB (9739): sms1xxx: enable signal quality indicator LEDs on Hauppauge WinTV MiniStick
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/siano/smscoreapi.c')
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c index b0e8bcb1238d..cf613f22fb8d 100644 --- a/drivers/media/dvb/siano/smscoreapi.c +++ b/drivers/media/dvb/siano/smscoreapi.c @@ -91,6 +91,7 @@ struct smscore_device_t { struct completion init_device_done, reload_start_done, resume_done; int board_id; + int led_state; }; void smscore_set_board_id(struct smscore_device_t *core, int id) @@ -98,6 +99,13 @@ void smscore_set_board_id(struct smscore_device_t *core, int id) core->board_id = id; } +int smscore_led_state(struct smscore_device_t *core, int led) +{ + if (led >= 0) + core->led_state = led; + return core->led_state; +} + int smscore_get_board_id(struct smscore_device_t *core) { return core->board_id; |