Changeset 30804


Ignore:
Timestamp:
11/01/14 19:04:00 (9 years ago)
Author:
gost
Message:

[titan] mipsel.. cec settings only in the System Menu

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/adjust.h

    r30767 r30804  
    258258        else
    259259                emucontrol->hidden = NO;
    260 #ifndef MIPSEL
    261260        if(checkbox("ATEMIO510") == 1 || checkbox("UFS912") == 1 || checkbox("UFS913") == 1 || checkbox("ATEMIO7600") == 1 || checkbox("ATEMIO520") == 1 || checkbox("ATEMIO530") == 1)
    262261                usecec->hidden = NO;
    263262        else
    264263                usecec->hidden = YES;
    265 #else
    266         usecec->hidden = NO;
    267 #endif
    268264
    269265        if(checkbox("ATEMIO7600") == 1)
     
    385381                        if(ostrcmp(minitv->ret, "1") == 0) resettvpic();
    386382                        addconfigscreencheck("minitv", minitv, "0");
    387 #ifndef MIPSEL
     383
    388384                        if(checkbox("ATEMIO510") == 1 || checkbox("ATEMIO520") == 1 || checkbox("ATEMIO530") == 1 || checkbox("ATEMIO7600") == 1 || checkbox("UFS912") == 1 || checkbox("UFS913") == 1)
    389385                                addconfigscreencheck("usecec", usecec, "0");
    390 #else
    391                         addconfigscreencheck("usecec", usecec, "0");
    392 #endif
     386
    393387                        if(checkbox("ATEMIO7600") == 1)
    394388                        {
  • titan/titan/global.h

    r30787 r30804  
    234234int setcecstandby(int flag)
    235235{
    236         if(getconfigint("usecec", NULL) == 1)
     236        if(getconfigint("usecec", NULL) == 1 || getconfigint("cec_on", NULL) == 1)
    237237        {
    238238#ifndef MIPSEL         
     
    250250                        free(tmpstr1); tmpstr1 = NULL;
    251251                }
    252         }
    253252#else
    254                 unsigned char data[3];
    255                 int hdmiFd = open("/dev/hdmi_cec", O_RDWR | O_NONBLOCK);
    256                
    257                 data[0] = 0x0f;
    258                 data[1] = 0x01;
    259 
    260253                if(flag == 0)
    261                         data[2] = 0x04;
     254                        cecwakeup();
    262255                else
    263                         data[2] = 0x36;
    264                 if(hdmiFd > 0)
    265                 {
    266                         write(hdmiFd, &data, 3);
    267                         close(hdmiFd);
    268                 }
    269         }
    270         else
    271         {
    272                 if(getconfigint("cec_on", NULL) == 1)
    273                 {
    274                         if(flag == 0)
    275                                 cecwakeup();
    276                         else
    277                                 cecstandby();
    278                 }
     256                        cecstandby();
    279257        }
    280258#endif
Note: See TracChangeset for help on using the changeset viewer.