Chameleon

Chameleon Commit Details

Date:2012-05-08 20:48:02 (11 years 11 months ago)
Author:Cosmosis Jones
Commit:1950
Parents: 1949
Message:http://forge.voodooprojects.org/p/chameleon/issues/67/ Added EnableHDMIAudio flag and added it to nvidia.c Need to still do ati
Changes:
M/trunk/doc/BootHelp.txt
M/trunk/i386/libsaio/nvidia.c
M/trunk/i386/boot2/boot.h

File differences

trunk/i386/libsaio/nvidia.c
16671667
16681668
16691669
1670
1670
16711671
16721672
16731673
16741674
16751675
16761676
1677
1678
1679
1680
1681
1682
1677
16831678
16841679
16851680
16861681
16871682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
16881693
16891694
16901695
devprop_add_nvidia_template(device);
devprop_add_value(device, "NVCAP", default_NVCAP, NVCAP_LEN);
devprop_add_value(device, "NVPM", default_NVPM, NVPM_LEN);
devprop_add_value(device, "NVPM", default_NVPM, NVPM_LEN);
devprop_add_value(device, "VRAM,totalsize", (uint8_t*)&videoRam, 4);
devprop_add_value(device, "model", (uint8_t*)model, strlen(model) + 1);
devprop_add_value(device, "rom-revision", (uint8_t*)biosVersion, strlen(biosVersion) + 1);
devprop_add_value(device, "@0,display-cfg", default_dcfg_0, DCFG0_LEN);
devprop_add_value(device, "@1,display-cfg", default_dcfg_1, DCFG1_LEN);
//add HDMI Audio back to nvidia
//http://forge.voodooprojects.org/p/chameleon/issues/67/
//uint8_t connector_type_1[]= {0x00, 0x08, 0x00, 0x00};
//devprop_add_value(device, "@1,connector-type",connector_type_1, 4);
//end Nvidia HDMI Audio
if (getBoolForKey(kVBIOS, &doit, &bootInfo->chameleonConfig) && doit)
{
devprop_add_value(device, "vbios", rom, (nvBiosOveride > 0) ? nvBiosOveride : (rom[2] * 512));
}
//add HDMI Audio back to nvidia
doit = false;
//http://forge.voodooprojects.org/p/chameleon/issues/67/
if(getBoolForKey(kEnableHDMIAudio, &doit, &bootInfo->chameleonConfig) && doit){
uint8_t connector_type_1[]= {0x00, 0x08, 0x00, 0x00};
devprop_add_value(device, "@1,connector-type",connector_type_1, 4);
}
//end Nvidia HDMI Audio
stringdata = malloc(sizeof(uint8_t) * string->length);
memcpy(stringdata, (uint8_t*)devprop_generate_string(string), string->length);
stringlength = string->length;
trunk/i386/boot2/boot.h
118118
119119
120120
121
121122
122123
123124
#define kEthernetBuiltIn"EthernetBuiltIn"/* pci_setup.c */
#define kGraphicsEnabler"GraphicsEnabler"/* pci_setup.c */
#define kEnableHDMIAudio"EnableHDMIAudio"/*ati.c && nvidia.c */
#define kForceHPET"ForceHPET"/* pci_setup.c */
#define kMD0Image"md0"/* ramdisk.h */
trunk/doc/BootHelp.txt
8585
8686
8787
88
8889
8990
9091
VBIOS=Yes|No Inject NVIDIA VBIOS into device-properties.
display_0=<value> Inject alternate value of display-cfg into NVDA,Display-A@0 (HEX).
display_1=<value> Inject alternate value of display-cfg into NVDA,Display-B@1 (HEX).
EnableHDMIAudio=Yes Inject HDMI audio for NVIDIA
EthernetBuiltIn=Yes|No Automatic "built-in"=yes device-properties generation
for ethernet interfaces.

Archive Download the corresponding diff file

Revision: 1950