Encoding: Add one hook callback function to detect encoding capabilitiy on Haswell
authorZhao Yakui <yakui.zhao@intel.com>
Wed, 8 Oct 2014 00:23:34 +0000 (08:23 +0800)
committerZhao, Yakui <yakui.zhao@intel.com>
Wed, 8 Oct 2014 00:23:34 +0000 (08:23 +0800)
commitb252f0d3e203d080029365fe7c7990a849299026
tree709d7baff5d8fcac2ccc9d9f32f93215802b0526
parent54a1067672991bc7004d3496a486ede0feef61bf
Encoding: Add one hook callback function to detect encoding capabilitiy on Haswell

Some Haswell machine doesn't support the encoding. So it should be disabled.
Otherwise the driver can't report the supported capability correctly.

V2->V3:Based on the Matt Turner's suggestion the __cpuid defined in GCC
cpuid.h is called directly, which is helpful to handle the PIC issue on
32-bit. And unsigned data type is updated to uint32_t.

V1->V2: Minor update based on comment from Gwenole Beauchesne. For example:
use the bool tye and remove the hardcoded value

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
src/i965_device_info.c