summaryrefslogtreecommitdiff
path: root/dxr3interface.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2010-01-06 12:06:59 +0100
committerChristian Gmeiner <christian.gmeiner@gmail.com>2010-01-06 12:06:59 +0100
commit30f72a524e31b425bd2397c9dddea25bec14d1e5 (patch)
tree79c050aa1b2b1c19b0c8f05108c481d776b709c0 /dxr3interface.c
parentdbab37dc8ea0dd7de03f76b919bed557d851e7f8 (diff)
downloadvdr-plugin-dxr3-30f72a524e31b425bd2397c9dddea25bec14d1e5.tar.gz
vdr-plugin-dxr3-30f72a524e31b425bd2397c9dddea25bec14d1e5.tar.bz2
fix bug #223 by adding a command line option to enable automatic fw loading
By default the vdr-dxr3-plugin does not load the fw automatically any more, as on recent linux systems the fw gets loaded when the em8300 driver module gets loaded. So we dont need to load the fw. But for older systems there is the command option -f/--firmware-loading to tell the plugin to load the firmware at startup.
Diffstat (limited to 'dxr3interface.c')
-rw-r--r--dxr3interface.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dxr3interface.c b/dxr3interface.c
index f5563cb..8f8f77f 100644
--- a/dxr3interface.c
+++ b/dxr3interface.c
@@ -431,6 +431,11 @@ void cDxr3Interface::PlayBlackFrame()
//! uploadroutine for microcode
void cDxr3Interface::UploadMicroCode()
{
+ if (!cSettings::instance()->loadFirmware()) {
+ return;
+ }
+
+ dsyslog("[dxr3-interface] loading firmware");
em8300_microcode_t em8300_microcode;
struct stat s;