summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2008-02-09 00:00:44 -0600
committerMike Isely <isely@pobox.com>2008-02-09 00:00:44 -0600
commit492871136f3dbe02e441ad5992c20e8d2a529678 (patch)
tree61c27cea7ff24b643f5bd77f7482abf3a17bfff6 /linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c
parent8950cc6625ee60e52951c8ab45de3fc081a8ea79 (diff)
downloadmediapointer-dvb-s2-492871136f3dbe02e441ad5992c20e8d2a529678.tar.gz
mediapointer-dvb-s2-492871136f3dbe02e441ad5992c20e8d2a529678.tar.bz2
pvrusb2: Indicate streaming status via LED
From: Mike Isely <isely@pobox.com> Most of this originates from Michael Krufky <mkrufky@linuxtv.org>; these changes move LED control into separate functions. This is the first step in new work to make LED control a device-specific attribute. Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c b/linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c
index 6a19264df..81d6d9fe7 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c
@@ -513,9 +513,7 @@ int pvr2_encoder_start(struct pvr2_hdw *hdw)
/* unmask some interrupts */
pvr2_write_register(hdw, 0x0048, 0xbfffffff);
- /* change some GPIO data */
- pvr2_hdw_gpio_chg_dir(hdw,0xffffffff,0x00000481);
- pvr2_hdw_gpio_chg_out(hdw,0xffffffff,0x00000000);
+ pvr2_led_ctrl(hdw, 1);
pvr2_encoder_vcmd(hdw,CX2341X_ENC_MUTE_VIDEO,1,
hdw->input_val == PVR2_CVAL_INPUT_RADIO ? 1 : 0);
@@ -559,11 +557,7 @@ int pvr2_encoder_stop(struct pvr2_hdw *hdw)
break;
}
- /* change some GPIO data */
- /* Note: Bit d7 of dir appears to control the LED. So we shut it
- off here. */
- pvr2_hdw_gpio_chg_dir(hdw,0xffffffff,0x00000401);
- pvr2_hdw_gpio_chg_out(hdw,0xffffffff,0x00000000);
+ pvr2_led_ctrl(hdw, 0);
return status;
}