Chameleon

Chameleon Commit Details

Date:2015-07-02 02:10:58 (4 years 18 days ago)
Author:ErmaC
Commit:2726
Parents: 2725
Message:Typo and cleanup for embedded HDAEnabler.
Changes:
M/trunk/i386/libsaio/hda.c

File differences

trunk/i386/libsaio/hda.c
9898
9999
100100
101
101
102102
103103
104104
......
552552
553553
554554
555
555
556556
557557
558
558559
560
559561
560562
561563
......
745747
746748
747749
748
750
749751
750
752
753
751754
752
755
753756
754757
755758
......
791794
792795
793796
794
797
795798
796799
797800
const char *hda_slot_name[]={ "AAPL,slot-name", "Built In" };
uint8_t default_HDEF_layout_id[]={0x0C, 0x00, 0x00, 0x00};
uint8_t default_HDEF_layout_id[]={0x01, 0x00, 0x00, 0x00};
#define HDEF_LEN ( sizeof(default_HDEF_layout_id) / sizeof(uint8_t) )
uint8_t default_HDAU_layout_id[]={0x01, 0x00, 0x00, 0x00};
#define HDAU_LEN ( sizeof(default_HDAU_layout_id) / sizeof(uint8_t) )
{ HDA_CODEC_NVIDIAGT240, 0, "GT240" },
{ HDA_CODEC_NVIDIAGTS450, 0, "GTS450" },
{ HDA_CODEC_NVIDIAGT440, 0, "GT440" }, // Revision Id: 0x100100
{ HDA_CODEC_NVIDIAGT440, 0, "GT440" },
{ HDA_CODEC_NVIDIAGTX470, 0, "GT470" },
{ HDA_CODEC_NVIDIAGTX550, 0, "GTX550" },
{ HDA_CODEC_NVIDIAGTX570, 0, "GTX570" },
{ HDA_CODEC_NVIDIAGT610, 0,"GT610" },
{ HDA_CODEC_INTELIP, 0, "Ibex Peak" },
{ HDA_CODEC_INTELBL, 0, "Bearlake" },
{ HDA_CODEC_INTELCA, 0, "Cantiga" },
default_HDEF_layout_id[0], default_HDEF_layout_id[1], default_HDEF_layout_id[2], default_HDEF_layout_id[3]);
}
devprop_add_value(device, "layout-id", default_HDEF_layout_id, HDEF_LEN);
devprop_add_value(device, "AAPL,slot-name", (uint8_t *)"Built-in", 9); // 0x09
devprop_add_value(device, "AAPL,slot-name", (uint8_t *)"Built-in", sizeof("Built-in")); // 0x09
devprop_add_value(device, "name", (uint8_t *)"audio", 6); // 0x06
devprop_add_value(device, "device_type", (uint8_t *)"High Definition Audio", 22); // 0x16
devprop_add_value(device, "device-type", (uint8_t *)"High Definition Audio Controller", sizeof("High Definition Audio Controller"));
devprop_add_value(device, "device_type", (uint8_t *)"Sound", sizeof("Sound"));
devprop_add_value(device, "built-in", &BuiltIn, 1);
devprop_add_value(device, "hda-gfx", (uint8_t *)"onboard-1", 10); // 0x0a
devprop_add_value(device, "hda-gfx", (uint8_t *)"onboard-1", sizeof("onboard-1")); // 0x0a
// "AFGLowPowerState" = <03000000>
break;
devprop_add_value(device, "layout-id", default_HDAU_layout_id, HDAU_LEN); /*FIX ME*/
devprop_add_value(device, "@0,connector-type", connector_type_value, 4);
devprop_add_value(device, "@1,connector-type", connector_type_value, 4);
devprop_add_value(device, "hda-gfx", (uint8_t *)"onboard-2", 10);
devprop_add_value(device, "hda-gfx", (uint8_t *)"onboard-2", sizeof("onboard-2"));
devprop_add_value(device, "built-in", &BuiltIn, 1);
break;

Archive Download the corresponding diff file

Revision: 2726