fix standby name (web manual, hdd standby)
[vuplus_openembedded] / recipes / enigma2 / enigma2 / 7025_pvr_device_compatibility.diff
1 --- a/lib/dvb/demux.cpp
2 +++ b/lib/dvb/demux.cpp
3 @@ -87,9 +87,8 @@ int eDVBDemux::openDemux(void)
4  
5  int eDVBDemux::openDVR(int flags)
6  {
7 -       char filename[128];
8 -       snprintf(filename, 128, "/dev/dvb/adapter%d/dvr%d", adapter, demux);
9 -       return ::open(filename, flags);
10 +       eDebug("FIXMEEEE.... 7025 drivers doesn't support /dev/dvb/adapterX/dvrX!!!!");
11 +       return ::open("/dev/misc/pvr", flags);
12  }
13  
14  DEFINE_REF(eDVBDemux)
15 --- a/lib/dvb/dvb.cpp
16 +++ b/lib/dvb/dvb.cpp
17 @@ -1798,19 +1798,11 @@ RESULT eDVBChannel::playSource(ePtr<iTsSource> &source, const char *streaminfo_f
18                         return -ENODEV;
19                 }
20  #else
21 -               ePtr<eDVBAllocatedDemux> &demux = m_demux ? m_demux : m_decoder_demux;
22 -               if (demux)
23 -               {
24 -                       m_pvr_fd_dst = demux->get().openDVR(O_WRONLY);
25 -                       if (m_pvr_fd_dst < 0)
26 -                       {
27 -                               eDebug("can't open /dev/dvb/adapterX/dvrX - you need to buy the new(!) $$$ box! (%m)"); // or wait for the driver to be improved.
28 -                               return -ENODEV;
29 -                       }
30 -               }
31 -               else
32 +               eDebug("FIXMEEEE.... 7025 drivers doesn't support /dev/dvb/adapterX/dvrX!!!!");
33 +               m_pvr_fd_dst = open("/dev/misc/pvr", O_WRONLY);
34 +               if (m_pvr_fd_dst < 0)
35                 {
36 -                       eDebug("no demux allocated yet.. so its not possible to open the dvr device!!");
37 +                       eDebug("can't open /dev/misc/pvr - you need to buy the new(!) $$$ box! (%m)"); // or wait for the driver to be improved.
38                         return -ENODEV;
39                 }
40  #endif