Chameleon

Chameleon Commit Details

Date:2012-05-10 15:52:06 (7 years 2 months ago)
Author:Cosmosis Jones
Commit:1957
Parents: 1956
Message:added EnableHDMIAudio
Changes:
M/trunk/i386/libsaio/ati.c

File differences

trunk/i386/libsaio/ati.c
831831
832832
833833
834
834835
835836
836837
......
871872
872873
873874
875
874876
875877
876878
877879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
878896
879897
880898
bool get_refclk_val(value_t *val);
bool get_platforminfo_val(value_t *val);
bool get_vramtotalsize_val(value_t *val);
bool get_hdmiaudio(value_t * val);
typedef struct {
uint32_tflags;
{FLAGTRUE,false,"device_type",get_nameparent_val,NULVAL},
{FLAGTRUE,false,"model",get_model_val,STRVAL("ATI Radeon")},
//{FLAGTRUE,false,"VRAM,totalsize",get_vramtotalsize_val,NULVAL},
{FLAGTRUE,false, "hda-gfx",get_hdmiaudio,NULVAL},
{FLAGTRUE,false,NULL,NULL,NULVAL}
};
bool get_hdmiaudio(value_t * val)
{
bool doit = false;
if(getBoolForKey(kEnableHDMIAudio, &doit, &bootInfo->chameleonConfig) && doit){
val->type = kStr;
val->size = strlen("onboard-1") + 1;
val->data = (uint8_t *)"onboard-1";
return true;
}
return false;
}
bool get_bootdisplay_val(value_t *val)
{
static uint32_t v = 0;

Archive Download the corresponding diff file

Revision: 1957